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 docker support #92

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/**/*
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:2.7.13-alpine3.6

MAINTAINER Louise Yang <louise.yang@scpr.org>

COPY . /lunchbox/
WORKDIR /lunchbox

RUN apk add --update nodejs nodejs-npm alpine-sdk bash
RUN pip install --no-cache-dir virtualenv virtualenvwrapper
RUN echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
RUN /bin/bash -c 'source ~/.bashrc; mkvirtualenv lunchbox'
RUN pip install -r requirements.txt
RUN /bin/bash -c 'npm install'

EXPOSE 80

ENTRYPOINT ["fab", "app"]
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* [What is this?](#what-is-this)
* [Assumptions?](#assumptions)
* [What's in here?](#what-is-in-here)
* [Quick start](#quick-start)
* [Docker Container quick start](#docker)
* [Bootstrap quick start](#quick-start)
* [Configuration](#configuration)
* [Deploy the desktop app](#deploy-the-desktop-app)
* [About](#about)
Expand All @@ -18,6 +19,14 @@ What is this?
* *Factlist*: Produces a branded image with a list of items.
* *Waterbug*: Creates a watermarked image with attribution.

Docker
-------------
*This is assuming you already have docker set up on your machine*

1. `docker pull scprdev/lunchbox`
2. `docker run -p 80:8000 scprdev/lunchbox`
3. Visit http://localhost/

Assumptions
-------------

Expand All @@ -28,6 +37,7 @@ The following things are assumed to be true in this documentation.
* You are running OSX.
* You are using Python 2.7. (Probably the version that came OSX.)
* You have [virtualenv](https://pypi.python.org/pypi/virtualenv) and [virtualenvwrapper](https://pypi.python.org/pypi/virtualenvwrapper) installed and working.
* You have [node and npm](https://www.npmjs.com/get-npm) installed and working.

What's in here?
-------------
Expand Down