diff --git a/images/ptero-boiii/entrypoint.sh b/images/ptero-boiii/entrypoint.sh index 66d003a..1cdc7b8 100644 --- a/images/ptero-boiii/entrypoint.sh +++ b/images/ptero-boiii/entrypoint.sh @@ -1,3 +1,7 @@ +# 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 ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') echo ":/home/container$ ${MODIFIED_STARTUP}" diff --git a/images/ptero-debian-surrealdb/Dockerfile b/images/ptero-debian-surrealdb/Dockerfile new file mode 100644 index 0000000..d06ba01 --- /dev/null +++ b/images/ptero-debian-surrealdb/Dockerfile @@ -0,0 +1,18 @@ +FROM debian:bullseye-slim +LABEL author="Stefanuk12" maintainer="stefanukpadd@gmail.com" + +## Install dependencies +USER root +RUN sudo apt update \ + && sudo apt upgrade -y \ + && sudo apt install curl -y + +## Installing SurrealDB +RUN curl -sSf https://install.surrealdb.com | sudo sh + +## Finishing up +USER container +WORKDIR /home/container + +COPY ./entrypoint.sh /entrypoint.sh +CMD ["/bin/bash", "/entrypoint.sh"] \ No newline at end of file diff --git a/images/ptero-debian-surrealdb/entrypoint.sh b/images/ptero-debian-surrealdb/entrypoint.sh new file mode 100644 index 0000000..1cdc7b8 --- /dev/null +++ b/images/ptero-debian-surrealdb/entrypoint.sh @@ -0,0 +1,10 @@ +# 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 ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +echo ":/home/container$ ${MODIFIED_STARTUP}" + +# Run the Server +eval ${MODIFIED_STARTUP} \ No newline at end of file diff --git a/images/ptero-iw4m/entrypoint.sh b/images/ptero-iw4m/entrypoint.sh index 66d003a..1cdc7b8 100644 --- a/images/ptero-iw4m/entrypoint.sh +++ b/images/ptero-iw4m/entrypoint.sh @@ -1,3 +1,7 @@ +# 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 ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') echo ":/home/container$ ${MODIFIED_STARTUP}" diff --git a/images/ptero-plutonium/entrypoint.sh b/images/ptero-plutonium/entrypoint.sh index da500e9..14fd41f 100644 --- a/images/ptero-plutonium/entrypoint.sh +++ b/images/ptero-plutonium/entrypoint.sh @@ -1,6 +1,10 @@ #!/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 + # Installing bootstrapper / updater wget https://github.com/mxve/plutonium-updater.rs/releases/latest/download/plutonium-updater-x86_64-unknown-linux-gnu.tar.gz -O latestupdater.tar.gz -q --show-progress tar -xvf latestupdater.tar.gz -C localappdata/Plutonium