MM: add rust to the builder image
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
9427f90217
commit
ccd6e1ede2
2 changed files with 43 additions and 5 deletions
|
@ -0,0 +1,8 @@
|
||||||
|
FROM quay.io/fedora/python-311:latest
|
||||||
|
LABEL \
|
||||||
|
name="python-311-with-rust" \
|
||||||
|
vendor="Fedora Infrastructure" \
|
||||||
|
license="MIT"
|
||||||
|
USER root
|
||||||
|
RUN dnf install -y cargo
|
||||||
|
USER 1001
|
|
@ -1,10 +1,42 @@
|
||||||
---
|
---
|
||||||
|
# Build a derivative of the python-311 builder image with Rust added to it
|
||||||
|
apiVersion: build.openshift.io/v1
|
||||||
|
kind: BuildConfig
|
||||||
|
metadata:
|
||||||
|
name: python-311-with-rust
|
||||||
|
labels:
|
||||||
|
app: mirrormanager
|
||||||
|
build: python-311-with-rust
|
||||||
|
spec:
|
||||||
|
runPolicy: Serial
|
||||||
|
source:
|
||||||
|
type: Dockerfile
|
||||||
|
dockerfile: |-
|
||||||
|
{{ load_file('Dockerfile-builder-image') | indent(6) }}
|
||||||
|
strategy:
|
||||||
|
type: Docker
|
||||||
|
dockerStrategy:
|
||||||
|
from:
|
||||||
|
kind: ImageStreamTag
|
||||||
|
# name: python:3.11
|
||||||
|
# namespace: openshift
|
||||||
|
# OpenShift does not have Python 3.11 (yet), use our own ImageStream
|
||||||
|
name: python-311:latest
|
||||||
|
output:
|
||||||
|
to:
|
||||||
|
kind: ImageStreamTag
|
||||||
|
name: python-311-with-rust:latest
|
||||||
|
triggers:
|
||||||
|
- type: ImageChange
|
||||||
|
|
||||||
|
---
|
||||||
|
# Build MirrorManager
|
||||||
apiVersion: build.openshift.io/v1
|
apiVersion: build.openshift.io/v1
|
||||||
kind: BuildConfig
|
kind: BuildConfig
|
||||||
metadata:
|
metadata:
|
||||||
name: mirrormanager2
|
name: mirrormanager2
|
||||||
labels:
|
labels:
|
||||||
app: mirrormanager2
|
app: mirrormanager
|
||||||
build: mm
|
build: mm
|
||||||
spec:
|
spec:
|
||||||
runPolicy: Serial
|
runPolicy: Serial
|
||||||
|
@ -25,10 +57,8 @@ spec:
|
||||||
sourceStrategy:
|
sourceStrategy:
|
||||||
from:
|
from:
|
||||||
kind: ImageStreamTag
|
kind: ImageStreamTag
|
||||||
# name: python:3.11
|
# Our own ImageStream with rust added to it
|
||||||
# namespace: openshift
|
name: python-311-with-rust:latest
|
||||||
# OpenShift does not have Python 3.11 (yet), use our own ImageStream
|
|
||||||
name: python-311:latest
|
|
||||||
output:
|
output:
|
||||||
to:
|
to:
|
||||||
kind: ImageStreamTag
|
kind: ImageStreamTag
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue