-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild_and_install_images.sh
52 lines (42 loc) · 1.15 KB
/
build_and_install_images.sh
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
#for t in "model" "objective"
#do
# for d in `cat ./modules/${t}s/list`
# do
# echo "Install module [" $t "]: " $d
# cd ./modules/${t}s/$d
# docker build -t $d .
# cd ..
# easeml create module --type $t --source upload --source-address $d --id $d --name $d
# cd ../..
# done
#done
config_file=$HOME/.easeml/config.yaml
#config_file=$HOME/snap/easeml/x1/.easeml/config.yaml
for t in "optimizer"
do
for d in `cat ./modules/${t}s/list`
do
echo "Install module [" $t "]: " $d
cd ./modules/${t}s/$d
docker build -t $d .
cd ..
cmd="easeml create module --type $t --source upload --source-address $d --id opt-$d --label opt-$d --name opt-$d --config $config_file"
echo $cmd
eval $cmd
cd ../..
done
done
for t in "objective" "model"
do
for d in `cat ./modules/${t}s/list`
do
echo "Install module [" $t "]: " $d
cd ./modules/${t}s/$d
docker build -t $d .
cd ..
cmd="easeml create module --type $t --source upload --source-address $d --id $d --label label-$d --name $d --config $config_file"
echo $cmd
eval $cmd
cd ../..
done
done