Add rust language

This commit is contained in:
CDE90
2022-04-17 16:16:14 +01:00
parent b99d99e233
commit fb6c0dcf56
6 changed files with 114 additions and 0 deletions

15
rust/entrypoint.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
cd /home/container
# Make internal Docker IP address available to processes.
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
# 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}