Add in arch linux

This commit is contained in:
zontreck 2024-09-03 15:19:30 -07:00
parent 3cb1d071f1
commit 6b87f8b1de
6 changed files with 87 additions and 1 deletions

13
base/arch/entrypoint.sh Normal file
View file

@ -0,0 +1,13 @@
#!/bin/bash
cd /home/container
# Make internal Docker IP address available to processes.
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP
# Replace Startup Variables
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
# Run the Server
eval ${MODIFIED_STARTUP}