Skip to content
This repository has been archived by the owner on Feb 2, 2018. It is now read-only.

Commit

Permalink
Merge pull request #15 from ashcrow/docker-fix
Browse files Browse the repository at this point in the history
WIP: Follow on fixes for Dockerfile.
  • Loading branch information
cooktheryan committed Jan 28, 2016
2 parents 201183b + 5def79f commit acf06ee
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
FROM fedora
MAINTAINER Red Hat, Inc. <container-tools@redhat.com>

RUN dnf -y update && dnf -y install --setopt=tsflags=nodocs redhat-rpm-config python-pip python-virtualenv git gcc libffi-devel && dnf clean all
RUN dnf -y update && dnf -y install --setopt=tsflags=nodocs redhat-rpm-config python-pip python-virtualenv git gcc libffi-devel

ENV MHM_RELEASE v0.0.0
ENV PYTHONPATH /commissaire/src/

# TODO: Pull a release?
RUN git clone https://github.com/projectatomic/commissaire.git && \
virtualenv /environment && \
. /environment/bin/activate && \
cd commissaire && \
pip install -U pip && \
pip install -r requirements.txt && \
pip freeze > /installed-python-deps.txt

# Clean up
RUN dnf remove -y gcc git redhat-rpm-config libffi-devel && dnf clean all

EXPOSE 8000
WORKDIR /commissaire
CMD python src/commissaire/script.py ${ETCD}
CMD . /environment/bin/activate && python src/commissaire/script.py ${ETCD}

0 comments on commit acf06ee

Please sign in to comment.