This project for standing up SmartForm application in a docker container.
- Checkout this repository, create a folder named code in the same level as Dockerfile.
- Login Deloitte JCIS internal sharepoint, download two zip files [ webapps.zip ; SMARTForm_Code_vlerdas_20150615_KunConfig.zip ] into code folder created above.
- then execute command to build your image:
$ sudo docker build -t="NAME_YOU_PREFERRED" .
-
run mongodb container:
docker run -d -p <HOST_PORT>:27017 --name snp-mongodb jlgrock/snp-prototype-mongodb
-
link this container with the container running above:
sudo docker run -it --name snp-smartform -p <HOST_PORT_FOR_TOMCAT>:8080 -p <HOST_PORT_FOR_NODE>:3001 --env SMARTFORM_HOST_IP=<HOST_IP> --env SMARTFORM_NODEJS_PORT=<HOST_PORT_FOR_NODE> --link snp-mongodb:db kunyue/smartform:v1