[release-monitoring] Update staging deployment to F40
As tested locally F40 container deployment works, but let's test it on staging first. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
cb77d694fe
commit
540c1ae874
1 changed files with 8 additions and 2 deletions
|
@ -11,7 +11,11 @@ items:
|
||||||
runPolicy: Serial
|
runPolicy: Serial
|
||||||
source:
|
source:
|
||||||
dockerfile: |-
|
dockerfile: |-
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
FROM fedora:40
|
||||||
|
{% else %}
|
||||||
FROM fedora:38
|
FROM fedora:38
|
||||||
|
{% endif %}
|
||||||
LABEL \
|
LABEL \
|
||||||
name="release-monitoring-web" \
|
name="release-monitoring-web" \
|
||||||
vendor="Fedora Infrastructure" \
|
vendor="Fedora Infrastructure" \
|
||||||
|
@ -75,12 +79,14 @@ items:
|
||||||
rm -rf anitya
|
rm -rf anitya
|
||||||
{% if env == 'staging' %}
|
{% if env == 'staging' %}
|
||||||
# Let's use staging auth server in staging
|
# Let's use staging auth server in staging
|
||||||
RUN sed -i 's/id.fedoraproject.org/id.stg.fedoraproject.org/g' /usr/local/lib/python3.11/site-packages/social_core/backends/fedora.py
|
RUN sed -i 's/id.fedoraproject.org/id.stg.fedoraproject.org/g' /usr/local/lib/python3.12/site-packages/social_core/backends/fedora.py
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# Hotfix for social_auth-sqlalchemy
|
# Hotfix for social_auth-sqlalchemy
|
||||||
# Could be removed when we switch to something else
|
# Could be removed when we switch to something else
|
||||||
RUN sed -i 's/base64.encodestring/base64.encodebytes/g' /usr/local/lib/python3.11/site-packages/social_sqlalchemy/storage.py
|
{% if env == 'staging' %}
|
||||||
|
RUN sed -i 's/base64.encodestring/base64.encodebytes/g' /usr/local/lib/python3.12/site-packages/social_sqlalchemy/storage.py
|
||||||
|
{% endif %}
|
||||||
RUN mkdir /httpdir
|
RUN mkdir /httpdir
|
||||||
RUN chmod 777 /httpdir
|
RUN chmod 777 /httpdir
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue