-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Created one DockerFile per plugin. * Makefile in each plugins directory is updated to work independently. Change-Id: I0459da2e06174d6f704763e3d1097b22dea31657 Closes: #522
- Loading branch information
1 parent
6543f63
commit 5db0074
Showing
16 changed files
with
70 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,45 +19,44 @@ USE_PROXY ?= false | |
|
||
.PHONY: build | ||
build: | ||
(cd image && go build -v -o $(GOBIN)/config-function .) | ||
(go build -v -o $(GOBIN)/config-function .) | ||
|
||
.PHONY: all | ||
all: generate license build fix vet fmt test lint tidy | ||
|
||
.PHONY: fix | ||
fix: | ||
(cd image && go fix ./...) | ||
(go fix .) | ||
|
||
.PHONY: fmt | ||
fmt: | ||
(cd image && go fmt ./...) | ||
(go fmt .) | ||
|
||
.PHONY: generate | ||
generate: | ||
(which $(GOBIN)/mdtogo || go get sigs.k8s.io/kustomize/cmd/mdtogo) | ||
(cd image && GOBIN=$(GOBIN) go generate ./...) | ||
(GOBIN=$(GOBIN) go generate .) | ||
|
||
.PHONY: tidy | ||
tidy: | ||
(cd image && go mod tidy) | ||
(go mod tidy) | ||
|
||
.PHONY: fix | ||
lint: | ||
(which $(GOBIN)/golangci-lint || go get github.com/golangci/golangci-lint/cmd/[email protected]) | ||
(cd image && $(GOBIN)/golangci-lint run ./...) | ||
($(GOBIN)/golangci-lint run .) | ||
|
||
.PHONY: test | ||
test: | ||
(cd image && go test -cover ./...) | ||
(go test -cover .) | ||
|
||
.PHONY: vet | ||
vet: | ||
(cd image && go vet ./...) | ||
(go vet .) | ||
|
||
.PHONY: image | ||
image: | ||
ifeq ($(USE_PROXY), true) | ||
cd image && \ | ||
docker build . --network=host \ | ||
--build-arg http_proxy=$(PROXY) \ | ||
--build-arg https_proxy=$(PROXY) \ | ||
|
@@ -68,7 +67,6 @@ ifeq ($(USE_PROXY), true) | |
--tag $(DOCKER_IMAGE) \ | ||
--force-rm=$(DOCKER_FORCE_CLEAN) | ||
else | ||
cd image && \ | ||
docker build . --network=host \ | ||
--tag $(DOCKER_IMAGE) \ | ||
--force-rm=$(DOCKER_FORCE_CLEAN) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Additional Docker image root certificate authorities | ||
If you require additional certificate authorities for your Docker image: | ||
* Add ASCII PEM encoded .crt files to this directory | ||
* The files will be copied into your docker image at build time. | ||
|
||
To update manually copy the .crt files to /usr/local/share/ca-certificates/ and run sudo update-ca-certificates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,45 +19,44 @@ USE_PROXY ?= false | |
|
||
.PHONY: build | ||
build: | ||
(cd image && go build -v -o $(GOBIN)/config-function .) | ||
(go build -v -o $(GOBIN)/config-function .) | ||
|
||
.PHONY: all | ||
all: generate license build fix vet fmt test lint tidy | ||
|
||
.PHONY: fix | ||
fix: | ||
(cd image && go fix ./...) | ||
(go fix .) | ||
|
||
.PHONY: fmt | ||
fmt: | ||
(cd image && go fmt ./...) | ||
(go fmt .) | ||
|
||
.PHONY: generate | ||
generate: | ||
(which $(GOBIN)/mdtogo || go get sigs.k8s.io/kustomize/cmd/mdtogo) | ||
(cd image && GOBIN=$(GOBIN) go generate ./...) | ||
(GOBIN=$(GOBIN) go generate .) | ||
|
||
.PHONY: tidy | ||
tidy: | ||
(cd image && go mod tidy) | ||
(go mod tidy) | ||
|
||
.PHONY: fix | ||
lint: | ||
(which $(GOBIN)/golangci-lint || go get github.com/golangci/golangci-lint/cmd/[email protected]) | ||
(cd image && $(GOBIN)/golangci-lint run ./...) | ||
($(GOBIN)/golangci-lint run .) | ||
|
||
.PHONY: test | ||
test: | ||
(cd image && go test -cover ./...) | ||
(go test -cover .) | ||
|
||
.PHONY: vet | ||
vet: | ||
(cd image && go vet ./...) | ||
(go vet .) | ||
|
||
.PHONY: image | ||
image: | ||
ifeq ($(USE_PROXY), true) | ||
cd image && \ | ||
docker build . --network=host \ | ||
--build-arg http_proxy=$(PROXY) \ | ||
--build-arg https_proxy=$(PROXY) \ | ||
|
@@ -68,7 +67,6 @@ ifeq ($(USE_PROXY), true) | |
--tag $(DOCKER_IMAGE) \ | ||
--force-rm=$(DOCKER_FORCE_CLEAN) | ||
else | ||
cd image && \ | ||
docker build . --network=host \ | ||
--tag $(DOCKER_IMAGE) \ | ||
--force-rm=$(DOCKER_FORCE_CLEAN) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Additional Docker image root certificate authorities | ||
If you require additional certificate authorities for your Docker image: | ||
* Add ASCII PEM encoded .crt files to this directory | ||
* The files will be copied into your docker image at build time. | ||
|
||
To update manually copy the .crt files to /usr/local/share/ca-certificates/ and run sudo update-ca-certificates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,45 +19,44 @@ USE_PROXY ?= false | |
|
||
.PHONY: build | ||
build: | ||
(cd image && go build -v -o $(GOBIN)/config-function .) | ||
(go build -v -o $(GOBIN)/config-function .) | ||
|
||
.PHONY: all | ||
all: generate license build fix vet fmt test lint tidy | ||
|
||
.PHONY: fix | ||
fix: | ||
(cd image && go fix ./...) | ||
(go fix .) | ||
|
||
.PHONY: fmt | ||
fmt: | ||
(cd image && go fmt ./...) | ||
(go fmt .) | ||
|
||
.PHONY: generate | ||
generate: | ||
(which $(GOBIN)/mdtogo || go get sigs.k8s.io/kustomize/cmd/mdtogo) | ||
(cd image && GOBIN=$(GOBIN) go generate ./...) | ||
(GOBIN=$(GOBIN) go generate .) | ||
|
||
.PHONY: tidy | ||
tidy: | ||
(cd image && go mod tidy) | ||
(go mod tidy) | ||
|
||
.PHONY: fix | ||
lint: | ||
(which $(GOBIN)/golangci-lint || go get github.com/golangci/golangci-lint/cmd/[email protected]) | ||
(cd image && $(GOBIN)/golangci-lint run ./...) | ||
($(GOBIN)/golangci-lint run .) | ||
|
||
.PHONY: test | ||
test: | ||
(cd image && go test -cover ./...) | ||
(go test -cover .) | ||
|
||
.PHONY: vet | ||
vet: | ||
(cd image && go vet ./...) | ||
(go vet .) | ||
|
||
.PHONY: image | ||
image: | ||
ifeq ($(USE_PROXY), true) | ||
cd image && \ | ||
docker build . --network=host \ | ||
--build-arg http_proxy=$(PROXY) \ | ||
--build-arg https_proxy=$(PROXY) \ | ||
|
@@ -68,7 +67,6 @@ ifeq ($(USE_PROXY), true) | |
--tag $(DOCKER_IMAGE) \ | ||
--force-rm=$(DOCKER_FORCE_CLEAN) | ||
else | ||
cd image && \ | ||
docker build . --network=host \ | ||
--tag $(DOCKER_IMAGE) \ | ||
--force-rm=$(DOCKER_FORCE_CLEAN) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Additional Docker image root certificate authorities | ||
If you require additional certificate authorities for your Docker image: | ||
* Add ASCII PEM encoded .crt files to this directory | ||
* The files will be copied into your docker image at build time. | ||
|
||
To update manually copy the .crt files to /usr/local/share/ca-certificates/ and run sudo update-ca-certificates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Additional Docker image root certificate authorities | ||
If you require additional certificate authorities for your Docker image: | ||
* Add ASCII PEM encoded .crt files to this directory | ||
* The files will be copied into your docker image at build time. | ||
|
||
To update manually copy the .crt files to /usr/local/share/ca-certificates/ and run sudo update-ca-certificates. |