Go to a directory where you already downloaded binaries for a specific JBoss version. For example, supose that you are in a directory called jboss-eap-7
with this structure:
$ cd jboss-eap-7 $ find . . ./jboss-eap-7.0.0-maven-repository.zip ./jboss-eap-7.0.0-quickstarts.zip ./jboss-eap-7.0.0.zip ./jboss-eap-7.0.4-incremental-maven-repository.zip ./jboss-eap-7.0.4-patch.zip ./jboss-eap-7.0.4-src.zip
To start using jboss-scripts
with this version of jboss, do this:
$ (cd .. && git clone https://github.com/paulojeronimo/jboss-scripts) $ ../jboss-scripts/install
You will see that some links were created:
$ find . -type l|sort|xargs readlink ../jboss-scripts/scripts/home ../jboss-scripts/scripts/jboss-config.sample ../jboss-scripts/scripts/jboss-deploy ../jboss-scripts/scripts/jboss-install ../jboss-scripts/scripts/jboss-run ../jboss-scripts/scripts/jboss-undeploy
Inside scripts directory, copy jboss-config.sample to jboss-config
and edit it according to your needs.
You can also create a file named jboss-version
. Inside it, configure a $JBOSS_VERSION
. For example, if you are configuring a JBoss EAP 6.4 dir, you can do:
$ pwd jboss-eap-6 $ echo "JBOSS_VERSION=6.4" > jboss-version
If you created this file, it will be sourced before jboss-config
. So, you can take some configure decisions based on $JBOSS_VERSION
value.
To configure your PATH
and put all JBOSS_
variables visible in your shell, execute:
$ ./source home
Tip
|
You could run |
Now, you can see the what JBOSS_
variables are present:
$ echo ${!JBOSS_*}|tr ' ' '\n'
To install JBoss (removing the existing installation), execute:
jboss-install
The jboss-install script will do many tasks. For example, it will:
-
Extract the (default or configured) JBoss zip installer.
-
Apply the configured patches.
-
Configure modules and JDBC drivers (ex: Oracle).
-
Create a configured JBoss zip installer.
Tip
|
The |
To deploy a package (copying it to $JBOSS_HOME/$JBOSS_DEPLOY_DIR
):
jboss-deploy package