diff --git a/Dockerfile.gitlab-operator-build-base b/Dockerfile.gitlab-operator-build-base index 3a15770..4eae3d4 100644 --- a/Dockerfile.gitlab-operator-build-base +++ b/Dockerfile.gitlab-operator-build-base @@ -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