Skip to content

Commit

Permalink
pandas ~> 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
amancevice committed Jan 20, 2021
1 parent 6db306e commit a75dfc9
Show file tree
Hide file tree
Showing 4 changed files with 264 additions and 250 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
needs: lint
steps:
- uses: actions/checkout@v2
- run: make
- run: make build
40 changes: 21 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,18 @@
REPO := amancevice/pandas
STAGES := lock alpine slim jupyter latest
STAGES := lock latest jupyter slim alpine
PANDAS_VERSION := $(shell grep pandas Pipfile | grep -o '[0-9.]\+')

.PHONY: all clean clobber push
all: Pipfile.lock

all: $(STAGES)

.docker:
mkdir -p $@

.docker/lock: Pipfile
.docker/latest: .docker/jupyter Pipfile.lock
.docker/jupyter: .docker/latest
.docker/slim: .docker/jupyter
.docker/alpine: .docker/slim
.docker/%: | .docker
docker build --iidfile $@ --tag $(REPO):$* --target $* .

Pipfile.lock: .docker/lock
docker run --rm --entrypoint cat $$(cat $<) $@ > $@
build: $(STAGES)

clean:
rm -rf .docker

clobber: clean
docker image ls $(REPO) --quiet | uniq | xargs docker image rm --force
docker image ls --quiet $(REPO) | uniq | xargs docker image rm --force

push: all
push: build
docker image push $(REPO):alpine
docker image push $(REPO):slim
docker image push $(REPO):jupyter
Expand All @@ -45,3 +31,19 @@ latest:
lock: Pipfile.lock

$(STAGES): %: .docker/%

.PHONY: all build clean clobber push $(STAGES)

Pipfile.lock: Pipfile | .docker/lock
docker run --rm --entrypoint cat $(REPO):lock $@ > $@

.docker/lock: Pipfile
.docker/latest: .docker/lock Pipfile.lock
.docker/jupyter: .docker/latest
.docker/slim: .docker/jupyter
.docker/alpine: .docker/slim
.docker/%: | .docker
docker build --iidfile $@ --tag $(REPO):$* --target $* .

.docker:
mkdir -p $@
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jupyter-book = "*"
matplotlib = "*"

[packages]
pandas = "==1.2.0"
pandas = "==1.2.1"
Loading

0 comments on commit a75dfc9

Please sign in to comment.