Skip to content

Commit

Permalink
Started on ptero-debian-surrealdb
Browse files Browse the repository at this point in the history
- Need to test ptero-debian-surrealdb
- Exposed internal IP for other images, need to test if this works
  • Loading branch information
Stefanuk12 committed Jul 7, 2023
1 parent 178e035 commit 0dc28d4
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/ptero-boiii/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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}"
Expand Down
18 changes: 18 additions & 0 deletions images/ptero-debian-surrealdb/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM debian:bullseye-slim
LABEL author="Stefanuk12" maintainer="[email protected]"

## 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"]
10 changes: 10 additions & 0 deletions images/ptero-debian-surrealdb/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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}
4 changes: 4 additions & 0 deletions images/ptero-iw4m/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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}"
Expand Down
4 changes: 4 additions & 0 deletions images/ptero-plutonium/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0dc28d4

Please sign in to comment.