-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·43 lines (32 loc) · 1.58 KB
/
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
38
39
40
41
42
43
# Initialize Environment
. ./build/.env/env.sh
# Display Banner
banner
# Launch Build
docker-compose -p jrpc -f $jrpc_beta_v2/build/docker/docker-compose.yaml build
mkdir -p $jrpc_beta_v2/build/jenkins/data
# Launch Docker
docker-compose -p jrpc -f $jrpc_beta_v2/build/docker/docker-compose.yaml up -d jenkins
printf "Waiting for Jenkins to be ready ..."
until [ ${http_code} -eq 403 ]; do
http_code=$(curl -LI --max-time 2 http://localhost:8080 -o /dev/null -w '%{http_code}\n' -s)
sleep 3
printf "."
done
printf " ${green}done${reset}
"
docker-compose -p jrpc -f $jrpc_beta_v2/build/docker/docker-compose.yaml up -d jrpc-windows-builder jrpc-web-builder jrpc-linux-builder jrpc-windows64-builder
docker-compose -p jrpc -f $jrpc_beta_v2/build/docker/docker-compose.yaml up -d nginx
echo "
┍━━━━━━━━━━━━━━━━━━━━ ⋆⋅☆⋅⋆ ━━━━━━━━━━━━━━━━━━━━┑"
echo "┃ ${green}Jenkins is ready!${reset} ┃"
echo "┃ http://localhost:8080 ┃"
echo "┃ http://localhost:8080/configuration-as-code/ ┃"
echo "┃ ┃"
echo "┃ ${green}Python Web Server is ready!${reset} ┃"
echo "┃ http://localhost:80 ┃"
echo "┕━━━━━━━━━━━━━━━━━━━━ ⋆⋅☆⋅⋆ ━━━━━━━━━━━━━━━━━━━━┙
"
sleep infinity
# Exit Docker
docker-compose -p jrpc -f $jrpc_beta_v2/build/docker/docker-compose.yaml down