150 lines
No EOL
3.6 KiB
YAML
150 lines
No EOL
3.6 KiB
YAML
apiVersion: v1
|
|
items:
|
|
- apiVersion: v1
|
|
kind: BuildConfig
|
|
metadata:
|
|
labels:
|
|
build: bodhi-base
|
|
name: bodhi-base
|
|
spec:
|
|
runPolicy: Serial
|
|
source:
|
|
dockerfile: |-
|
|
FROM fedora:29
|
|
LABEL \
|
|
name="bodhi-base" \
|
|
vendor="Fedora Infrastructure" \
|
|
license="MIT"
|
|
RUN curl -o /etc/yum.repos.d/infra-tags.repo https://infrastructure.fedoraproject.org/cgit/ansible.git/plain/files/common/fedora-infra-tags.repo
|
|
{% if env == "staging" %}
|
|
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
|
|
{% endif %}
|
|
# 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}}
|
|
# 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
|
|
strategy:
|
|
type: Docker
|
|
dockerStrategy:
|
|
noCache: false
|
|
output:
|
|
to:
|
|
kind: ImageStreamTag
|
|
name: bodhi-base:latest
|
|
kind: List
|
|
metadata: {}
|
|
---
|
|
apiVersion: v1
|
|
items:
|
|
- apiVersion: v1
|
|
kind: BuildConfig
|
|
metadata:
|
|
labels:
|
|
build: bodhi-web
|
|
name: bodhi-web
|
|
spec:
|
|
runPolicy: Serial
|
|
source:
|
|
dockerfile: |-
|
|
FROM bodhi-base
|
|
LABEL \
|
|
name="bodhi-web" \
|
|
vendor="Fedora Infrastructure" \
|
|
license="MIT"
|
|
RUN dnf install --refresh -y bodhi-docs-{{bodhi_version}} python3-pyramid_sawing
|
|
EXPOSE 8080
|
|
ENTRYPOINT bash /etc/bodhi/start.sh
|
|
type: Dockerfile
|
|
strategy:
|
|
type: Docker
|
|
dockerStrategy:
|
|
from:
|
|
kind: "ImageStreamTag"
|
|
name: "bodhi-base:latest"
|
|
noCache: false
|
|
triggers:
|
|
- type: "imageChange"
|
|
imageChange: {}
|
|
output:
|
|
to:
|
|
kind: ImageStreamTag
|
|
name: bodhi-web:latest
|
|
kind: List
|
|
metadata: {}
|
|
---
|
|
apiVersion: v1
|
|
items:
|
|
- apiVersion: v1
|
|
kind: BuildConfig
|
|
metadata:
|
|
labels:
|
|
build: bodhi-consumer
|
|
name: bodhi-consumer
|
|
spec:
|
|
runPolicy: Serial
|
|
source:
|
|
dockerfile: |-
|
|
FROM bodhi-base
|
|
LABEL \
|
|
name="bodhi-consumer" \
|
|
vendor="Fedora Infrastructure" \
|
|
license="MIT"
|
|
ENTRYPOINT /usr/bin/fedora-messaging consume
|
|
type: Dockerfile
|
|
strategy:
|
|
type: Docker
|
|
dockerStrategy:
|
|
from:
|
|
kind: "ImageStreamTag"
|
|
name: "bodhi-base:latest"
|
|
noCache: false
|
|
triggers:
|
|
- type: "imageChange"
|
|
imageChange: {}
|
|
output:
|
|
to:
|
|
kind: ImageStreamTag
|
|
name: bodhi-consumer:latest
|
|
kind: List
|
|
metadata: {}
|
|
---
|
|
apiVersion: v1
|
|
items:
|
|
- apiVersion: v1
|
|
kind: BuildConfig
|
|
metadata:
|
|
labels:
|
|
build: bodhi-celery
|
|
name: bodhi-celery
|
|
spec:
|
|
runPolicy: Serial
|
|
source:
|
|
dockerfile: |-
|
|
FROM bodhi-base
|
|
LABEL \
|
|
name="bodhi-celery" \
|
|
vendor="Fedora Infrastructure" \
|
|
license="MIT"
|
|
ENTRYPOINT /usr/bin/celery-3 worker -A bodhi.server.tasks.app -l info -Q celery
|
|
type: Dockerfile
|
|
strategy:
|
|
type: Docker
|
|
dockerStrategy:
|
|
from:
|
|
kind: "ImageStreamTag"
|
|
name: "bodhi-base:latest"
|
|
noCache: false
|
|
triggers:
|
|
- type: "imageChange"
|
|
imageChange: {}
|
|
output:
|
|
to:
|
|
kind: ImageStreamTag
|
|
name: bodhi-celery:latest
|
|
kind: List
|
|
metadata: {} |