Closed jkbrzt closed 10 years ago
I'll pull request you today, i did that for my own setup.
:+1:
My previous attempt looked like this:
# http://docs.docker.com/reference/builder/
FROM ubuntu
RUN apt-get -y update
RUN apt-get -y install mongodb redis-server supervisor nginx python-dev python-pip git
RUN mkdir /home/cloudtunes
RUN mkdir /requirements
ADD cloudtunes-server/requirements.txt /requirements.txt
RUN pip install --download=/requirements -r /requirements.txt
RUN pip install --no-index --find-links=/requirements -r /requirements.txt
ADD cloudtunes-server /home/cloudtunes/cloudtunes-server
ADD cloudtunes-webapp /home/cloudtunes/cloudtunes-webapp
RUN pip install /home/cloudtunes/cloudtunes-server
ADD cloudtunes-server/production/supervisor.ini /etc/supervisor/conf.d/cloudtunes.ini
### Launch ###
WORKDIR /home/cloudtunes
# https://docs.docker.com/articles/using_supervisord/
CMD supervisord --nodaemon
@leandrosferreira Any chance of a pull-request with the docker stuff? :+1:
i'm on that right now, i had a problem running the webapp yesterday
Pull request by @leandrosferreira: #13
Add Docker support so that it's easy to run CloudTunes locally.
Ideally it would a single monolithic container containing both the app as well as running services (Redis, Mongo DB, and Nginx). The services part is where I struggle and help would be appreciated.