From 9337a493c8b410c149b6f948919a24ace812cef3 Mon Sep 17 00:00:00 2001 From: gOOvER Date: Fri, 15 Nov 2024 17:39:33 +0100 Subject: [PATCH] add postgre 17 --- .github/workflows/db-postgres.yml | 9 +++++---- database/postgres/17/Dockerfile | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 database/postgres/17/Dockerfile diff --git a/.github/workflows/db-postgres.yml b/.github/workflows/db-postgres.yml index eaff3c3..aa127ff 100644 --- a/.github/workflows/db-postgres.yml +++ b/.github/workflows/db-postgres.yml @@ -27,22 +27,23 @@ jobs: - 14 - 15 - 16 + - 17 steps: - uses: actions/checkout@v4 - + - uses: docker/setup-qemu-action@v3 - + - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug - + - uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - + - uses: docker/build-push-action@v6 with: context: ./database/postgres diff --git a/database/postgres/17/Dockerfile b/database/postgres/17/Dockerfile new file mode 100644 index 0000000..669c258 --- /dev/null +++ b/database/postgres/17/Dockerfile @@ -0,0 +1,23 @@ +FROM --platform=$TARGETOS/$TARGETARCH postgres:17-bookworm + +LABEL author="Torsten Widmann" maintainer="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.licenses=AGPL +LABEL org.opencontainers.image.description Dockerimage for Pelican Hosting Panel and Pterodactyl +ENV DEBIAN_FRONTEND noninteractive +RUN apt update \ + && apt -y upgrade + +RUN apt install -y \ + netcat-openbsd \ + iproute2 \ + postgresql-17-postgis-3 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ./../entrypoint.sh /entrypoint.sh +CMD ["/bin/bash", "/entrypoint.sh"]