-
1. Re: deploy a jar to docker container in one command
sebastian.laskawiec Jun 22, 2017 1:47 AM (in response to sea_shankar)The one line command you asked for might look like the following:
./ispn-cli.sh -c --controller=$(hostname -i):9990 --command="deploy --url=<url_of_the_jar>"
But for Docker I would recommend extending our image and adding your own file using COPY instruction. You may find some more hints in this blog post.
-
2. Re: deploy a jar to docker container in one command
gustavonalle Jun 22, 2017 4:01 AM (in response to sea_shankar)You don't need the CLI for that, use "docker cp":
docker cp /path/to/my/local.jar containerName:/opt/jboss/infinispan-server/standalone/deployments
-
3. Re: deploy a jar to docker container in one command
sea_shankar Jun 22, 2017 8:35 AM (in response to sebastian.laskawiec)Ahhh yes, extending the docker image is the solution I am looking for! Basically, I have this infinispan server task jar file I want to deploy, and it would be great if I can package that with the docker image, so that other users don't have to worry about doing anything extra to deploy it.
With the COPY command, do I copy the file to directory mentioned by Gustavo? Because I am using domain configuration instead of standalone, or do all jar files get copied to standalone/deployments and it gets deployed from there?
-
4. Re: deploy a jar to docker container in one command
sea_shankar Jun 27, 2017 7:56 AM (in response to sea_shankar)gustavonalle Is it still standalone/deployments for domain configuration as well?