Reverting bodhi-openshift to use openshift-build instead of quay
This commit is contained in:
parent
f84a1ea988
commit
d47e1f29e8
2 changed files with 16 additions and 16 deletions
|
@ -58,7 +58,7 @@ items:
|
||||||
containers:
|
containers:
|
||||||
- name: bodhi-web
|
- name: bodhi-web
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
image: bodhi-base-prebuilt:staging
|
image: bodhi-base:latest
|
||||||
command: ["bash"]
|
command: ["bash"]
|
||||||
args: ["/etc/bodhi/start.sh"]
|
args: ["/etc/bodhi/start.sh"]
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -133,7 +133,7 @@ items:
|
||||||
from:
|
from:
|
||||||
kind: ImageStreamTag
|
kind: ImageStreamTag
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
name: bodhi-base-prebuilt:staging
|
name: bodhi-base:latest
|
||||||
{% else %}
|
{% else %}
|
||||||
name: bodhi-web:latest
|
name: bodhi-web:latest
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -182,7 +182,7 @@ items:
|
||||||
containers:
|
containers:
|
||||||
- name: bodhi-consumer
|
- name: bodhi-consumer
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
image: bodhi-base-prebuilt:staging
|
image: bodhi-base:latest
|
||||||
command: ["/usr/bin/fedora-messaging"]
|
command: ["/usr/bin/fedora-messaging"]
|
||||||
args: ["consume"]
|
args: ["consume"]
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -238,7 +238,7 @@ items:
|
||||||
from:
|
from:
|
||||||
kind: ImageStreamTag
|
kind: ImageStreamTag
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
name: bodhi-base-prebuilt:staging
|
name: bodhi-base:latest
|
||||||
{% else %}
|
{% else %}
|
||||||
name: bodhi-consumer:latest
|
name: bodhi-consumer:latest
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -287,7 +287,7 @@ items:
|
||||||
containers:
|
containers:
|
||||||
- name: bodhi-celery
|
- name: bodhi-celery
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
image: bodhi-base-prebuilt:staging
|
image: bodhi-base:latest
|
||||||
command: ["/usr/bin/celery"]
|
command: ["/usr/bin/celery"]
|
||||||
args: ["worker", "-A", "bodhi.server.tasks.app", "-l", "info", "-Q", "celery"]
|
args: ["worker", "-A", "bodhi.server.tasks.app", "-l", "info", "-Q", "celery"]
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -343,7 +343,7 @@ items:
|
||||||
from:
|
from:
|
||||||
kind: ImageStreamTag
|
kind: ImageStreamTag
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
name: bodhi-base-prebuilt:staging
|
name: bodhi-base:latest
|
||||||
{% else %}
|
{% else %}
|
||||||
name: bodhi-celery:latest
|
name: bodhi-celery:latest
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -390,7 +390,7 @@ items:
|
||||||
containers:
|
containers:
|
||||||
- name: bodhi-celery-beat
|
- name: bodhi-celery-beat
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
image: bodhi-base-prebuilt:staging
|
image: bodhi-base:latest
|
||||||
workingDir: "/tmp"
|
workingDir: "/tmp"
|
||||||
command: ["/usr/bin/celery"]
|
command: ["/usr/bin/celery"]
|
||||||
args: ["beat", "-A", "bodhi.server.tasks.app", "-l", "info"]
|
args: ["beat", "-A", "bodhi.server.tasks.app", "-l", "info"]
|
||||||
|
@ -447,7 +447,7 @@ items:
|
||||||
from:
|
from:
|
||||||
kind: ImageStreamTag
|
kind: ImageStreamTag
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
name: bodhi-base-prebuilt:staging
|
name: bodhi-base:latest
|
||||||
{% else %}
|
{% else %}
|
||||||
name: bodhi-celery-beat:latest
|
name: bodhi-celery-beat:latest
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1,17 +1,18 @@
|
||||||
FROM fedora:30
|
FROM fedora:31
|
||||||
LABEL \
|
LABEL \
|
||||||
name="bodhi-base" \
|
name="bodhi-base" \
|
||||||
vendor="Fedora Infrastructure" \
|
vendor="Fedora Infrastructure" \
|
||||||
license="MIT"
|
license="MIT"
|
||||||
RUN curl -o /etc/yum.repos.d/infra-tags-stg.repo https://infrastructure.fedoraproject.org/cgit/ansible.git/plain/files/common/fedora-infra-tags-stg.repo
|
|
||||||
# While dnf has a --nodocs, it doesen't have a --docs...
|
# While dnf has a --nodocs, it doesen't have a --docs...
|
||||||
RUN sed -i '/nodocs/d' /etc/dnf/dnf.conf
|
RUN sed -i '/nodocs/d' /etc/dnf/dnf.conf
|
||||||
|
|
||||||
RUN dnf install -y \
|
RUN dnf install -y \
|
||||||
git \
|
git \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
fedora-messaging \
|
fedora-messaging \
|
||||||
httpd \
|
httpd \
|
||||||
intltool \
|
intltool \
|
||||||
|
origin-clients \
|
||||||
python3-alembic \
|
python3-alembic \
|
||||||
python3-arrow \
|
python3-arrow \
|
||||||
python3-backoff \
|
python3-backoff \
|
||||||
|
@ -32,6 +33,7 @@ RUN dnf install -y \
|
||||||
python3-pyramid \
|
python3-pyramid \
|
||||||
python3-pyramid-fas-openid \
|
python3-pyramid-fas-openid \
|
||||||
python3-pyramid-mako \
|
python3-pyramid-mako \
|
||||||
|
python3-pyramid_sawing \
|
||||||
python3-bugzilla \
|
python3-bugzilla \
|
||||||
python3-fedora \
|
python3-fedora \
|
||||||
python3-pyyaml \
|
python3-pyyaml \
|
||||||
|
@ -45,16 +47,14 @@ RUN dnf install -y \
|
||||||
koji && \
|
koji && \
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
|
||||||
#RUN git clone -b 5.1 https://github.com/fedora-infra/bodhi.git /srv/bodhi && \
|
RUN git clone -b staging https://github.com/fedora-infra/bodhi.git /srv/bodhi && \
|
||||||
RUN git clone -b 5.1 https://github.com/pypingou/bodhi.git /srv/bodhi && \
|
|
||||||
cd /srv/bodhi && \
|
cd /srv/bodhi && \
|
||||||
git log -1 && \
|
|
||||||
python3 -m pip install . --no-use-pep517 && \
|
python3 -m pip install . --no-use-pep517 && \
|
||||||
mkdir -p /usr/share/bodhi && \
|
mkdir -p /usr/share/bodhi && \
|
||||||
cp /srv/bodhi/apache/bodhi.wsgi /usr/share/bodhi/bodhi.wsgi
|
cp /srv/bodhi/apache/bodhi.wsgi /usr/share/bodhi/bodhi.wsgi
|
||||||
|
|
||||||
# Set up krb5
|
|
||||||
RUN rm -f /etc/krb5.conf && \
|
RUN rm -f /etc/krb5.conf && \
|
||||||
ln -sf /etc/bodhi/krb5.conf /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
|
ln -sf /etc/keytabs/koji-keytab /etc/krb5.bodhi_bodhi.fedoraproject.org.keytab
|
||||||
|
|
||||||
ENV USER=openshift
|
ENV USER=openshift
|
Loading…
Add table
Add a link
Reference in a new issue