diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 5c032194..88d29897 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -4,10 +4,16 @@ Development We have two mechanisms for quickly setting up a development environment. `docker-compose` and `vagrant`. In order to to setup a development environment, it is required that you have -your Fedora kerberos credentials generated in a *special location*. Run the -following:: +your Fedora kerberos credentials generated in a *special location*. +Furthermore, our staging kerberos environment is a little special (compared to +the production one). You need to copy a kerberos configuration file for the +realm to your system:: - $ KRB5CCNAME=FILE:/var/tmp/krbcc kinit YOUR_USERNAME@FEDORAPROJECT.ORG + $ sudo cp krb5-stg.fp.o /etc/krb5.conf.d/stg_fedoraproject_org + +Then, before starting your development environment, run the following:: + + $ KRB5CCNAME=FILE:/var/tmp/krbcc kinit YOUR_USERNAME@STG.FEDORAPROJECT.ORG If you have problems in later steps with kerberos reading those credentials inside the `scheduler` container, you should check that `/var/tmp/krbcc` exists diff --git a/Dockerfile b/Dockerfile index 07174807..b833792b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,4 +26,5 @@ COPY ./requirements.txt /opt/module_build_service/ RUN pip install --user -r ./requirements.txt RUN ln -s /opt/module_build_service/koji.conf /etc/module_build_service/koji.conf \ - && ln -s /opt/module_build_service/copr.conf /etc/module_build_service/copr.conf + && ln -s /opt/module_build_service/copr.conf /etc/module_build_service/copr.conf \ + && ln -s /opt/module_build_service/krb5-stg.fp.o /etc/krb5.conf.d/stg_fedoraproject_org diff --git a/krb5-stg.fp.o b/krb5-stg.fp.o new file mode 100644 index 00000000..1d7b1323 --- /dev/null +++ b/krb5-stg.fp.o @@ -0,0 +1,7 @@ +[realms] + STG.FEDORAPROJECT.ORG = { + kdc = https://id.stg.fedoraproject.org/KdcProxy + } +[domain_realm] + .stg.fedoraproject.org = STG.FEDORAPROJECT.ORG + stg.fedoraproject.org = STG.FEDORAPROJECT.ORG