mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-11 02:52:56 +01:00
Merge branch 'hp-add-kubebuilder-to-operator-build-image' into 'master'
Add kubebuilder to GitLab Operator build image See merge request gitlab-org/gitlab-build-images!348
This commit is contained in:
commit
7f1ef39b90
1 changed files with 8 additions and 3 deletions
|
|
@ -1,8 +1,13 @@
|
||||||
FROM golang:1.14
|
FROM golang:1.14
|
||||||
|
|
||||||
LABEL maintainer="GitLab Distribution Team" \
|
LABEL maintainer="GitLab Distribution Team" \
|
||||||
description="Build base image for the GitLab Operator project."
|
description="Build base image for the GitLab Operator project."
|
||||||
|
|
||||||
# Install dependencies
|
ARG KUBEBUILDER_VERSION=2.3.1
|
||||||
|
|
||||||
RUN go get -u \
|
RUN go get -u \
|
||||||
github.com/onsi/ginkgo/ginkgo \
|
github.com/onsi/ginkgo/ginkgo \
|
||||||
golang.org/x/lint/golint
|
golang.org/x/lint/golint \
|
||||||
|
&& 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 \
|
||||||
|
&& ln -sfv /usr/local/kubebuilder/bin/* /usr/local/bin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue