DevOps virtualization
In a new directory, do the following:
Python:3.4
groupadd -r uwsgi && useradd -r -g uwsgi uwsgi
pip install Flask==0.10.1 uWSGI requests==2.5.1 redis==2.10.3
/app
app
in your host machine to /app
/cmd.sh
in your containeruwsgi
/cmd.sh
docker-compose.yml
file that does the following:
identidock
built upon your previous docker imageENV
and sets it to DEV
amouat/dnmonster:1.0
redis:3.0
Bring up your docker compose file.
To view your app, create a tunnel like: ssh jfrancom@ssh.cs.utahtech.edu -L 8080:144.38.x.y:8080 -L 5000:144.38.x.y:5000 -L 9090:144.38.x.y:9090. Visit your browser at http://localhost:5000
Comment out the section that copies app
into your container. Mount it as a bind mount.