Public | Automated Build

Last pushed: 2 days ago
Short Description
Docker Container for vBloons
Full Description

vBloons

DOCKER Usage:

To find the machine's local IP address:

  • docker-machine ip default

To run the Docker Image (two modes):

Webserver Mode:

docker run -p 7999:7999  -d -e "MODE=webserver" -v /tmp:/bloons/BloonsWeb/databases alshapton/bloons:latest

Race Mode:

docker run  -e "MODE=race" -v /tmp:/bloons/BloonsWeb/databases alshapton/bloons:latest

Note that the *.sqlite file must be in the /tmp (or wherever) directory for the database to be found

Use the application from a browser:

<docker-machine-address>:7999

To fully start the application from scratch on an EC2 instance with Docker installed:

docker pull alshapton/bloons:latest
docker run  -e "MODE=race" -e "INTERVAL=1800" -d  -v /tmp:/bloons/BloonsWeb/databases alshapton/bloons:latest
docker run  -e "MODE=webserver" -p 7999:7999 -d  -v /tmp:/bloons/BloonsWeb/databases alshapton/bloons:latest

Note that the INTERVAL parameter is the seconds between invocation of the race script (15 minutes should be ample)

Docker Pull Command
Owner
alshapton
Source Repository

Comments (0)