-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
64 lines (57 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
64
# Makefile for convenience, (doesn't look for command outputs)
.PHONY: all
all: base-openalea notebook-openalea hydroroot-openalea strawberry-openalea fullstack-openalea structureanalysis-openalea
DOCKER_USER=thomasarsouze
TESTDIR=/home/openalea
.PHONY: base-openalea
base-openalea :
cd base-openalea ; \
docker build --no-cache --progress=plain -t ${DOCKER_USER}/base-openalea:latest .
.PHONY: notebook-openalea
notebook-openalea : base-openalea
cd notebook-openalea ; \
conda-lock lock --mamba -f environment.yml -p linux-64; \
../list_packages.sh | sort > packages.txt; \
docker build -t ${DOCKER_USER}/notebook-openalea:latest . ; \
cd .. ; \
docker run --rm -w ${TESTDIR} -v ${PWD}:${TESTDIR} ${DOCKER_USER}/notebook-openalea:latest ./run_tests.sh notebook-openalea
.PHONY: hydroroot-openalea
hydroroot-openalea : base-openalea
cd hydroroot-openalea ; \
conda-lock lock --mamba -f environment.yml -p linux-64; \
../list_packages.sh | sort > packages.txt; \
docker build -t ${DOCKER_USER}/hydroroot-openalea:latest . ; \
cd .. ; \
docker run --rm -w ${TESTDIR} -v ${PWD}:${TESTDIR} ${DOCKER_USER}/hydroroot-openalea:latest ./run_tests.sh hydroroot-openalea
.PHONY: strawberry-openalea
strawberry-openalea : base-openalea
cd strawberry-openalea ; \
conda-lock lock --mamba -f environment.yml -p linux-64; \
../list_packages.sh | sort > packages.txt; \
docker build -t ${DOCKER_USER}/strawberry-openalea:latest . ; \
cd .. ; \
docker run --rm -w ${TESTDIR} -v ${PWD}:${TESTDIR} ${DOCKER_USER}/strawberry-openalea:latest ./run_tests.sh strawberry-openalea
.PHONY: fullstack-openalea
fullstack-openalea : base-openalea
cd fullstack-openalea ; \
conda-lock lock --mamba -f environment.yml -p linux-64; \
../list_packages.sh | sort > packages.txt; \
docker build -t ${DOCKER_USER}/fullstack-openalea:latest . ; \
cd .. ; \
docker run --rm -w ${TESTDIR} -v ${PWD}:${TESTDIR} ${DOCKER_USER}/fullstack-openalea:latest ./run_tests.sh fullstack-openalea
.PHONY: plantscan3d-openalea
plantscan3d-openalea : base-openalea
cd plantscan3d-openalea ; \
conda-lock lock --mamba -f environment.yml -p linux-64; \
../list_packages.sh | sort > packages.txt; \
docker build -t ${DOCKER_USER}/plantscan3d-openalea:latest . ; \
cd .. ; \
docker run --rm -w ${TESTDIR} -v ${PWD}:${TESTDIR} ${DOCKER_USER}/plantscan3d-openalea:latest ./run_tests.sh plantscan3d-openalea
.PHONY: structureanalysis-openalea
structureanalysis-openalea : base-openalea
cd structureanalysis-openalea ; \
conda-lock lock --mamba -f environment.yml -p linux-64; \
../list_packages.sh | sort > packages.txt; \
docker build -t ${DOCKER_USER}/structureanalysis-openalea:latest . ; \
cd .. ; \
docker run --rm -w ${TESTDIR} -v ${PWD}:${TESTDIR} ${DOCKER_USER}/structureanalysis-openalea:latest ./run_tests.sh structureanalysis-openalea