Badges: add cyrus-sasl-gssapi to the builder image

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-04-04 14:29:55 +02:00
parent e4c077ce23
commit 21191fe68f
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
3 changed files with 41 additions and 2 deletions

View file

@ -27,3 +27,8 @@ items:
scheduled: true
referencePolicy:
type: Source
# The Python 3.10 builder image plus custom packages
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: python-310-custom-builder

View file

@ -0,0 +1,8 @@
FROM quay.io/fedora/python-310:latest
LABEL \
name="python-310-badges-custom-builder" \
vendor="Fedora Infrastructure" \
license="MIT"
USER root
RUN dnf install -y cyrus-sasl-gssapi
USER 1001

View file

@ -2,6 +2,32 @@
---
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
name: python-310-custom-builder
labels:
app: badges
build: python-310-custom-builder
spec:
runPolicy: Serial
source:
type: Dockerfile
dockerfile: |-
{{ load_file('Dockerfile-builder-image') | indent(6) }}
strategy:
type: Docker
dockerStrategy:
from:
kind: ImageStreamTag
name: python-310:latest
output:
to:
kind: ImageStreamTag
name: python-310-custom-builder:latest
triggers:
- type: ImageChange
---
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
name: fedbadges
labels:
@ -21,7 +47,7 @@ spec:
sourceStrategy:
from:
kind: ImageStreamTag
name: python-310:latest
name: python-310-custom-builder:latest
output:
to:
kind: ImageStreamTag
@ -59,7 +85,7 @@ spec:
sourceStrategy:
from:
kind: ImageStreamTag
name: python-310:latest
name: python-310-custom-builder:latest
output:
to:
kind: ImageStreamTag