diff --git a/Dockerfile b/Dockerfile index 600fdf78..7f04e0fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ 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 && \ +RUN dnf install -y python-pip python2-setuptools python2-cffi python2-zmq python2-cryptography koji python2-pdc-client swig && \ dnf autoremove -y && dnf clean all && \ mkdir /opt/fm-orchestrator/ WORKDIR /opt/fm-orchestrator/ @@ -12,5 +12,5 @@ COPY koji.conf /etc/rida/ COPY . /opt/fm-orchestrator/ -RUN python2 ./manage.py upgradedb && ./generate_localhost_cert.sh +RUN python2 ./manage.py upgradedb && python2 manage.py generatelocalhostcert CMD ["python2", "manage.py", "runssl"] diff --git a/README.rst b/README.rst index a1879cf7..38cde04a 100644 --- a/README.rst +++ b/README.rst @@ -395,3 +395,27 @@ It may happen that you will run into issues and the container won't start proper $ sudo docker-compose build --no-cache --pull First command will stop and remove all containers and volumes and second command will pull latest base image and perform a clean build without cache. + + +``fedmsg Signing for Development`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +In order to enable fedmsg signing in development, you will need to follow a series of steps. +Note that this will conflict with signed messages from a different CA that are on the message bus, so this may cause unexpected results. + +Generate the CA, the certificate to be used by fedmsg, and the CRL with:: + + $ python manage.py gendevfedmsgcert + +Setup Apache to host the CRL:: + + $ dnf install httpd && systemctl enable httpd && systemctl start httpd + $ mkdir -p /var/www/html/crl + $ ln -s /opt/fm-orchestrator/pki/ca.crl /var/www/html/crl/ca.crl + $ ln -s /opt/fm-orchestrator/pki/ca.crt /var/www/html/crl/ca.crt + +Create a directory to house the fedmsg cache:: + + $ mkdir -p /etc/pki/fedmsg + +Then uncomment the fedmsg signing configuration in fedmsg.d/rida.py. diff --git a/Vagrantfile b/Vagrantfile index bb10a555..332b668c 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -2,14 +2,14 @@ # vi: set ft=ruby : $script = <