Install Docker => https://docs.docker.com/install/linux/docker-ce/ubuntu/
-
Uninstall old versions
sudo apt-get remove docker docker-engine docker.io
-
Install Dependencies
sudo apt-get update && \ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common
-
Install
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && \ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && \ sudo apt-get update && \ sudo apt-get install docker-ce
Install Docker Compose => https://docs.docker.com/compose/install/
sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose && \
sudo chmod +x /usr/local/bin/docker-compose && \
docker-compose --version
- Add current user to the
docker
group.sudo usermod -aG docker $USER
- Restart computer.
mkdir -p ~/git && cd ~/git && git clone https://github.com/PennAssuranceSoftware/oipa.git && cd oipa
mkdir -p env/restore
Copy your application database backup and IVS backup if you have one.
Export the name of the database as the variable DB_NAME
before starting.
export IVS=false && \
export DB_NAME=OIPA_SandBox && \
docker-compose up
export IVS=false && \
export DB_NAME=OIPA_SandBox && \
docker-compose -f docker-compose.yml -f docker-compose.dev.yml rm -v -f && \
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
Export the name of the database as the variables DB_NAME
, IVS
, and IVS_DB_NAME
before starting.
export DB_NAME=OIPA_SandBox && \
export IVS=true && \
export IVS_DB_NAME=OIPA_IVS && \
docker-compose up
export DB_NAME=OIPA_SandBox && \
export IVS=true && \
export IVS_DB_NAME=OIPA_IVS && \
docker-compose -f docker-compose.yml -f docker-compose.dev.yml rm -v -f && \
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
Once you have setup your application you will be able to run the Palette in that environment. Navigate
to the oipa
directory you cloned from git earlier and run the following command to start the Palette.
xhost + && docker-compose exec palette ./run.sh
Once you have setup your application you will be able to query the database in that environment. Navigate
to the oipa
directory you cloned from git earlier and run the following command to start the Squirrel
SQL Client.
xhost + && docker-compose exec query ./run.sh
Once you have setup your application you will be able to use the Penn Assurance Software Rules Companion. Navigate
to the oipa
directory you cloned from git earlier and run the following command to start the Rules Companion.
xhost + && docker-compose exec rules run
You can search and browse the OIPA war file and decompiled code with the decompiler. Once you have setup
your application you will be able to run the Java Decompiler in that environment. Navigate
to the oipa
directory you cloned from git earlier and run the following command to start the Decompiler.
xhost + && docker-compose exec jd ./run.sh
Once you have setup your application you will be able to run Eclipse in that environment. Navigate
to the oipa
directory you cloned from git earlier and run the following command to start Eclipse.
xhost + && docker-compose exec eclipse ./run.sh
docker-compose exec eclipse ./build.sh && docker-compose restart oipa
You can also run using databases hosted on Azure if you don't have your own database backup. Use the following command to start up the application pointing to an external database:
export IVS=false && \
export DB_HOST=104.208.247.218 && \
export DB_NAME=OIPA_Securian && \
export DB_USER=sqlUser && \
export DB_PASSWORD=sqlUser1 && \
docker-compose up
docker stop $(docker ps -a -q)
docker ps -a | grep -i -E "Exit|Create" | grep -v ^CONTAINER | cut -d ' ' -f 1 | xargs docker rm
docker rmi -f $(docker images -q)
docker volume rm $(docker volume ls -f dangling=true -q)
The current compose does not work for Mac OSX. Make these changes until a permanent fix can be made.
- Comment out the
/dev/snd
lines in thedocker-compose.yml
file - Install
SOCAT
. http://macappstore.org/socat/brew install socat
- Install
XQuartz
. https://www.xquartz.org/brew cask install xquartz
- Open
XQuartz
and update the security settingsopen -a XQuartz
- Run Socat
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\” &
- You will need to override the
DISPLAY
environment variable when running any GUI app.export myIP=$(ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}') && \ xhost + && docker-compose exec -e DISPLAY=$myIP:0 query ./run.sh
- Download
war
file toenv/upload
folder. - Upload to Maven Repository.
make upgrade
- Update the
.env
to the version of thewar
you just uploaded.export DOCKER_USER=jeromebridge && export DOCKER_PASS=XXX && make build push
- Rebuild local Docker Compose Image.
docker-compose build --no-cache oipa