|
|
|
@ -5,14 +5,14 @@ FROM docker.mgm.sipwise.com/sipwise-jessie:latest
|
|
|
|
# is updated with the current date. It will force refresh of all
|
|
|
|
# is updated with the current date. It will force refresh of all
|
|
|
|
# of the base images and things like `apt-get update` won't be using
|
|
|
|
# of the base images and things like `apt-get update` won't be using
|
|
|
|
# old cached versions when the Dockerfile is built.
|
|
|
|
# old cached versions when the Dockerfile is built.
|
|
|
|
ENV REFRESHED_AT 2016-01-12
|
|
|
|
ENV REFRESHED_AT 2016-04-29
|
|
|
|
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install --assume-yes python2.7 python2.7-dev python-distribute python-pip git
|
|
|
|
RUN apt-get install --assume-yes python2.7 python2.7-dev python-distribute python-pip git
|
|
|
|
|
|
|
|
|
|
|
|
# Get pip to download and install requirements:
|
|
|
|
# Get pip to download and install requirements:
|
|
|
|
COPY test.txt common.txt /tmp/
|
|
|
|
COPY dev.txt test.txt common.txt /tmp/
|
|
|
|
RUN pip install -r /tmp/test.txt
|
|
|
|
RUN pip install -r /tmp/dev.txt
|
|
|
|
|
|
|
|
|
|
|
|
RUN echo './t/testrunner' >>/root/.bash_history
|
|
|
|
RUN echo './t/testrunner' >>/root/.bash_history
|
|
|
|
|
|
|
|
|
|
|
|
@ -32,4 +32,6 @@ WORKDIR /code/
|
|
|
|
# Inside docker (the command is in history, just press UP button):
|
|
|
|
# Inside docker (the command is in history, just press UP button):
|
|
|
|
# ./t/testrunner
|
|
|
|
# ./t/testrunner
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
# Run django inside docker:
|
|
|
|
|
|
|
|
# make run_dev
|
|
|
|
################################################################################
|
|
|
|
################################################################################
|
|
|
|
|