Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

JOHNNY'S COMMANDS

cd /home/jwenny/Downloads/SimpleJSP/

vi simple.jsp

jar -cvf SimpleJSP.war .

docker run -it -v /home/jwenny/Downloads:/opt/webapp:ro tomcat:8.0 /bin/bash

cp /opt/webapp/SimpleJSP/SimpleJSP.war /usr/local/tomcat/webapps/

exit

docker ps -a

docker commit -m="Added WAR file" -a="jwenny" boring_thompson jwenny/tomcat:1

docker push jwenny/tomcat:1

docker run --name db-mysql -e MYSQL_ROOT_PASSWORD=password -e MYSQL_USER=jwenny -e MYSQL_PASSWORD=password -e MYSQL_DATABASE=TEST -d mysql

docker run --rm --name app-tomcat --link db-mysql:mysql -it -p 8888:8080 jwenny/tomcat:1 /bin/bash

/usr/local/tomcat/bin/startup.sh

http://localhost:8888/SimpleJSP

DAN's COMMANDS

docker pull jwenny/tomcat:1

docker pull mysql

docker run --name db-mysql -e MYSQL_ROOT_PASSWORD=password -e MYSQL_USER=jwenny -e MYSQL_PASSWORD=password -e MYSQL_DATABASE=TEST -d mysql

docker run --rm --name app-tomcat --link db-mysql:mysql -it -p 8888:8080 jwenny/tomcat:1 /bin/bash

/usr/local/tomcat/bin/startup.sh

http://localhost:8888/SimpleJSP

Docker Pull Command
Owner
jwenny

Comments (0)