Skip to content

Commit

Permalink
Improve application-operator build performance (#10806)
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 committed Mar 8, 2021
1 parent 8b51aa9 commit 8aad61e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 30 deletions.
6 changes: 1 addition & 5 deletions components/application-operator/Dockerfile
@@ -1,12 +1,8 @@
FROM eu.gcr.io/kyma-project/external/golang:1.14.8-alpine as builder
FROM eu.gcr.io/kyma-project/external/golang:1.16.0-alpine as builder

ARG DOCK_PKG_DIR=/go/src/github.com/kyma-project/kyma/components/application-operator
WORKDIR $DOCK_PKG_DIR

COPY go.mod .
COPY go.sum .
RUN go mod download

COPY ./licenses/ /app/licenses
COPY . $DOCK_PKG_DIR

Expand Down
28 changes: 3 additions & 25 deletions components/application-operator/Makefile
@@ -1,6 +1,5 @@
APP_NAME = application-operator
APP_PATH = components/$(APP_NAME)
BUILDPACK = eu.gcr.io/kyma-project/test-infra/buildpack-golang-toolbox:v20200423-1d9d6590
SCRIPTS_DIR = $(realpath $(shell pwd)/../..)/common/makefiles

override ENTRYPOINT = cmd/manager/manager.go
Expand All @@ -9,30 +8,9 @@ include $(SCRIPTS_DIR)/generic-make-go.mk

VERIFY_IGNORE := /vendor\|/mocks

verify:: mod-verify

resolve-local:
GO111MODULE=on go mod vendor -v

ensure-local:
@echo "Go modules present in component - omitting."

dep-status:
@echo "Go modules present in component - omitting."

dep-status-local:
@echo "Go modules present in component - omitting."

mod-verify-local:
GO111MODULE=on go mod verify

test-local:
GO111MODULE=on go test ./...

$(eval $(call buildpack-cp-ro,resolve))
$(eval $(call buildpack-mount,mod-verify))
$(eval $(call buildpack-mount,test))
release:
$(MAKE) gomod-release-local

.PHONY: path-to-referenced-charts
path-to-referenced-charts:
@echo "resources/application-connector"
@echo "resources/application-connector"

0 comments on commit 8aad61e

Please sign in to comment.