Files
yolks/rust/entrypoint.sh
devbeni 46b5af196f
Some checks failed
build rust / yolks:rust_1.56 (push) Successful in 6m45s
build rust / yolks:rust_latest (push) Has been cancelled
build rust / yolks:rust_1.60 (push) Has been cancelled
Update rust/entrypoint.sh
2025-09-15 16:33:28 +02:00

19 lines
448 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
rustup override set nightly
# Print current Rust version
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}