Created
June 26, 2020 15:04
-
-
Save Inkimar/f9d5e090c0d19a444b0a68ff7fc2a7bd to your computer and use it in GitHub Desktop.
wildfly, deploy with wildfly, jboss-cli , nrm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resource: | |
https://planet.jboss.org/post/deploy_to_wildfly_using_jboss_cli_tech_tip_11 | |
bin/jboss-cli.sh --connect --command="deploy target/javaee7-1.0-SNAPSHOT.war --force" | |
My Effort: | |
I want to run the above command like this (docker excec ) | |
docker exec betanaturalist sh -c 'exec bin/jboss-cli.sh --connect ' | |
THIS ONE WORKS
docker exec betanaturalist sh -c "exec bin/jboss-cli.sh --connect --command='ls deployment'"
deploy jar
login-naturalist:
docker exec -it betanaturalist bash
naturalist-copy:
docker cp ../artifact/naturalist.war betanaturalist:/tmp
naturalist-check-deployments:
docker exec betanaturalist sh -c "exec bin/jboss-cli.sh --connect --command='ls deployment'"
naturalist-undeploy:
docker exec betanaturalist sh -c "exec bin/jboss-cli.sh --connect --command='undeploy naturalist.war'"
naturalist-deploy:
docker exec betanaturalist sh -c "exec bin/jboss-cli.sh --connect --command='deploy /tmp/naturalist.war'"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this one does not work
docker exec betanaturalist sh -c "exec bin/jboss-cli.sh --connect --command 'ls deployment'"