Commit 5547490a authored by Luke Texon's avatar Luke Texon

Moved from screen to docker

parent f69084ca
Pipeline #113565 failed
......@@ -35,11 +35,11 @@ deploy to vm:
tags:
- ljt18_webapp
before_script:
- pkill -f screen || echo "Screen not running"
script:
- mvn -Dmaven.test.skip=true package
- export PORT=5000
- screen -dm sh target/bin/simplewebapp
- docker stop vm_container || echo "Container not running"
- docker rm vm_container || echo "Container not found"
script:
- docker pull $DOCKER_IMAGE_LATEST
- 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"
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