Newer
Older
docker-analytics / Makefile
all: spark pyspark kafka spark-pyspark-kafka

COMBINED_FILES:=$(wildcard spark-pyspark-kafka/*)
SPARK_FILES:=$(wildcard spark/*)
PYSPARK_FILES:=$(wildcard pyspark/*)
KAFKA_FILES:=$(wildcard kafka/*)

spark-pyspark-kafka: $(COMBINED_FILES)
	docker build $(BUILD_OPTS) -t nstanger/$@:latest -f $< $@

spark: $(SPARK_FILES)
	docker build $(BUILD_OPTS) -t nstanger/$@:latest -f $< $@

# Rebuild both the following if spark changes!
pyspark: $(PYSPARK_FILES)
	docker build $(BUILD_OPTS) -t nstanger/$@:latest -f $< $@

kafka: $(KAFKA_FILES)
	docker build $(BUILD_OPTS) -t nstanger/$@:latest -f $< $@

debug:
	@echo "COMBINED_FILES = [$(COMBINED_FILES)]"
	@echo "SPARK_FILES = [$(SPARK_FILES)]"
	@echo "PYSPARK_FILES = [$(PYSPARK_FILES)]"
	@echo "KAFKA_FILES = [$(KAFKA_FILES)]"