Scripts and configurations to bootstrap the environment. It can be used to bootstrap the envoriment directly on your mashine or virtualized by using Docker containers.
This method uses maven to compile and deploy the components
curl -fsSL fiteagle.org/bootstrap | bash -s init deployFT2 deployFT2sfa
This method will download precompiled war files and does not use maven which is a lof faster
curl -fsSL fiteagle.org/bootstrap | bash -s init deployFT2binary deployFT2sfaBinary startJ2EE
http://localhost:9990/console/App.html
docker run --rm -it -p 8443:8443 -p 9990:9990 java:8-jre bash -c "apt-get update; apt-get install -y git curl unzip libxml2-utils; cd /tmp ;curl -fsSkL fiteagle.org/bootstrap | bash -s deployFT2binary deployFT2sfaBinary startJ2EE testFT2sfa; bash"
./bootstrap/fiteagle.sh startXMPP
./bootstrap/resources/omf6/install_omf6.sh
./bootstrap/resources/nepi3/install_nepi3.sh
start by building an docker image based on the chekout of the bootstrap repository (note: the source could be modified)
sudo docker rmi fiteagle2test; sudo docker build --rm --force-rm --tag=fiteagle2test .
now the docker image could be used (run) the same way as the fiteagle.sh script.
./bootstrap/fiteagle.sh deployFT2binary deployFT2sfaBinary startJ2EEdebug
vs. docker run --rm -it --name=ft2test fiteagle2test deployFT2binary deployFT2sfaBinary startJ2EEdebug
.
Please keep in mind that the --rm
option causes a removal of the container then the executable finshed.
If you want to run multiple commands and keep the data between them omit the --rm
switch and use the following command for follow up commands: docker exec -t -i ft2test <cmd>
the combined command docker run --rm -it --name=ft2test fiteagle2test deployFT2binary deployFT2sfaBinary startJ2EEdebug
could be split in the following commands:
docker run -it --name=ft2test fiteagle2test deployFT2binary
docker exec -t -i ft2test /opt/fiteagle/bootstrap/fiteagle.sh testFT2sfa deployFT2sfaBinary
docker exec -t -i ft2test /opt/fiteagle/bootstrap/fiteagle.sh testFT2sfa startJ2EEdebug
When the container is running the SFA test could be run inside like this docker exec -t -i ft2test /opt/fiteagle/bootstrap/fiteagle.sh testFT2sfa testFT2sfa