Added pyspark version

This commit is contained in:
Jack Yu 2024-04-29 17:52:17 -07:00
commit 27b7683be9
3 changed files with 53 additions and 5 deletions

View file

@ -9,13 +9,22 @@ UID := $(shell id -u)
mobileinsight.sif: mobileinsight.def
"$(APPTAINER)" build --build-arg="NUM_THREADS=$(NUM_THREADS)" "$@" "$<"
run: mobileinsight.sif
mobileinsight-spark.sif: with-spark.def mobileinsight.sif
"$(APPTAINER)" build "$@" "$<"
prepare:
@mkdir -p "$(OVERLAY_DIR)"
@lsmod | grep overlay > /dev/null || sudo modprobe overlay
run: mobileinsight.sif prepare
@$(APPTAINER) run --overlay "$(OVERLAY_DIR)" \
-B "/run/user/$(UID)" mobileinsight.sif
clean:
rm -f mobileinsight.sif $(OVERLAY_DIR)
run-spark: mobileinsight-spark.sif prepare
@$(APPTAINER) run --overlay "$(OVERLAY_DIR)" \
-B "/run/user/$(UID)" mobileinsight-spark.sif
.PHONY: run clean
clean:
rm -rf *.sif $(OVERLAY_DIR)
.PHONY: prepare run run-spark clean