From 47c14e2f405e61056b552c8a19526c985dbd1af0 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 6 Oct 2023 12:45:31 -0400 Subject: [PATCH] build updates --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c12cc555..7cbd3dc9 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,15 @@ REPO := amancevice/superset -PYTHON_VERSION := 3.9 -SUPERSET_VERSION := 2.1.1 +PYTHON_VERSION := $(shell pyenv local) +SUPERSET_VERSION := $(shell grep apache-superset Pipfile | grep -Eo '[0-9.]+') build: requirements-dev.txt docker build \ - --build-arg PYTHON_VERSION=$(PYTHON_VERSION) \ - --build-arg SUPERSET_VERSION=$(SUPERSET_VERSION) \ --tag $(REPO) \ --tag $(REPO):$(SUPERSET_VERSION) \ . clean: + pipenv --rm docker image ls --quiet $(REPO) | uniq | xargs docker image rm --force edge: requirements-dev.txt @@ -34,8 +33,9 @@ requirements.txt: Pipfile.lock Pipfile.lock: Pipfile | .venv pipenv lock - touch .venv .venv: + rm -rf $@ mkdir -p $@ pipenv --python $(PYTHON_VERSION) + touch $@