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

Commit

Permalink
docker: Add Dockerfile
Browse files Browse the repository at this point in the history
An "all services" Dockerfile has been added. To build:

   # docker build -t commissaire-services .
  • Loading branch information
ashcrow authored and mbarnes committed Jun 10, 2017
1 parent 6c6bfd6 commit 356c384
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM fedora:25
MAINTAINER Red Hat, Inc. <container-tools@redhat.com>

# Install required dependencies and commissaire services
RUN dnf -y update && \
dnf -y install --setopt=tsflags=nodocs openssh-clients redhat-rpm-config python3-pip python3-virtualenv git gcc libffi-devel openssl-devel && \
git clone https://github.com/projectatomic/commissaire-service.git && \
virtualenv-3 /environment && \
. /environment/bin/activate && \
cd commissaire-service && \
pip install -U pip && \
pip install -r requirements.txt && \
pip install . && \
cd .. && \
pip freeze > /installed-python-deps.txt && \
dnf remove -y gcc git redhat-rpm-config libffi-devel && \
dnf clean all

# Copy the all-in-one start script
COPY tools/startup-services.sh /commissaire/

# Configuration directory. Use --volume=/path/to/your/configs:/etc/commissaire
VOLUME /etc/commissaire/

# Run everything from /commissaire
WORKDIR /commissaire
# Execute the all-in-one-script
CMD /commissaire/startup-services.sh

0 comments on commit 356c384

Please sign in to comment.