forked from manaakiwhenua/pycrown
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
35 lines (26 loc) · 776 Bytes
/
makefile
File metadata and controls
35 lines (26 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
-include .creds
BASEIMAGE := dragonflyscience/pycrown
IMAGE := $(BASEIMAGE):2023-05-04
profile := df
region := us-east-1
RUN ?= docker run -it --rm --net=host --user=$$(id -u):$$(id -g) -e DISPLAY=$$DISPLAY --env-file .creds -e RUN= -v$$(pwd):/work -w /work $(IMAGE)
# .PHONY
trees:
$(RUN) python3 test-local.py
test-local: Dockerfile
docker run -it --rm --net=host --user=$$(id -u):$$(id -g) \
-e DISPLAY=$$DISPLAY \
--env-file .creds \
-e RUN= -v$$(pwd):/work \
-w /work $(IMAGE) \
bash
docker-local: Dockerfile
docker build --tag $(BASEIMAGE) . && \
docker tag $(BASEIMAGE) $(IMAGE)
docker: Dockerfile
docker build --tag $(BASEIMAGE) . && \
docker tag $(BASEIMAGE) $(IMAGE) && \
docker push $(IMAGE) && \
touch .push
docker-pull:
docker pull $(IMAGE)