Skip to content

Commit

Permalink
build updates
Browse files Browse the repository at this point in the history
  • Loading branch information
amancevice committed Oct 6, 2023
1 parent abc6e38 commit 47c14e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 $@

0 comments on commit 47c14e2

Please sign in to comment.