summaryrefslogtreecommitdiff
path: root/tempest-pull/Dockerfile
blob: 9bc3cd980a8b084eea60cff00158343347d1759a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get install -y subunit python python-dev python-pip

RUN mkdir /opt/tempest-pull

VOLUME /srv/data/bundle-receipts
VOLUME /srv/data/logs

# Get dependencies
RUN pip install py2neo

# Copy the local package files to the container's workspace.
ADD . /opt/tempest-pull

WORKDIR /opt/tempest-pull

# These need to be set here to override any default config that might be specified
# in config.py that isn't what we need it to be when running in a linked Docker
# container
ENV NEO4J_ENDPOINT http://neo4j:7474/db/data/
ENV BUNDLES_ROOT /srv/data/bundle-receipts/
ENV LOGS_ROOT /srv/data/logs/

# Run this command by default when the container starts.
ENTRYPOINT python -c "import config; from app import app; app.run(config.config, False)"