forked from darribas/gds_env
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (31 loc) · 878 Bytes
/
Makefile
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
REPO=conjuring
DCC=docker-compose
default: buildup bash down
up:
$(DCC) up -d $(REPO)
buildup:
$(DCC) up --build -d $(REPO)
down:
$(DCC) down
build:
$(DCC) build --pull base
$(DCC) build
test:
$(MAKE) up
$(DCC) exec conjuring bash -c "/conda.sh env list"
$(DCC) exec conjuring bash -c "ls -la /home/"
$(MAKE) down
bash:
$(DCC) exec $(REPO) bash
prune:
docker system prune
provision:
rm -rf custom/home/* && \
rm -rf custom/home_default/* && \
wget https://github.com/rsbivand/ectqg19-workshop/raw/master/pack.zip && \
unzip pack.zip && \
cp -r pack/* custom/home_default/ && \
rm -r pack pack.zip
rmis:
docker ps -aqf "name=conjuring" --format="{{.Image}} {{.Names}} {{.ID}}" | grep "conjuring.latest" | cut -d' ' -f3 | xargs docker rm -f
docker images --format="{{.Repository}} {{.Tag}} {{.ID}}" | grep "conjuring.latest" | cut -d' ' -f3 | xargs docker rmi