-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain-dev-install.sh
More file actions
executable file
·33 lines (27 loc) · 948 Bytes
/
main-dev-install.sh
File metadata and controls
executable file
·33 lines (27 loc) · 948 Bytes
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
#!/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 monaco-editor@0.31.1
echo "========= build docker images (using host docker) ========="
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