Skip to content

Commit

Permalink
fix CONTAINER_REPO for dev-* targets and Makefile formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ptzianos committed Sep 13, 2024
1 parent cee729a commit a11445a
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -229,23 +229,23 @@ install: deploy-cluster dev-infra deploy-elasticoperator deploy-arangodb-crds ad

@echo "deploying dracon"
@helm upgrade dracon ./deploy/dracon/chart \
--install \
--values ./deploy/dracon/values/dev.yaml \
--create-namespace \
--set "image.registry=$(CONTAINER_REPO)" \
--namespace $(DRACON_NS) \
--version $(DRACON_VERSION) \
--wait
--install \
--values ./deploy/dracon/values/dev.yaml \
--create-namespace \
--set "image.registry=$(CONTAINER_REPO)" \
--namespace $(DRACON_NS) \
--version $(DRACON_VERSION) \
--wait

@echo "Applying migrations"
@helm upgrade deduplication-db-migrations ./deploy/deduplication-db-migrations/chart \
--install \
--values ./deploy/deduplication-db-migrations/values/dev.yaml \
--create-namespace \
--set "image.registry=$(CONTAINER_REPO)" \
--namespace $(DRACON_NS) \
--set "image.tag=$(DRACON_VERSION)" \
--wait
--install \
--values ./deploy/deduplication-db-migrations/values/dev.yaml \
--create-namespace \
--set "image.registry=$(CONTAINER_REPO)" \
--namespace $(DRACON_NS) \
--set "image.tag=$(DRACON_VERSION)" \
--wait

@echo "Installing Components"
# we are setting the container repo to it's own value so that we can override it from other make targets
Expand All @@ -269,7 +269,7 @@ install-oss-components:

dev-build-oss-components: cmd/draconctl/bin
@echo "Building open-source components for local dracon instance..."
$(eval CONTAINER_REPO:=localhost:5000)
$(eval CONTAINER_REPO:=localhost:5000/ocurity/dracon)

$(MAKE) -j 16 publish-component-containers CONTAINER_REPO=$(CONTAINER_REPO)
@./bin/cmd/draconctl components package \
Expand All @@ -279,11 +279,11 @@ dev-build-oss-components: cmd/draconctl/bin
./components

dev-dracon:
$(eval CONTAINER_REPO:=localhost:5000)
$(eval CONTAINER_REPO:=localhost:5000/ocurity/dracon)
$(eval DRACON_OSS_COMPONENTS_PACKAGE_URL:=./$(DRACON_OSS_COMPONENTS_NAME)-$(DRACON_VERSION).tgz)
$(eval IN_CLUSTER_CONTAINER_REPO:=kind-registry:5000)
$(MAKE) -j 16 publish-containers CONTAINER_REPO=$(CONTAINER_REPO)
$(eval IN_CLUSTER_CONTAINER_REPO:=kind-registry:5000/ocurity/dracon)

$(MAKE) -j 16 draconctl-image-publish CONTAINER_REPO=$(CONTAINER_REPO)
$(MAKE) -j 16 dev-build-oss-components CONTAINER_REPO=$(CONTAINER_REPO)

$(MAKE) install CONTAINER_REPO=$(IN_CLUSTER_CONTAINER_REPO) DRACON_OSS_COMPONENTS_PACKAGE_URL=$(DRACON_OSS_COMPONENTS_PACKAGE_URL)
Expand Down

0 comments on commit a11445a

Please sign in to comment.