-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·63 lines (53 loc) · 1.4 KB
/
build.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
pushd ./util/barrier
docker build -t $1/util-barrier .
popd
pushd ./util/proxy
docker build -t $1/util-proxy .
popd
pushd ./util/static
docker build -t $1/util-static .
popd
pushd ./stem
docker build -f node.Dockerfile -t $1/stem-node .
docker build -f api-ident.Dockerfile -t $1/stem-api-ident .
docker build -f api-irc.Dockerfile -t $1/stem-api-irc .
docker build -f api-xmpp.Dockerfile -t $1/stem-api-xmpp .
docker build -f base.Dockerfile -t $1/stem-base .
docker build -f pass-chat.Dockerfile -t $1/stem-pass-chat .
docker build -f pass-log.Dockerfile -t $1/stem-pass-log .
popd
pushd ./ui/chat
make clean build
docker build -t $1/ui-chat .
popd
pushd ./ui/config
make clean build
docker build -t $1/ui-config .
popd
pushd ./ui/paracord
make clean build
docker build -t $1/ui-paracord .
popd
pushd ./ui/uplink
make clean build
docker build -t $1/ui-uplink .
popd
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")
docker images
if [ $2 = "push" ]; then
docker push $1/util-barrier
docker push $1/util-proxy
docker push $1/util-static
docker push $1/stem-node
docker push $1/stem-api-ident
docker push $1/stem-api-irc
docker push $1/stem-api-xmpp
docker push $1/stem-base
docker push $1/stem-pass-chat
docker push $1/stem-pass-log
docker push $1/ui-chat
docker push $1/ui-config
docker push $1/ui-paracord
docker push $1/ui-uplink
fi