jkbrzt / cloudtunes

Web-based music player for the cloud :cloud: :notes: Play music from YouTube, Dropbox, etc.
https://twitter.com/jakubroztocil
Other
2.49k stars 233 forks source link

Add Dockerfile #2

Closed jkbrzt closed 10 years ago

jkbrzt commented 10 years ago

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.

lsferreira42 commented 10 years ago

I'll pull request you today, i did that for my own setup.

jkbrzt commented 10 years ago

:+1:

jkbrzt commented 10 years ago

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
petems commented 10 years ago

@leandrosferreira Any chance of a pull-request with the docker stuff? :+1:

lsferreira42 commented 10 years ago

i'm on that right now, i had a problem running the webapp yesterday

jkbrzt commented 10 years ago

Pull request by @leandrosferreira: #13

jkbrzt commented 10 years ago

https://github.com/jakubroztocil/cloudtunes#with-docker