Skip to content

Commit

Permalink
add postgre 17
Browse files Browse the repository at this point in the history
  • Loading branch information
gOOvER committed Nov 15, 2024
1 parent e4022a7 commit 9337a49
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/db-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions database/postgres/17/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM --platform=$TARGETOS/$TARGETARCH postgres:17-bookworm

LABEL author="Torsten Widmann" maintainer="[email protected]"
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

Check warning on line 6 in database/postgres/17/Dockerfile

View workflow job for this annotation

GitHub Actions / postgres:17

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV DEBIAN_FRONTEND noninteractive

Check warning on line 7 in database/postgres/17/Dockerfile

View workflow job for this annotation

GitHub Actions / postgres:17

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
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"]

0 comments on commit 9337a49

Please sign in to comment.