mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-12 19:42:55 +01:00
fix opm-related build
This commit is contained in:
parent
5547149e5d
commit
7f8ce99ece
1 changed files with 6 additions and 4 deletions
|
|
@ -14,17 +14,19 @@ RUN mkdir /src && cd /src; \
|
|||
## Opm
|
||||
|
||||
FROM golang:${GOLANG_VERSION}-alpine as opm
|
||||
|
||||
ARG OPM_VERSION=1.19.0
|
||||
ENV GOPROXY="https://proxy.golang.org/"
|
||||
RUN apk add --no-cache gcc musl-dev
|
||||
|
||||
## on Alpine needs to be built from scratch due to glibc vs musl issues
|
||||
RUN apk add --no-cache make gcc musl-dev curl
|
||||
|
||||
## on Alpine opm needs to be built from scratch due to glibc vs musl issues
|
||||
RUN mkdir -p /src \
|
||||
&& curl -s -L -o /src/operator-registry-${OPM_VERSION}.tgz https://github.com/operator-framework/operator-registry/archive/refs/tags/v${OPM_VERSION}.tar.gz \
|
||||
&& cd /src \
|
||||
&& tar -xzf operator-registry-${OPM_VERSION}.tgz \
|
||||
&& ln -s operator-registry operator-registry-${OPM_VERSION} \
|
||||
&& cd operator-registry-${OPM_VERSION} \
|
||||
&& ln -s operator-registry-${OPM_VERSION} operator-registry \
|
||||
&& cd operator-registry \
|
||||
&& make bin/opm
|
||||
|
||||
## Controller-gen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue