-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use distroless image for operator image #533
Changes from 5 commits
9706b5f
cabf888
d7e43b5
4a455cb
864ecb9
3590248
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ GIT_SHA=$(shell git rev-parse --short HEAD) | |
TEST_IMAGE=$(TEST_REPO)-testimages:$(VERSION) | ||
DOCKER_TEST_PASS=testzkop@123 | ||
DOCKER_TEST_USER=testzkop | ||
DISTROLESS_DOCKER_REGISTRY=gcr.io | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AKamyshnikova is this line needed, if we not mentioned this registry it will take There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it can be dropped - I forgot to drop after I add default in Dockerfile |
||
.PHONY: all build check clean test | ||
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) | ||
ifeq (,$(shell go env GOBIN)) | ||
|
@@ -130,10 +131,11 @@ build-go: | |
-o bin/$(EXPORTER_NAME)-windows-amd64.exe cmd/exporter/main.go | ||
|
||
build-image: | ||
docker build --build-arg VERSION=$(VERSION) --build-arg DOCKER_REGISTRY=$(DOCKER_REGISTRY) --build-arg GIT_SHA=$(GIT_SHA) -t $(REPO):$(VERSION) . | ||
docker build --build-arg VERSION=$(VERSION) --build-arg DOCKER_REGISTRY=$(DOCKER_REGISTRY) --build-arg DISTROLESS_DOCKER_REGISTRY=$(DISTROLESS_DOCKER_REGISTRY) --build-arg GIT_SHA=$(GIT_SHA) -t $(REPO):$(VERSION) . | ||
docker tag $(REPO):$(VERSION) $(REPO):latest | ||
|
||
build-zk-image: | ||
|
||
docker build --build-arg VERSION=$(VERSION) --build-arg DOCKER_REGISTRY=$(DOCKER_REGISTRY) --build-arg GIT_SHA=$(GIT_SHA) -t $(APP_REPO):$(VERSION) ./docker | ||
docker tag $(APP_REPO):$(VERSION) $(APP_REPO):latest | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/pravega/zookeeper-operator | ||
|
||
go 1.18 | ||
go 1.19 | ||
|
||
require ( | ||
github.com/ghodss/yaml v1.0.0 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AKamyshnikova why are we removing the user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anishakj For distrolless image we cannot run adduser command. I will add update this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anishakj Seems this setting is no longer required.