From a1a1fa05a2fa66e0a701821c43d8dd38fe29d55f Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Thu, 12 Oct 2023 21:46:07 -0700 Subject: [PATCH] feat: postgres/postgres (#19) --- .github/workflows/pr-open.yml | 6 +++--- postgres/postgres/12/Dockerfile | 5 +++++ postgres/postgres/13/Dockerfile | 5 +++++ postgres/postgres/14/Dockerfile | 5 +++++ postgres/postgres/15/Dockerfile | 5 +++++ postgres/postgres/16/Dockerfile | 5 +++++ 6 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 postgres/postgres/12/Dockerfile create mode 100644 postgres/postgres/13/Dockerfile create mode 100644 postgres/postgres/14/Dockerfile create mode 100644 postgres/postgres/15/Dockerfile create mode 100644 postgres/postgres/16/Dockerfile diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index fccad8b0..4b6066a6 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -19,12 +19,12 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - package: [bitnami/postgres] + package: [bitnami/postgres, postgres/postgres] tag: [12, 13, 14, 15, 16] timeout-minutes: 10 steps: - uses: actions/checkout@v4 - - name: Get first tag + - name: Get tag id: tag run: | TAG=$(grep '^FROM' ${{ matrix.package }}/${{ matrix.tag }}/Dockerfile | cut -d':' -f2) @@ -44,7 +44,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - package: [bitnami/postgres] + package: [bitnami/postgres, postgres/postgres] steps: - uses: actions/delete-package-versions@v4 with: diff --git a/postgres/postgres/12/Dockerfile b/postgres/postgres/12/Dockerfile new file mode 100644 index 00000000..850718a6 --- /dev/null +++ b/postgres/postgres/12/Dockerfile @@ -0,0 +1,5 @@ +FROM postgres:12.16 + +# Health check and non-privileged user +HEALTHCHECK --interval=15s --timeout=5s --retries=3 CMD [ "pg_isready" ] +USER postgres diff --git a/postgres/postgres/13/Dockerfile b/postgres/postgres/13/Dockerfile new file mode 100644 index 00000000..e2c33c64 --- /dev/null +++ b/postgres/postgres/13/Dockerfile @@ -0,0 +1,5 @@ +FROM postgres:13.12 + +# Health check and non-privileged user +HEALTHCHECK --interval=15s --timeout=5s --retries=3 CMD [ "pg_isready" ] +USER postgres diff --git a/postgres/postgres/14/Dockerfile b/postgres/postgres/14/Dockerfile new file mode 100644 index 00000000..5e1f6469 --- /dev/null +++ b/postgres/postgres/14/Dockerfile @@ -0,0 +1,5 @@ +FROM postgres:14.9 + +# Health check and non-privileged user +HEALTHCHECK --interval=15s --timeout=5s --retries=3 CMD [ "pg_isready" ] +USER postgres diff --git a/postgres/postgres/15/Dockerfile b/postgres/postgres/15/Dockerfile new file mode 100644 index 00000000..eea1cd3d --- /dev/null +++ b/postgres/postgres/15/Dockerfile @@ -0,0 +1,5 @@ +FROM postgres:15.4 + +# Health check and non-privileged user +HEALTHCHECK --interval=15s --timeout=5s --retries=3 CMD [ "pg_isready" ] +USER postgres diff --git a/postgres/postgres/16/Dockerfile b/postgres/postgres/16/Dockerfile new file mode 100644 index 00000000..22dc203f --- /dev/null +++ b/postgres/postgres/16/Dockerfile @@ -0,0 +1,5 @@ +FROM postgres:16.0 + +# Health check and non-privileged user +HEALTHCHECK --interval=15s --timeout=5s --retries=3 CMD [ "pg_isready" ] +USER postgres