mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-12 19:42:55 +01:00
move opm up in the build stack. use older alpine for opm build
This commit is contained in:
parent
e474a539bd
commit
d83a2e9124
1 changed files with 13 additions and 12 deletions
|
|
@ -1,21 +1,11 @@
|
|||
ARG GOLANG_VERSION=1.16
|
||||
# 3.14 presents challenges: https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2
|
||||
ARG ALPINE_VERSION=3.14
|
||||
|
||||
## Kustomize
|
||||
FROM golang:${GOLANG_VERSION}-alpine${ALPINE_VERSION} as kustomize
|
||||
|
||||
ARG KUSTOMIZE_VERSION=3.8.10
|
||||
ENV GOPROXY="https://proxy.golang.org/"
|
||||
|
||||
RUN apk add --no-cache gcc musl-dev
|
||||
RUN mkdir /src && cd /src; \
|
||||
go mod init tmp && \
|
||||
go get sigs.k8s.io/kustomize/kustomize/v3@v${KUSTOMIZE_VERSION}
|
||||
ARG OPM_ALPINE_VERSION=3.13
|
||||
|
||||
## Opm
|
||||
|
||||
FROM golang:${GOLANG_VERSION}-alpine${ALPINE_VERSION} as opm
|
||||
FROM golang:${GOLANG_VERSION}-alpine${OPM_ALPINE_VERSION} as opm
|
||||
|
||||
ARG OPM_VERSION=1.19.0
|
||||
ENV GOPROXY="https://proxy.golang.org/"
|
||||
|
|
@ -31,6 +21,17 @@ RUN mkdir -p /src \
|
|||
&& cd operator-registry \
|
||||
&& make bin/opm
|
||||
|
||||
## Kustomize
|
||||
FROM golang:${GOLANG_VERSION}-alpine${ALPINE_VERSION} as kustomize
|
||||
|
||||
ARG KUSTOMIZE_VERSION=3.8.10
|
||||
ENV GOPROXY="https://proxy.golang.org/"
|
||||
|
||||
RUN apk add --no-cache gcc musl-dev
|
||||
RUN mkdir /src && cd /src; \
|
||||
go mod init tmp && \
|
||||
go get sigs.k8s.io/kustomize/kustomize/v3@v${KUSTOMIZE_VERSION}
|
||||
|
||||
## Controller-gen
|
||||
FROM golang:${GOLANG_VERSION}-alpine${ALPINE_VERSION} as controller-gen
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue