mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 12:13:57 +00:00
3017fd4ed4
Replace entrypoint.sh process with node process in final command to allow passing signals to the node process (e.g. SIGTERM upon stopping the container)
12 lines
227 B
Bash
12 lines
227 B
Bash
#!/bin/sh
|
|
|
|
HOST_DOMAIN="dockerhost"
|
|
ping -q -c1 $HOST_DOMAIN > /dev/null 2>&1
|
|
if [ $? != 0 ]
|
|
then
|
|
HOST_IP=$(ip route | awk 'NR==1 {print $3}')
|
|
echo "$HOST_IP $HOST_DOMAIN" >> /etc/hosts
|
|
fi
|
|
|
|
exec node bundle.js --listen-api
|