Rebase Bodhi on F35 in staging
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
2a72de4558
commit
6c43fb870b
3 changed files with 27 additions and 1 deletions
|
@ -68,3 +68,6 @@ WSGIRestrictStdout Off
|
|||
WSGIRestrictSignal Off
|
||||
WSGIPythonOptimize 1
|
||||
WSGIScriptAlias / /usr/share/bodhi/bodhi.wsgi
|
||||
{% if env == "staging" %}
|
||||
WSGIPassAuthorization On
|
||||
{% endif %}
|
||||
|
|
|
@ -12,7 +12,7 @@ items:
|
|||
source:
|
||||
dockerfile: |-
|
||||
{% if env == "staging" %}
|
||||
{{ load_file('dockerfile-base') | indent(8) }}
|
||||
{{ load_file('dockerfile-base.stg') | indent(8) }}
|
||||
{% else %}
|
||||
{{ load_file('dockerfile-base') | indent(8) }}
|
||||
{% endif %}
|
||||
|
|
23
roles/openshift-apps/bodhi/templates/dockerfile-base.stg
Normal file
23
roles/openshift-apps/bodhi/templates/dockerfile-base.stg
Normal file
|
@ -0,0 +1,23 @@
|
|||
FROM fedora:35
|
||||
LABEL \
|
||||
name="bodhi-base" \
|
||||
vendor="Fedora Infrastructure" \
|
||||
license="MIT"
|
||||
{% if env == "staging" %}
|
||||
RUN curl -o /etc/yum.repos.d/infra-tags-stg.repo https://infrastructure.fedoraproject.org/infra/ansible/files/common/fedora-infra-tags-stg.repo
|
||||
{% else %}
|
||||
RUN curl -o /etc/yum.repos.d/infra-tags.repo https://infrastructure.fedoraproject.org/infra/ansible/files/common/fedora-infra-tags.repo
|
||||
{% endif %}
|
||||
# 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 --refresh
|
||||
{% 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
|
Loading…
Add table
Add a link
Reference in a new issue