bodhi: install the webserver from git using the release tag
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
parent
b602689be1
commit
f0aba5d2a9
6 changed files with 5 additions and 51 deletions
|
@ -12,5 +12,5 @@ nagios_Check_Services:
|
||||||
# Set some bodhi variables here.
|
# Set some bodhi variables here.
|
||||||
# Since they are used when running playbooks against the master nodes.
|
# Since they are used when running playbooks against the master nodes.
|
||||||
#
|
#
|
||||||
bodhi_version: 5.4.0-1.fc32.infra
|
bodhi_version: 5.4.1
|
||||||
bodhi_openshift_pods: 2
|
bodhi_openshift_pods: 2
|
||||||
|
|
|
@ -11,5 +11,5 @@ nagios_Check_Services:
|
||||||
# Set some bodhi variables here.
|
# Set some bodhi variables here.
|
||||||
# Since they are used when running playbooks against the master nodes.
|
# Since they are used when running playbooks against the master nodes.
|
||||||
#
|
#
|
||||||
bodhi_version: 5.3.0-1.fc32.infra
|
bodhi_version: staging
|
||||||
bodhi_openshift_pods: 1
|
bodhi_openshift_pods: 1
|
||||||
|
|
|
@ -95,12 +95,6 @@
|
||||||
app: bodhi
|
app: bodhi
|
||||||
template: buildconfig.yml
|
template: buildconfig.yml
|
||||||
objectname: buildconfig.yml
|
objectname: buildconfig.yml
|
||||||
when: env == "production"
|
|
||||||
- role: openshift/object
|
|
||||||
app: bodhi
|
|
||||||
template: buildconfig-stg.yml
|
|
||||||
objectname: buildconfig.yml
|
|
||||||
when: env == "staging"
|
|
||||||
- role: openshift/start-build
|
- role: openshift/start-build
|
||||||
app: bodhi
|
app: bodhi
|
||||||
buildname: bodhi-base
|
buildname: bodhi-base
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
{% macro load_file(filename) %}{% include filename %}{%- endmacro -%}
|
|
||||||
apiVersion: v1
|
|
||||||
items:
|
|
||||||
- apiVersion: v1
|
|
||||||
kind: BuildConfig
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
build: bodhi-base
|
|
||||||
name: bodhi-base
|
|
||||||
spec:
|
|
||||||
runPolicy: Serial
|
|
||||||
source:
|
|
||||||
dockerfile: |-
|
|
||||||
{{ load_file('dockerfile-base') | indent(8) }}
|
|
||||||
type: Dockerfile
|
|
||||||
strategy:
|
|
||||||
type: Docker
|
|
||||||
dockerStrategy:
|
|
||||||
noCache: false
|
|
||||||
output:
|
|
||||||
to:
|
|
||||||
kind: ImageStreamTag
|
|
||||||
name: bodhi-base:latest
|
|
||||||
kind: List
|
|
||||||
metadata: {}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% macro load_file(filename) %}{% include filename %}{%- endmacro -%}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
items:
|
items:
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
|
@ -10,21 +11,7 @@ items:
|
||||||
runPolicy: Serial
|
runPolicy: Serial
|
||||||
source:
|
source:
|
||||||
dockerfile: |-
|
dockerfile: |-
|
||||||
FROM fedora:32
|
{{ load_file('dockerfile-base') | indent(8) }}
|
||||||
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
|
|
||||||
RUN dnf install -y bodhi-server-{{bodhi_version}} bodhi-docs-{{bodhi_version}} python3-pyramid_sawing python3-gunicorn
|
|
||||||
|
|
||||||
# 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
|
|
||||||
type: Dockerfile
|
type: Dockerfile
|
||||||
strategy:
|
strategy:
|
||||||
type: Docker
|
type: Docker
|
||||||
|
|
|
@ -3,8 +3,6 @@ LABEL \
|
||||||
name="bodhi-base" \
|
name="bodhi-base" \
|
||||||
vendor="Fedora Infrastructure" \
|
vendor="Fedora Infrastructure" \
|
||||||
license="MIT"
|
license="MIT"
|
||||||
# While dnf has a --nodocs, it doesen't have a --docs...
|
|
||||||
RUN sed -i '/nodocs/d' /etc/dnf/dnf.conf
|
|
||||||
|
|
||||||
RUN dnf install -y \
|
RUN dnf install -y \
|
||||||
git \
|
git \
|
||||||
|
@ -48,7 +46,7 @@ RUN dnf install -y \
|
||||||
koji && \
|
koji && \
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
|
||||||
RUN git clone -b staging https://github.com/fedora-infra/bodhi.git /srv/bodhi && \
|
RUN git clone -b {{bodhi_version}} https://github.com/fedora-infra/bodhi.git /srv/bodhi && \
|
||||||
cd /srv/bodhi && \
|
cd /srv/bodhi && \
|
||||||
python3 -m pip install . --no-use-pep517 && \
|
python3 -m pip install . --no-use-pep517 && \
|
||||||
mkdir -p /usr/share/bodhi && \
|
mkdir -p /usr/share/bodhi && \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue