Skip to content

Commit 43a8c4c

Browse files
authored
Merge pull request #68 from OpenDRR/postgresql-14-pgdg
Install postgresql-client 14 from PGDG APT repo
2 parents adb904a + a838d45 commit 43a8c4c

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ FROM debian:sid-20201012-slim
3131

3232
LABEL org.opencontainers.image.authors="Joost van Ulden <joost.vanulden@canada.ca>, Anthony Fok <anthony.fok@canada.ca>"
3333
LABEL org.opencontainers.image.source="https://github.com/opendrr/python-env"
34-
LABEL org.opencontainers.image.version="1.2.3"
34+
LABEL org.opencontainers.image.version="1.2.4"
3535
LABEL org.opencontainers.image.vendor="Government of Canada"
3636
LABEL org.opencontainers.image.licenses="MIT"
3737

38+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
3839
RUN echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/docker-snapshot.conf \
3940
&& sed -i '/snapshot.debian.org/s/^# //; /deb.debian.org/s/^/# /' /etc/apt/sources.list \
4041
&& echo 'deb http://deb.debian.org/debian bullseye main' >> /etc/apt/sources.list \
@@ -51,11 +52,11 @@ Pin-Priority: 50' > /etc/apt/preferences.d/git-in-bullseye \
5152
curl \
5253
dos2unix \
5354
gdal-bin \
55+
gpg \
5456
jq \
5557
moreutils \
5658
nano \
5759
neovim \
58-
postgresql-client \
5960
procps \
6061
pv \
6162
pypy3 \
@@ -72,12 +73,18 @@ Pin-Priority: 50' > /etc/apt/preferences.d/git-in-bullseye \
7273
7zip \
7374
git \
7475
git-lfs \
76+
&& curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor \
77+
| tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null \
78+
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main 14' \
79+
> /etc/apt/sources.list.d/pgdg.list \
7580
&& curl -fsSL --create-dirs --output /usr/share/keyrings/githubcli-archive-keyring.gpg \
7681
https://cli.github.com/packages/githubcli-archive-keyring.gpg \
7782
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
7883
> /etc/apt/sources.list.d/github-cli.list \
7984
&& eatmydata apt-get update \
80-
&& eatmydata apt-get install -y --no-install-recommends gh \
85+
&& eatmydata apt-get install -y --no-install-recommends \
86+
gh \
87+
postgresql-client \
8188
&& rm -rf /var/lib/apt/lists/*
8289

8390
COPY requirements.txt /tmp

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ Not recommend to use the `edge` version in python/Dockerfile of OpenDRR/opendrr-
4242
## Creating ghcr.io/opendrr/python-env:latest production releases
4343

4444
1. Create a new release tag,
45-
e.g. a signed tag from the command-line by using `git tag -s v1.2.3`,
46-
typing up a brief release notes, and `git push origin v1.2.3`. (optional)
45+
e.g. a signed tag from the command-line by using `git tag -s v1.2.4`,
46+
typing up a brief release notes, and `git push origin v1.2.4`. (optional)
4747
2. Alternatively or additionally, [draft a new release](https://github.com/OpenDRR/python-env/releases/new)
4848
through the GitHub web interface so the new release and release notes are immediately visible.
4949
3. Visit <https://github.com/OpenDRR/python-env/pkgs/container/python-env>
50-
and check under "Recent tagged image versions" that the a new image versioned `latest` `1.2.3` is published.
50+
and check under "Recent tagged image versions" that the a new image versioned `latest` `1.2.4` is published.
5151

5252
To test locally:
5353

5454
```console
55-
docker run -it --rm ghcr.io/opendrr/python-env:1.2.3
55+
docker run -it --rm ghcr.io/opendrr/python-env:1.2.4
5656
```
5757

58-
To test with OpenDRR/opendrr-api, edit the `FROM` line in python/Dockerfile accordingly, e.g. `FROM ghcr.io/opendrr/python-env:1.2.3`.
58+
To test with OpenDRR/opendrr-api, edit the `FROM` line in python/Dockerfile accordingly, e.g. `FROM ghcr.io/opendrr/python-env:1.2.4`.

0 commit comments

Comments
 (0)