jpadilla / notaso

Conoce a tus profesores antes de llegar al salón.
http://www.notaso.com/
Other
19 stars 6 forks source link

Docker fig setup #86

Closed Jpadilla1 closed 7 years ago

Jpadilla1 commented 9 years ago

Containerizes the whole application into multiple containers using fig.

Containers:

Setup

fig build
fig up -d

To see the containers running you can try:

fig ps

DB

When containers are running the first time, you have to do this.

fig run app python manage.py syncdb --migrate
fig run app python manage.py migrate users
fig run app python manage.py migrate

Note: Only downside for now is the db setup. :/

jpadilla commented 9 years ago

@Jpadilla1 cual es el resulting image size? El official python image es como de 900MB si no me equivoco.

Jpadilla1 commented 9 years ago

@jpadilla After downloading the official python:2.7 it takes up to 744.9 MB (image on my machine) and the resulting image after the build and notes dependencies are installed. It takes about 828.5 MB.

jpadilla commented 9 years ago

@Jpadilla1 let's try python:2.7-slim

Jpadilla1 commented 9 years ago

@jpadilla After setting up python:2.7-slim the final image size got down to 502.1 MB. :)

jpadilla commented 7 years ago

Gonna close this for now. Thank you @Jpadilla1! We can definitely revisit this if it makes sense, now that the docker ecosystem has matured.

This could help with #94. I've recently been using Kubernetes on GCE and have really enjoyed it. Maybe that's an option instead of Heroku.