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:
16
postgres/10/Dockerfile
Normal file
16
postgres/10/Dockerfile
Normal 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
16
postgres/11/Dockerfile
Normal 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
16
postgres/12/Dockerfile
Normal 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
16
postgres/13/Dockerfile
Normal 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
16
postgres/14/Dockerfile
Normal 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
16
postgres/9/Dockerfile
Normal 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
15
postgres/entrypoint.sh
Normal 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}
|
Reference in New Issue
Block a user