mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Add yq to gitlab-operator-build-base image
This commit is contained in:
parent
a97f21c0cd
commit
a86ddd3631
1 changed files with 5 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ LABEL maintainer="GitLab Distribution Team" \
|
||||||
description="Build base image for the GitLab Operator project."
|
description="Build base image for the GitLab Operator project."
|
||||||
|
|
||||||
ARG KUBEBUILDER_VERSION=2.3.1
|
ARG KUBEBUILDER_VERSION=2.3.1
|
||||||
|
ARG YQ_VERSION=2.4.1
|
||||||
|
|
||||||
RUN go get -u \
|
RUN go get -u \
|
||||||
github.com/onsi/ginkgo/ginkgo \
|
github.com/onsi/ginkgo/ginkgo \
|
||||||
|
|
@ -11,3 +12,7 @@ RUN go get -u \
|
||||||
&& curl -L https://go.kubebuilder.io/dl/${KUBEBUILDER_VERSION}/linux/amd64 | tar -xz -C /tmp/ \
|
&& curl -L https://go.kubebuilder.io/dl/${KUBEBUILDER_VERSION}/linux/amd64 | tar -xz -C /tmp/ \
|
||||||
&& mv /tmp/kubebuilder_${KUBEBUILDER_VERSION}_linux_amd64 /usr/local/kubebuilder \
|
&& mv /tmp/kubebuilder_${KUBEBUILDER_VERSION}_linux_amd64 /usr/local/kubebuilder \
|
||||||
&& ln -sfv /usr/local/kubebuilder/bin/* /usr/local/bin
|
&& ln -sfv /usr/local/kubebuilder/bin/* /usr/local/bin
|
||||||
|
|
||||||
|
RUN curl --retry 6 -LsO https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 \
|
||||||
|
&& chmod +x yq_linux_amd64 \
|
||||||
|
&& mv yq_linux_amd64 /usr/local/bin/yq
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue