• Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    Shell
  • Created almost 12 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Build scripts for EAP 6 or 7

Build Status

Building JBoss EAP, or something similar...

Why ?

As I was not able to build JBoss EAP 6+, I've made a script who can download JBoss EAP 6+'s source code, patch the repository and launch the build with a JBoss Maven repository.

The result isn't exactly a JBoss EAP binary but something with a few differences.

How ?

You can get the build script with git or wget.

With git

If you want to run the script :

git clone git://github.com/hasalex/eap-build.git
cd eap-build
./build-eap7.sh

By default, it builds the latest EAP 7 update. You can build other versions by passing the number to the build :

./build-eap7.sh 7.2.3

For EAP 6 versions, you should use

./build-eap6.sh

By default, it builds the latest EAP 6 update. You can build other versions by passing the number to the build :

./build-eap6.sh 6.4.19

Without git

If you don't want to use git, download the archive, unzip it and run the main script :

wget https://github.com/hasalex/eap-build/archive/master.zip
unzip master.zip
cd eap-build-master
./build-eap7.sh

Versions

The build-eap7.sh script supports 7.0.0->7.0.9, 7.1.0->7.1.4, 7.2.0->7.2.9, 7.3.0->7.3.10, 7.4.0->7.4.10

The build-eap6.sh script supports 6.1.1, 6.2.0->6.2.4, 6.3.0->6.3.3, 6.4.0->6.4.23

Docker build

You may build a docker image :

docker build --tag hasalex/eap-build --file docker/Dockerfile-debian .

And run it :

docker run --interactive --tty --publish 8080:8080 --publish 9990:9990 hasalex/eap-build

With a deployment, in detached mode :

docker run --detach --publish 8080:8080 --publish 9990:9990  \
           --volume $(pwd)/myapp.war:/opt/jboss-eap/standalone/deployments/myapp.war  \
           hasalex/eap-build

You may want to build it without a checkout :

docker build --tag hasalex/eap-build --file docker/Dockerfile-debian [email protected]:hasalex/eap-build.git

You may choose

  • an OS (debian, centos, alpine),

  • a version of JDK (default is 11),

  • a version of eap to build (default is empty AKA newest) :

    docker build --tag hasalex/eap-build:7.3.9_jdk8 --build-arg JDK_VERSION=8 --build-arg EAP_VERSION=7.3.9 --file docker/Dockerfile-alpine .

You may also test the build on FreeBSD with Vagrant :

cd vagrant-freebsd && vagrant up && vagrant ssh
cd eap-build
bash -i build-eap7.sh

Prerequisite and systems supported

The script is in bash. It should run on almost all bash-compatible systems. You have to install wget, unzip, patch, java (JDK), grep, curl, maven and xmlstarlet first.