forked from dcamarmas/creator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mk_dockers.sh
executable file
·48 lines (37 loc) · 1.38 KB
/
mk_dockers.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
#!/bin/bash
# welcome
echo ""
echo " CREATOR docker generator"
echo " -------------------------"
echo ""
# skeleton
echo " Generating:"
echo " * Gateway docker..."
echo " * Command line docker..."
echo ""
cd dockers
#Build gateway docker
cd gateway
docker container stop $(docker container ls -q --filter name=creatorsim/creator_gateway)
docker container rm creatorsim/creator_gateway
#docker build --no-cache -t creatorsim/creator_gateway .
docker buildx build --no-cache --platform linux/amd64,linux/arm64,linux/arm/v7 -t creatorsim/creator_gateway .
cd ..
#Build remote_lab docker
cd remote_lab
docker container stop $(docker container ls -q --filter name=creatorsim/creator_remote_lab)
docker container rm creatorsim/creator_remote_lab
#docker build --no-cache -t creatorsim/creator_remote_lab .
docker buildx build --no-cache --platform linux/amd64,linux/arm64,linux/arm/v7 -t creatorsim/creator_remote_lab .
cd ..
#Build command line docker
cd command_line
docker container stop $(docker container ls -q --filter name=creatorsim/creator_cl)
docker container rm creatorsim/creator_cl
#docker build --no-cache -t creatorsim/creator_cl .
docker buildx build --no-cache --platform linux/amd64,linux/arm64,linux/arm/v7 -t creatorsim/creator_cl .
cd ..
# the end
echo ""
echo " CREATOR dockers generated (if no error was shown)."
echo ""