OSERAF container for Tomcat
- Connect to AWS or Server Instance (must have docker enabled and http(s) access
- Clone or update docker repository on AWS docker instance (e.g. git clone https://github.com/OSERAF/docker-tomcat.git)
- verify settings in conf/application.conf, conf/tomcat-users.xml, conf/ikanow-duke.conf and edit for your environment
- sudo sh scripts/build.sh to create the docker image
- sudo sh scripts/startcontainer.sh to start the docker image (note it will map to port 8081. Edit for different port.)
- sudo docker ps -a (To verify running)
- sudo docker exec -i -t <container id from 6> bash
You can connect to a bash prompt of a running docker container from an ssh session as follows:
- get the docker container id with sudo docker ps -a (assumes your user is in sudoers)
- connect with bash shell as follows: sudo docker exec -i -t <container id> bash