diff --git a/Dockerfile b/Dockerfile index 2d59e341..150e85f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ FROM fedora:24 # so we don't have to compile those when fetched from PyPI -RUN dnf install -y python-pip python2-setuptools python2-cffi python2-zmq python2-cryptography koji python2-pdc-client python-m2ext fedmsg-relay && \ +RUN dnf install -y python-pip python2-setuptools python2-cffi python2-zmq python2-cryptography koji python2-pdc-client python-m2ext fedmsg-relay python-mock && \ dnf autoremove -y && dnf clean all && \ - mkdir /opt/module_build_service/ + 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 diff --git a/docker-compose.yml b/docker-compose.yml index 98cc39f1..d1e8d109 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,8 @@ services: links: - fedmsg-relay volumes: - - ./module_build_service/:/opt/module_build_service/module_build_service/:Z # module_build_service sources are bind-mounted, so you don't have to rebuild + # module_build_service sources are bind-mounted, so you don't have to rebuild + - ./module_build_service/:/opt/module_build_service/module_build_service/:Z - ~/.fedora.cert:/root/.fedora.cert:Z # koji credentials are mounted inside - ~/.fedora-server-ca.cert:/root/.fedora-server-ca.cert:Z - ~/.fedora-upload-ca.cert:/root/.fedora-upload-ca.cert:Z @@ -27,5 +28,6 @@ services: - module_build_service_daemon - fedmsg-relay volumes: + # module_build_service sources are bind-mounted, so you don't have to rebuild - ./module_build_service/:/opt/module_build_service/module_build_service/:Z command: python2 manage.py runssl