-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·40 lines (34 loc) · 995 Bytes
/
deploy.sh
File metadata and controls
executable file
·40 lines (34 loc) · 995 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
34
35
36
37
38
39
40
#!/usr/bin/env bash
{
set -e
source ./.env
# Install the npm dependencies and built the
# assets on the host machine due to an npm
# dep issue within the docker image
if [ ! -d "$PM_APP_SOURCE/node_modules" ]; then
{
echo ""
echo "Install npm dependencies and building assets..."
echo ""
cd "$PM_APP_SOURCE"
npm install --unsafe-perm=true && \
NODE_OPTIONS=--max-old-space-size=8000 npm run dev --no-audit
} & wait
fi
# Return to the docker build source directory
# and attempt to build the base image and
# run the docker compose services
echo ""
echo "Building docker image and deploying services..."
echo ""
docker compose up -d --build
# Build is complete, show the logs for the installer
echo ""
echo "Wait for remaining install commands to finish..."
echo ""
docker compose logs -f installer
echo ""
echo "Final install commands running, do not close console..."
echo ""
./post-install.sh &
}