-
Notifications
You must be signed in to change notification settings - Fork 0
/
main-dev-install.sh
executable file
·37 lines (31 loc) · 1.03 KB
/
main-dev-install.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
#!/bin/bash
set -e
if [ ! -d "/workspace" ]; then
echo "This script is meant to be run inside devcontainer."
echo "Please run main-dev-cli.sh to enter devcontainer command line first."
exit
fi
if [[ $EUID > 0 ]]; then
echo "Please run as root/sudo (assuming root in container has access to the bind mount of docker.sock)"
exit 1
fi
echo "========= installing frontend dependencies (node_modules) ========="
echo "--------- install monaco ---------"
cd /workspace/frontend/_common/monaco
npm install [email protected]
echo "========= build docker images (using host docker) ========="
echo "--------- build docker images: thirdparty ---------"
cd /workspace/docker/thirdparty/
./build.sh
echo ""
echo "--------- build docker images: backendpybase ---------"
cd /workspace/docker/backendpybase/
./build.sh
echo ""
echo "--------- build docker images: backendtestingbase ---------"
cd /workspace/docker/backendtestingbase/
./build.sh
echo ""
echo "--------- build docker images: nginxbase ---------"
cd /workspace/docker/nginxbase/
./build.sh