-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·37 lines (33 loc) · 1.07 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
#!/bin/bash
# Simple script to build UI application and docker images
# Usage ./build.sh
# ----------------------------------------------------
echo "---------------------------------------------"
echo "Build Container App"
echo "---------------------------------------------"
cd container-app
sudo rm -rf node_modules
sudo rm -rf dist
npm install
sudo ng build --prod --output-hashing none
echo "---------------------------------------------"
echo "Build Details App"
echo "---------------------------------------------"
cd ../details-app
sudo rm -rf node_modules
sudo rm -rf dist
npm install
sudo ng build --prod --output-hashing none --single-bundle true
echo "---------------------------------------------"
echo "Build Form App"
echo "---------------------------------------------"
cd ../user-app
sudo rm -rf node_modules
sudo rm -rf dist
npm install
sudo ng build --prod --output-hashing none --single-bundle true
cd ..
echo "---------------------------------------------"
echo "Build Docker Images"
echo "---------------------------------------------"
sudo docker-compose build