-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (15 loc) · 1.58 KB
/
Copy pathMakefile
File metadata and controls
19 lines (15 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: help
help: ## ❓ Show help menu
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: build-spark
build-spark: ## 🐳 Build Spark image
@docker build --progress=plain -f docker/apache-spark/base/Dockerfile docker/apache-spark/base -t ignitz/apache-spark-base:latest
@docker build --progress=plain -f docker/apache-spark/custom/Dockerfile docker/apache-spark/custom -t ignitz/apache-spark-custom:latest --build-arg SPARK_IMAGE=ignitz/apache-spark-base:latest
.PHONY: build-operator
build-operator: build-spark ## 🐳 Build Spark Operator image
@docker build --progress=plain -f docker/apache-spark/spark-operator/Dockerfile docker/apache-spark/spark-operator -t ignitz/apache-spark-operator:latest --build-arg SPARK_IMAGE=ignitz/apache-spark-custom:latest
.PHONY: buildx
buildx: ## 🐳 Build Multi-Arch and publish to registry
@docker buildx build --progress=plain -f docker/apache-spark/base/Dockerfile docker/apache-spark/base --platform linux/amd64,linux/arm64 -t ignitz/apache-spark-base:latest --push
@docker buildx build --progress=plain -f docker/apache-spark/custom/Dockerfile docker/apache-spark/custom --platform linux/amd64,linux/arm64 -t ignitz/apache-spark-custom:latest --build-arg SPARK_IMAGE=ignitz/apache-spark-base:latest --push
@docker buildx build --progress=plain -f docker/apache-spark/spark-operator/Dockerfile docker/apache-spark/spark-operator --platform linux/amd64,linux/arm64 -t ignitz/apache-spark-operator:latest --build-arg SPARK_IMAGE=ignitz/apache-spark-custom:latest --push