Files
yolks/rust/entrypoint.sh
devbeni 229d509b15
Some checks failed
build rust / yolks:rust_latest (push) Has been cancelled
build rust / yolks:rust_1.56 (push) Has been cancelled
build rust / yolks:rust_1.60 (push) Has been cancelled
Update rust/entrypoint.sh
2025-09-15 18:06:27 +02:00

16 lines
390 B
Bash

#!/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
cargo --version
# Replace Startup Variables
MODIFIED_STARTUP=$(echo -e $(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g'))
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
# Run the Server
eval ${MODIFIED_STARTUP}