This repository has been archived by the owner on Mar 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
88 lines (63 loc) · 2.22 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
include config.mk
CHANNEL := stable
BASE := ""
LANGUAGE := ""
TENANT_NAME := $(TENANT_NAME)
TENANT_ID := $(TENANT_KEY)
TENANT_DOCKER_ORG := $(TENANT_DOCKER_ORG)
TENANT_GITHUB_ORG := $(TENANT_GITHUB_ORG)
TENANT_TRAVIS_ORG := $(TENANT_TRAVIS_ORG)
PREFIX := $(HOME)
BUILDS = base-build languages-build apps-build jupyter-build reactors-build
IMAGES = base languages reactors apps
.SILENT: test
help:
echo "You can make base, languages, apps, reactors, clean"
all: images
true
builds: $(BUILDS)
true
images: $(IMAGES)
true
tests:
echo "Not implemented"
base-build:
bash scripts/build_bases.sh $(TENANT_DOCKER_ORG) $(CHANNEL) build $(BASE)
base: base-build
bash scripts/build_bases.sh $(TENANT_DOCKER_ORG) $(CHANNEL) release $(BASE)
languages-build:
bash scripts/build_langs.sh $(TENANT_DOCKER_ORG) $(CHANNEL) build $(LANGUAGE) $(BASE)
languages: languages-build
bash scripts/build_langs.sh $(TENANT_DOCKER_ORG) $(CHANNEL) release $(LANGUAGE) $(BASE)
apps-build:
bash scripts/build_apps.sh $(TENANT_DOCKER_ORG) $(CHANNEL) build $(LANGUAGE) $(BASE)
apps: apps-build
bash scripts/build_apps.sh $(TENANT_DOCKER_ORG) $(CHANNEL) release $(LANGUAGE) $(BASE)
jupyter-build: base-build
bash scripts/build_jupyter.sh $(TENANT_DOCKER_ORG) $(CHANNEL) build
jupyter: jupyter-build
bash scripts/build_jupyter.sh $(TENANT_DOCKER_ORG) $(CHANNEL) release
reactors-build:
bash scripts/build_reactors.sh $(TENANT_DOCKER_ORG) $(CHANNEL) build $(LANGUAGE)
reactors: reactors-build
bash scripts/build_reactors.sh $(TENANT_DOCKER_ORG) $(CHANNEL) release $(LANGUAGE)
reactors-edge:
bash scripts/build_reactors.sh $(TENANT_DOCKER_ORG) edge build python3
bash scripts/build_reactors.sh $(TENANT_DOCKER_ORG) edge release python3
reactors-clean:
cd reactors/python2 ; \
make clean
cd reactors/python3 ; \
make clean
cd reactors/python2-miniconda ; \
make clean
cd reactors/python3-miniconda ; \
make clean
downstream:
scripts/trigger-travis.sh $(TENANT_GITHUB_ORG) base-images-custom $(TRAVIS_ACCESS_TOKEN)
reactors-and-langs-edge:
make languages-build LANGUAGE=python3 BASE=ubuntu17 ; \
make reactors LANGUAGE=python3 CHANNEL=edge
reactors-and-langs:
make languages-build LANGUAGE=python3 BASE=ubuntu17 ; \
make reactors LANGUAGE=python3 CHANNEL=stable