feat: add PostgreSQL/MongoDB Images and fix multiarch (#40)

add PostgreSQL/MongoDB Images and fixes multi-arch builds for MariaDB, Redis.
This commit is contained in:
Torsten Widmann
2022-01-25 16:08:35 +01:00
committed by GitHub
parent 68ef32ee2a
commit c263e42dac
20 changed files with 274 additions and 7 deletions

16
postgres/10/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# ----------------------------------
# Environment: Postgres DB
# ----------------------------------
FROM --platform=$TARGETOS/$TARGETARCH postgres:10-alpine
LABEL author="Parker" maintainer="parker@pterodactyl.io"
# UID 999 is the default pterodactyl user
RUN adduser -D -h /home/container container
USER container
ENV HOME /home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]

16
postgres/11/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# ----------------------------------
# Environment: Postgres DB
# -----------------------------------
FROM --platform=$TARGETOS/$TARGETARCH postgres:11-alpine
LABEL author="Parker" maintainer="parker@pterodactyl.io"
# UID 999 is the default pterodactyl user
RUN adduser -D -h /home/container container
USER container
ENV HOME /home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]

16
postgres/12/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# ----------------------------------
# Environment: Postgres DB
# ----------------------------------
FROM --platform=$TARGETOS/$TARGETARCH postgres:12-alpine
LABEL author="Parker" maintainer="parker@pterodactyl.io"
# UID 999 is the default pterodactyl user
RUN adduser -D -h /home/container container
USER container
ENV HOME /home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]

16
postgres/13/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# ----------------------------------
# Environment: Postgres DB
# ----------------------------------
FROM --platform=$TARGETOS/$TARGETARCH postgres:13-alpine
LABEL author="Parker" maintainer="parker@pterodactyl.io"
# UID 999 is the default pterodactyl user
RUN adduser -D -h /home/container container
USER container
ENV HOME /home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]

16
postgres/14/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# ----------------------------------
# Environment: Postgres DB
# ----------------------------------
FROM --platform=$TARGETOS/$TARGETARCH postgres:14-alpine
LABEL author="Parker" maintainer="parker@pterodactyl.io"
# UID 999 is the default pterodactyl user
RUN adduser -D -h /home/container container
USER container
ENV HOME /home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]

16
postgres/9/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# ----------------------------------
# Environment: Postgres DB
# ----------------------------------
FROM --platform=$TARGETOS/$TARGETARCH postgres:9-alpine
LABEL author="Parker" maintainer="parker@pterodactyl.io"
# UID 999 is the default pterodactyl user
RUN adduser -D -h /home/container container
USER container
ENV HOME /home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]

15
postgres/entrypoint.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/ash
cd /home/container
#output current postgres version
postgres --version
# Make internal Docker IP address available to processes.
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
# Replace Startup Variables
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
echo ":/home/container$ ${MODIFIED_STARTUP}"
# Run the Server
eval ${MODIFIED_STARTUP}