From d0fa65332c0c99a3424f605cad4c37165bd59845 Mon Sep 17 00:00:00 2001 From: Mitchell Nielsen Date: Wed, 14 Oct 2020 23:26:50 +0000 Subject: [PATCH] Add build image for the GitLab Operator Adds a new Dockerfile which installs dependencies used in the GitLab Operator pipeline. --- .gitlab-ci.yml | 4 ++++ Dockerfile.gitlab-operator-build-base | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 Dockerfile.gitlab-operator-build-base diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 012401d..8fedff8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -120,6 +120,8 @@ gitlab-docs test: *test_build gitlab-docs-lint test: *test_build # Used by go projects for linting https://gitlab.com/gitlab-org/gitlab/blob/master/doc/development/go_guide/index.md#automatic-linting golangci-lint-alpine test: *test_build +# Used by gitlab-operator: https://gitlab.com/gitlab-org/gl-openshift/gitlab-operator +gitlab-operator-build-base test: *test_build # Builds @@ -186,6 +188,8 @@ gitlab-docs: *build_and_deploy gitlab-docs-lint: *build_and_deploy # Used by go projects for linting https://gitlab.com/gitlab-org/gitlab/blob/master/doc/development/go_guide/index.md#automatic-linting golangci-lint-alpine: *build_and_deploy +# Used by gitlab-operator: https://gitlab.com/gitlab-org/gl-openshift/gitlab-operator +gitlab-operator-build-base: *build_and_deploy cache-google-chrome: stage: automation diff --git a/Dockerfile.gitlab-operator-build-base b/Dockerfile.gitlab-operator-build-base new file mode 100644 index 0000000..14350eb --- /dev/null +++ b/Dockerfile.gitlab-operator-build-base @@ -0,0 +1,8 @@ +FROM golang:1.14 +LABEL maintainer="GitLab Distribution Team" \ + description="Build base image for the GitLab Operator project." + +# Install dependencies +RUN go get -u \ + github.com/onsi/ginkgo/ginkgo \ + golang.org/x/lint/golint