Skip to content

Commit

Permalink
use custom postgres image (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolyachevets authored Feb 20, 2025
1 parent bf904c4 commit 9df6c81
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/backend-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
STAFF_ADMIN_EMAIL: "[email protected]"
services:
postgres:
image: postgis/postgis:15-master
image: ghcr.io/bcgov/postgres15-postgis-anon
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down
8 changes: 8 additions & 0 deletions images/postgres-ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM postgis/postgis:15-master

RUN apt-get update && apt-get install -y curl lsb-release && echo deb http://apt.dalibo.org/labs $(lsb_release -cs)-dalibo main > /etc/apt/sources.list.d/dalibo-labs.list \
&& curl -fsSL -o /etc/apt/trusted.gpg.d/dalibo-labs.gpg https://apt.dalibo.org/labs/debian-dalibo.gpg && apt update

RUN apt install -y postgresql_anonymizer_15

CMD ["postgres"]
4 changes: 4 additions & 0 deletions images/postgres-ci/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
docker build --no-cache -t postgres15-postgis-anon .
docker tag postgres15-postgis-anon ghcr.io/bcgov/postgres15-postgis-anon:latest
docker push ghcr.io/bcgov/postgres15-postgis-anon:latest

0 comments on commit 9df6c81

Please sign in to comment.