Create entrypoint.sh

This commit is contained in:
Bl4ckSpr4y 2018-02-25 19:58:37 +02:00 committed by GitHub
parent aeac09ca25
commit c3d35bd607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
entrypoint.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
sleep 3
cd /home/container
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
echo ":/home/container$ ${MODIFIED_STARTUP}"
${MODIFIED_STARTUP}