Challenge Overview
Previously, we have provided the steps to run Online Review locally by using Docker and Docker Compose.
You can see the current approach by https://github.com/appirio-tech/tc-common-tutorials/tree/master/online_review
Before starting you should do
1. Install Docker and Docker Engine (https://docs.docker.com/engine/installation/)
2. download the online review source code and unzip it - http://54.204.246.249/css/online_review.tar.gz
3. clone https://github.com/appirio-tech/tc-common-tutorials/tree/master/online_review and copy into online_review folder
For this challenge, we'd like to create another Dockerfile (docker/online_review/Dockerfile) which will do like
1. use appiriodevops/online-review:env as base image
2. mount the whole online_review source as volumn.
3. do build for autopilot like
cd /root/online_review
cp build.properties.docker build.properties
cp token.properties.docker token.properties
ant first_deploy deploy
4. add ENTRYPOINT or CMD for starting autopilot like
cd /root/jboss-4.0.2/bin
./run.sh -b 0.0.0.0
5. with the above doc, we can do like
docker build -t appiriodevops/online-review
so we will have a image without source code, but be able to run the online-review system.
6. add a new section in docker-compose.yaml
run-online-review:
image: appiriodevops/online-review
environment:
- JAVA_OPTS=-Xms256m -Xmx512m
ports:
- "8080:8080"
- "443:443"
links:
- tc-informix:db
7. then with command 'docker-compose up run-online-review', we will have informix db and online-review running without any problem.
You can see the current approach by https://github.com/appirio-tech/tc-common-tutorials/tree/master/online_review
Before starting you should do
1. Install Docker and Docker Engine (https://docs.docker.com/engine/installation/)
2. download the online review source code and unzip it - http://54.204.246.249/css/online_review.tar.gz
3. clone https://github.com/appirio-tech/tc-common-tutorials/tree/master/online_review and copy into online_review folder
For this challenge, we'd like to create another Dockerfile (docker/online_review/Dockerfile) which will do like
1. use appiriodevops/online-review:env as base image
2. mount the whole online_review source as volumn.
3. do build for autopilot like
cd /root/online_review
cp build.properties.docker build.properties
cp token.properties.docker token.properties
ant first_deploy deploy
4. add ENTRYPOINT or CMD for starting autopilot like
cd /root/jboss-4.0.2/bin
./run.sh -b 0.0.0.0
5. with the above doc, we can do like
docker build -t appiriodevops/online-review
so we will have a image without source code, but be able to run the online-review system.
6. add a new section in docker-compose.yaml
run-online-review:
image: appiriodevops/online-review
environment:
- JAVA_OPTS=-Xms256m -Xmx512m
ports:
- "8080:8080"
- "443:443"
links:
- tc-informix:db
7. then with command 'docker-compose up run-online-review', we will have informix db and online-review running without any problem.
Final Submission Guidelines
1. Please fork https://github.com/appirio-tech/tc-common-tutorials to work on.
2. Create a Pull Request for your submission
2. Create a Pull Request for your submission