Commit d300401d authored by Luke Texon's avatar Luke Texon

Changed from docker back to screen

parent 4e8d5e78
Pipeline #113613 passed with stages
in 3 minutes and 19 seconds
......@@ -35,10 +35,11 @@ deploy to vm:
tags:
- ljt18_webapp
before_script:
- docker stop vm_container || echo "Container not running"
- docker rm vm_container || echo "Container not found"
- pkill -f screen || echo "Screen not running"
script:
- docker run --name vm_container -d -e PORT=8080 -p $PORT:8080 $DOCKER_IMAGE_LATEST "mvn -Dmaven.test.skip=true package; sh target/bin/simplewebapp"
- mvn -Dmaven.test.skip=true package
- export PORT=5000
- screen -dm sh target/bin/simplewebapp
environment:
name: VM
url: http://$IP:$PORT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment