Merge pull request #297 from mjibson/docker-dev
Add development dockerfile for local dev
This commit is contained in:
commit
974ccaa2e7
2 changed files with 32 additions and 0 deletions
21
dev.df
Normal file
21
dev.df
Normal file
|
@ -0,0 +1,21 @@
|
|||
# vim:ft=dockerfile
|
||||
|
||||
FROM phusion/baseimage:0.9.16
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
ENV HOME /root
|
||||
|
||||
# Install the dependencies.
|
||||
RUN apt-get update # 24JUN2015
|
||||
|
||||
# New ubuntu packages should be added as their own apt-get install lines below the existing install commands
|
||||
RUN apt-get install -y git python-virtualenv python-dev libjpeg8 libjpeg62 libjpeg62-dev libevent-2.0.5 libevent-dev gdebi-core g++ libmagic1 phantomjs nodejs npm libldap-2.4-2 libldap2-dev libsasl2-modules libsasl2-dev libpq5 libpq-dev libfreetype6-dev libffi-dev libgpgme11 libgpgme11-dev
|
||||
|
||||
# Build the python dependencies
|
||||
ADD requirements.txt requirements.txt
|
||||
RUN virtualenv --distribute venv
|
||||
RUN venv/bin/pip install -r requirements.txt
|
||||
|
||||
WORKDIR /src/quay
|
||||
ENV PYTHONPATH=/
|
||||
ENV PATH=$PATH:/venv/bin
|
11
local-docker.sh
Executable file
11
local-docker.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Run this from the quay directory to start a quay development instance in
|
||||
# docker on port 5000.
|
||||
|
||||
set -e
|
||||
|
||||
REPO=quay.io/quay/quay-dev
|
||||
|
||||
docker build -t $REPO -f dev.df .
|
||||
docker run -it -p 5000:5000 -v $(pwd)/..:/src $REPO bash /src/quay/local-run.sh
|
Reference in a new issue