From 4c2cccc185b967cc0f1d4a41aa22fbe784a419e5 Mon Sep 17 00:00:00 2001 From: Filip Valder Date: Mon, 5 Dec 2016 14:16:13 +0100 Subject: [PATCH] alter Docker-/Vagrantfile so that it installs all dependencies and use 'python setup.py install' for MBS installation --- Dockerfile | 19 +++++++++++-------- Vagrantfile | 29 ++++++++++++++++------------- 2 files changed, 27 insertions(+), 21 deletions(-) diff --git a/Dockerfile b/Dockerfile index f2ad2575..96ff22fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,16 +14,19 @@ RUN dnf install -y \ python-mock \ git \ krb5-workstation \ + systemd-devel \ + gcc \ + redhat-rpm-config \ + python-devel \ + python-flask \ # Troubleshooting tools telnet \ nc \ + procps \ + findutils \ && dnf autoremove -y \ && dnf clean all \ - && mkdir /opt/module_build_service/ \ - && mkdir /etc/module_build_service -WORKDIR /opt/module_build_service/ -COPY ./requirements.txt /opt/module_build_service/ -RUN pip install --user -r ./requirements.txt - -RUN ln -s /opt/module_build_service/conf/koji.conf /etc/module_build_service/koji.conf \ - && ln -s /opt/module_build_service/conf/copr.conf /etc/module_build_service/copr.conf + && mkdir /tmp/module_build_service/ +COPY . /tmp/module_build_service/ +WORKDIR /tmp/module_build_service/ +RUN python setup.py install diff --git a/Vagrantfile b/Vagrantfile index 890d9706..e1da6a23 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -18,26 +18,29 @@ $script = <