Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile #2

Closed
jkbrzt opened this issue Sep 8, 2014 · 7 comments
Closed

Add Dockerfile #2

jkbrzt opened this issue Sep 8, 2014 · 7 comments

Comments

@jkbrzt
Copy link
Owner

jkbrzt commented Sep 8, 2014

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
Copy link
Contributor

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

@jkbrzt
Copy link
Owner Author

jkbrzt commented Sep 8, 2014

👍

@jkbrzt
Copy link
Owner Author

jkbrzt commented Sep 9, 2014

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
Copy link
Contributor

petems commented Sep 10, 2014

@leandrosferreira Any chance of a pull-request with the docker stuff? 👍

@lsferreira42
Copy link
Contributor

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

@jkbrzt
Copy link
Owner Author

jkbrzt commented Sep 10, 2014

Pull request by @leandrosferreira: #13

@jkbrzt jkbrzt closed this as completed in f6e5d85 Sep 11, 2014
@jkbrzt
Copy link
Owner Author

jkbrzt commented Sep 11, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants