mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-11 02:52:56 +01:00
Add go-task to GitLab Operator build base image
This commit is contained in:
parent
345189653e
commit
088a7d14f5
1 changed files with 9 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ ARG KUBEBUILDER_VERSION=3.2.0
|
||||||
ARG YQ_VERSION=4.7.0
|
ARG YQ_VERSION=4.7.0
|
||||||
ARG HELM_VERSION=3.5.2
|
ARG HELM_VERSION=3.5.2
|
||||||
ARG OPERATORSDK_VERSION=1.14.0
|
ARG OPERATORSDK_VERSION=1.14.0
|
||||||
|
ARG TASK_VERSION=3.12.1
|
||||||
# ARG OPM_VERSION=1.19.0
|
# ARG OPM_VERSION=1.19.0
|
||||||
|
|
||||||
RUN apk add --no-cache podman buildah curl make gcc musl-dev git bash coreutils
|
RUN apk add --no-cache podman buildah curl make gcc musl-dev git bash coreutils
|
||||||
|
|
@ -97,6 +98,14 @@ COPY --from=kustomize /go/bin/kustomize /usr/local/bin/kustomize
|
||||||
# Controller-gen
|
# Controller-gen
|
||||||
COPY --from=controller-gen /go/bin/controller-gen /usr/local/bin/controller-gen
|
COPY --from=controller-gen /go/bin/controller-gen /usr/local/bin/controller-gen
|
||||||
|
|
||||||
|
# Task
|
||||||
|
RUN curl --retry 6 -Ls https://github.com/go-task/task/releases/download/v${TASK_VERSION}/task_linux_amd64.tar.gz | tar -xz -C /tmp/ \
|
||||||
|
&& chmod +x /tmp/task \
|
||||||
|
&& mv /tmp/task /usr/local/bin/task
|
||||||
|
|
||||||
|
# Clean up temporary installation files
|
||||||
|
RUN rm -rf /tmp/*
|
||||||
|
|
||||||
## Final image
|
## Final image
|
||||||
FROM golang:${GOLANG_VERSION}-alpine${ALPINE_VERSION}
|
FROM golang:${GOLANG_VERSION}-alpine${ALPINE_VERSION}
|
||||||
LABEL maintainer="GitLab Distribution Team" \
|
LABEL maintainer="GitLab Distribution Team" \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue