Repository navigation
Expand file tree
/
Copy pathmake-all.sh
More file actions
executable file
·71 lines (56 loc) · 1.46 KB
/
Copy pathmake-all.sh
File metadata and controls
executable file
·71 lines (56 loc) · 1.46 KB
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
#!/bin/bash
set -e
if [[ -z "$PROJECT" ]]; then
echo 'PROJECT must be set to a nonempty string'
exit 1;
fi
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
reset=`tput sgr0`
echo "${yellow}Building... ${reset}"
echo -e "\n\n${yellow}Base image ${reset}"
pushd base
VERSION_TAG="latest" make base-image
popd
echo -e "\n\n${yellow}Selfplay ${reset}"
pushd selfplay
VERSION_TAG="latest" make cc-image py-image
VERSION_TAG="latest" RUNMODE="tpu" make tpu-image
VERSION_TAG="latest_nr" RUNMODE="tpu_nr" make tpu-image
popd
echo -e "\n\n${yellow}Evaluator ${reset}"
pushd evaluator
VERSION_TAG="latest" make py-image cc-image
popd
echo -e "\n\n${yellow}Trainer ${reset}"
pushd trainer
VERSION_TAG="latest" make image
popd
echo -e "\n\n${yellow}Calibrator ${reset}"
pushd calibrator
VERSION_TAG="latest" make image
popd
echo "${green}Everything built? Ok, pushing... ${reset}"
echo -e "\n\n${yellow}Base image ${reset}"
pushd base
VERSION_TAG="latest" make base-push
popd
echo -e "\n\n${yellow}Selfplay ${reset}"
pushd selfplay
VERSION_TAG="latest" make cc-push py-push
VERSION_TAG="latest" RUNMODE="tpu" make tpu-push
VERSION_TAG="latest_nr" RUNMODE="tpu_nr" make tpu-push
popd
echo -e "\n\n${yellow}Evaluator ${reset}"
pushd evaluator
VERSION_TAG="latest" make py-push cc-push
popd
echo -e "\n\n${yellow}Trainer ${reset}"
pushd trainer
VERSION_TAG="latest" make push
popd
echo -e "\n\n${yellow}Calibrator ${reset}"
pushd calibrator
VERSION_TAG="latest" make push
popd