Skip to content

Commit

Permalink
K8s - Add annotations to containers
Browse files Browse the repository at this point in the history
  • Loading branch information
armandomiani committed Dec 19, 2024
1 parent 9544a7a commit 5ed0f71
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
19 changes: 10 additions & 9 deletions k8s/c2d_deployer.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@ $(info ---- RELEASE = $(RELEASE))
.build/$(CHART_NAME): | .build
mkdir -p "$@"


app/build:: .build/$(CHART_NAME)/VERSION \
.build/$(CHART_NAME)/$(CHART_NAME) \
.build/$(CHART_NAME)/images \
.build/$(CHART_NAME)/deployer


DEPLOYER_BUILDER := deployer-builder-$(shell echo $$RANDOM)
TESTER_BUILDER := tester-builder-$(shell echo $$RANDOM)


.build/$(CHART_NAME)/deployer: deployer/* \
chart/$(CHART_NAME)/* \
chart/$(CHART_NAME)/templates/* \
Expand All @@ -68,8 +71,8 @@ app/build:: .build/$(CHART_NAME)/VERSION \
| .build/$(CHART_NAME)
$(call print_target,$@)

docker buildx create --name deployer-builder --use
docker buildx inspect deployer-builder --bootstrap
docker buildx create --name $(DEPLOYER_BUILDER) --use
docker buildx inspect $(DEPLOYER_BUILDER) --bootstrap
docker buildx build \
--push \
--annotation="index,manifest:cloudmarketplace.googleapis.com/service=$(SERVICE_NAME)" \
Expand All @@ -81,7 +84,7 @@ app/build:: .build/$(CHART_NAME)/VERSION \
--tag "$(APP_DEPLOYER_IMAGE_TRACK_TAG)" \
-f deployer/Dockerfile \
.
@docker buildx rm deployer-builder
@docker buildx rm $(DEPLOYER_BUILDER)
@touch "$@"


Expand Down Expand Up @@ -119,16 +122,14 @@ $(IMAGE_TARGETS_LIST): .build/$(CHART_NAME)/%: .build/var/REGISTRY \
| .build/$(CHART_NAME)
$(call print_target,$@)

docker buildx create --name tester-builder --use
docker buildx inspect tester-builder --bootstrap

docker buildx create --name $(TESTER_BUILDER) --use
docker buildx inspect $(TESTER_BUILDER) --bootstrap
cd apptest/tester \
&& docker buildx build \
--push \
--annotation="index,manifest:cloudmarketplace.googleapis.com/service=$(SERVICE_NAME)" \
--tag "$(APP_TESTER_IMAGE)" .

@docker buildx rm tester-builder
@docker buildx rm $(TESTER_BUILDER)
@touch "$@"


Expand Down
1 change: 1 addition & 0 deletions k8s/wordpress/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CHART_NAME := wordpress
APP_ID ?= $(CHART_NAME)
VERIFY_WAIT_TIMEOUT = 1800

SERVICE_NAME := services/d60f6935-b4e7-46b3-8f96-eece88c7cd42.cloudpartnerservices.goog
TRACK ?= 6.6

METRICS_EXPORTER_TAG ?= v0.5.1
Expand Down
2 changes: 1 addition & 1 deletion k8s/wordpress/apptest/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.5
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.8

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
Expand Down

0 comments on commit 5ed0f71

Please sign in to comment.