19 lines
802 B
Text
19 lines
802 B
Text
FROM fedora:34
|
|
LABEL \
|
|
name="bodhi-base" \
|
|
vendor="Fedora Infrastructure" \
|
|
license="MIT"
|
|
RUN curl -o /etc/yum.repos.d/infra-tags.repo https://infrastructure.fedoraproject.org/infra/ansible/files/common/fedora-infra-tags.repo
|
|
# While dnf has a --nodocs, it doesen't have a --docs...
|
|
RUN sed -i '/nodocs/d' /etc/dnf/dnf.conf
|
|
{% if env == "staging" %}
|
|
RUN dnf install -y bodhi-server bodhi-docs python3-pyramid_sawing python3-gunicorn
|
|
{% else %}
|
|
RUN dnf install -y bodhi-server-{{bodhi_version}} bodhi-docs-{{bodhi_version}} python3-pyramid_sawing python3-gunicorn
|
|
{% endif %}
|
|
|
|
# Set up krb5
|
|
RUN rm -f /etc/krb5.conf && \
|
|
ln -sf /etc/bodhi/krb5.conf /etc/krb5.conf && \
|
|
ln -sf /etc/keytabs/koji-keytab /etc/krb5.bodhi_bodhi{{ env_suffix }}.fedoraproject.org.keytab
|
|
ENV USER=openshift
|