Last active
July 4, 2017 19:45
-
-
Save ricardozanini/9db2b77d6659ec2aa14a6fe232a1f135 to your computer and use it in GitHub Desktop.
Script excerpt to "automate" deploy to a JBoss Fuse instance
This file contains hidden or 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
#!/bin/bash | |
echo "Script sample" | |
# para cada server | |
# para cada container | |
# declaracao das vars | |
# local onde todos os jars estarao no server | |
STAGING_AREA="/tmp" | |
# local de instalacao do fuse | |
FUSE_HOME="/opt/jboss-fuse-6.3.0.GA" | |
# porta do no - ajustar de acordo com cada container | |
NODE_PORT=8102 | |
# para cada jar (repetir os dois comandos abaixo) | |
# remove o antigo | |
sh $FUSE_HOME/bin/client -a $NODE_PORT -h localhost -u admin -p admin \ | |
osgi:uninstall sil-commons | |
# instala via file do staging area | |
sh $FUSE_HOME/bin/client -a $NODE_PORT -h localhost -u admin -p admin \ | |
osgi:install -s file:$STAGING_AREA/my-jar.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference:
https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.0/html/Configuring_and_Running_Red_Hat_JBoss_Fuse/files/ESBRuntimeConnectCommand.html