-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Spark to 2.4.5, infra Makefile revamp
- Loading branch information
1 parent
abf3527
commit 08e3efa
Showing
6 changed files
with
31 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ node_modules | |
alt/ | ||
checkpoint | ||
metastore_db/ | ||
.spark/ | ||
.spark*/ | ||
.vagrant/ | ||
out/ | ||
__pycache__/ | ||
|
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 |
---|---|---|
@@ -1,19 +1,30 @@ | ||
.PHONY: all build tag push list | ||
SPARK_VERSION:=2.4.5 | ||
COURSE_VERSION:=2020.1 | ||
IMAGE_NAME:=luisbelloch/spark | ||
|
||
all: build tag | ||
.PHONY: help | ||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(lastword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' | ||
|
||
build: | ||
docker build -t luisbelloch/spark . | ||
.PHONY: all | ||
all: build tag ## Builds and tags an image | ||
|
||
tag: | ||
docker tag luisbelloch/spark luisbelloch/spark:2.4.4 | ||
docker tag luisbelloch/spark luisbelloch/spark:2019.2 | ||
.PHONY: build | ||
build: ## Assembles image from Spark binaries | ||
docker build --build-arg SPARK_VERSION=${SPARK_VERSION} -t $(IMAGE_NAME) . | ||
|
||
push: | ||
docker push luisbelloch/spark:2.4.4 | ||
docker push luisbelloch/spark:2019.2 | ||
docker push luisbelloch/spark | ||
.PHONY: tag | ||
tag: ## Adds tags to current latest image | ||
docker tag $(IMAGE_NAME) $(IMAGE_NAME):$(SPARK_VERSION) | ||
docker tag $(IMAGE_NAME) $(IMAGE_NAME):$(COURSE_VERSION) | ||
|
||
list: | ||
docker images luisbelloch/spark | ||
.PHONY: push | ||
push: ## Uploads images to registry | ||
docker push $(IMAGE_NAME):$(SPARK_VERSION) | ||
docker push $(IMAGE_NAME):$(COURSE_VERSION) | ||
docker push $(IMAGE_NAME) | ||
|
||
.PHONY: list | ||
list: ## Lists local generated images | ||
docker images $(IMAGE_NAME) | ||
|
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