-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (49 loc) · 2.76 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Makefile for convenience, (doesn't look for command outputs)
# just a scratch directory for testing
TESTDIR=/tmp/test-container
.PHONY: all
all: helio-daskhub-core helio-daskhub-mltf helio-daskhub-mktrch
.PHONY: helio-daskhub-core
helio-daskhub-core : helio-daskhub-core-build helio-daskhub-core-test
.PHONY: helio-daskhub-core-conda
helio-daskhub-core-conda :
# WARNING this takes a while
conda-lock lock --mamba -k explicit -f helio-base/conda/environment.yml -f helio-daskhub-core/conda/environment.yml -p linux-64; \
mv conda-linux-64.lock helio-daskhub-core/docker-image;
.PHONY: helio-daskhub-core-build
helio-daskhub-core-build:
cd helio-daskhub-core/docker-image; \
docker build -t heliocloud/helio-daskhub-core:dev .;
.PHONY: helio-daskhub-core-test
helio-daskhub-core-test :
docker run -w $(TESTDIR) -v $(PWD):$(TESTDIR) heliocloud/helio-daskhub:dev helio-daskhub-core/docker-image/run_tests.sh helio-daskhub
.PHONY: helio-daskhub-mltf
helio-daskhub-mltf : helio-daskhub-mltf-build helio-daskhub-mltf-test
.PHONY: helio-daskhub-mltf-conda
helio-daskhub-mltf-conda:
# WARNING this takes a while
conda-lock lock --mamba -k explicit -f helio-base/conda/environment.yml -f helio-daskhub-core/conda/environment.yml -f helio-daskhub-mltf/conda/environment.yml -p linux-64; \
mv conda-linux-64.lock helio-daskhub-mltf/docker-image;
.PHONY: helio-daskhub-mltf-build
helio-daskhub-mltf-build:
cd helio-daskhub-mltf/docker-image; \
docker build -t heliocloud/helio-daskhub-mltf:dev .;
.PHONY: helio-daskhub-mltf-test
helio-daskhub-mltf-test:
docker run -w $(TESTDIR) -v $(PWD):$(TESTDIR) heliocloud/helio-daskhub-mltf:dev helio-daskhub-core/docker-image/run_tests.sh helio-daskhub-mltf; \
docker run -w $(TESTDIR) -v $(PWD):$(TESTDIR) heliocloud/helio-daskhub-mltf:dev helio-daskhub-mltf/docker-image/run_tests.sh helio-daskhub-mltf
.PHONY: helio-daskhub-mltrch
helio-daskhub-mltrch : helio-daskhub-mltrch-build helio-daskhub-mltrch-test
.PHONY: helio-daskhub-mltrch-conda
helio-daskhub-mltrch-conda:
# WARNING this takes a while
conda-lock lock --mamba -k explicit -f helio-base/conda/environment.yml -f helio-daskhub-core/conda/environment.yml -f helio-daskhub-mltrch/conda/environment.yml -p linux-64; \
mv conda-linux-64.lock helio-daskhub-mltrch/docker-image;
.PHONY: helio-daskhub-mltrch-build
helio-daskhub-mltrch-build:
cd helio-daskhub-mltrch/docker-image; \
docker build -t heliocloud/helio-daskhub-mltrch:dev .;
.PHONY: helio-daskhub-mltrch-test
helio-daskhub-mltrch-test:
docker run -w $(TESTDIR) -v $(PWD):$(TESTDIR) heliocloud/helio-daskhub-mltrch:dev helio-daskhub-core/docker-image/run_tests.sh helio-daskhub-mltrch; \
docker run -w $(TESTDIR) -v $(PWD):$(TESTDIR) heliocloud/helio-daskhub-mltrch:dev helio-daskhub-mltrch/docker-image/run_tests.sh helio-daskhub-mltrch