This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker build management components (#940)
Add make target to build container images This change make targets to build and publish docker images of components that live in this repo. It also includes a `kbld-config.yml` file and a script to replace image name with the correct name after bulding the image, to be used by scripts that build packages. Signed-off-by: Rajath Agasthya <ragasthya@vmware.com>
- Loading branch information
1 parent
dda9042
commit 89947b7
Showing
8 changed files
with
1,484 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
# Copyright 2021 VMware, Inc. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
.DEFAULT_GOAL:=help | ||
|
||
help: ## Display this help message | ||
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[0-9A-Za-z_-]+:.*?##/ { printf " \033[36m%-45s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) | ||
|
||
lint: ## Run Go code linting | ||
ifeq ($(origin GOLANGCI_LINT),undefined) | ||
@echo "Error! GOLANGCI_LINT env var not set" | ||
else | ||
$(GOLANGCI_LINT) run -v --timeout=5m | ||
endif | ||
|
||
get-deps: ## Get all dependencies | ||
go mod download | ||
|
||
test: ## Run unit testing suite | ||
echo "N/A: No unit tests for hack/packages" | ||
|
||
e2e-test: ## Run e2e testing suite | ||
echo "N/A: No e2e tests for hack/packages" | ||
|
||
build: ## Build the executable | ||
go build -o kbld-image-replace main.go | ||
|
||
run: ## Run the kbld-image-replace program to add a newImage path to an existing image in kbld-config.yml. | ||
go run main.go $(IMAGE) $(NEW_IMAGE) |
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,8 @@ | ||
module github.com/vmware-tanzu/tanzu-framework/hack/packages | ||
|
||
go 1.16 | ||
|
||
require ( | ||
github.com/k14s/kbld v0.31.0 | ||
sigs.k8s.io/yaml v1.3.0 | ||
) |
Oops, something went wrong.