-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdev
More file actions
executable file
·45 lines (37 loc) · 1.11 KB
/
dev
File metadata and controls
executable file
·45 lines (37 loc) · 1.11 KB
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
44
45
#!/bin/bash
DO_INSTALL=false
while getopts "i" opt; do
case $opt in
i) DO_INSTALL=true
esac
done
if which docker-compose 2>/dev/null ;then
COMPOSE=$(which docker-compose)
else
COMPOSE="$(which docker) compose"
fi
## Populate env file
echo APP_DIR=/app > ${PWD}/env
echo HOME=/data >> ${PWD}/env
echo SECRETS=/app/secrets/secrets.json5 >> ${PWD}/env
echo CONFIGFILE=/app/dev.dcfg >> ${PWD}/env
echo HOME=/data >> ${PWD}/env
echo SQL_SERVER=db >> ${PWD}/env
echo SQL_DATABASE=dyalog_cms >> ${PWD}/env
echo SQL_USER=dcms >> ${PWD}/env
echo SQL_PASSWORD=apl >> ${PWD}/env
echo SQL_PORT=3306 >> ${PWD}/env
echo MYSQL_SERVER=db >> ${PWD}/env
echo MYSQL_DATABASE=dyalog_cms >> ${PWD}/env
echo MYSQL_USER=dcms >> ${PWD}/env
echo MYSQL_PASSWORD=apl >> ${PWD}/env
echo MYSQL_PORT=3306 >> ${PWD}/env
echo RIDE_INIT=HTTP:*:4502 >> ${PWD}/env
echo MYSQL_RANDOM_ROOT_PASSWORD=1 >> ${PWD}/env
echo COMPOSE IS: $COMPOSE
echo "Use docker inspect to get the IP of the running container"
$COMPOSE pull
if [ "$DO_INSTALL" = true ]; then
$COMPOSE -f docker-compose.yml up install
fi
$COMPOSE -f docker-compose.yml up web db