Skip to content

Commit

Permalink
Merge pull request #24 from cybertec-postgresql/22-bump-ubuntu-to-220…
Browse files Browse the repository at this point in the history
…4-in-docker-images

[+] update Ubuntu to 22.04 in Docker files, closes #22
  • Loading branch information
pashagolub authored Jun 9, 2022
2 parents 68e2cd6 + 3793594 commit 3ec8745
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,23 @@ jobs:
# with:
# version: latest
# args: release --snapshot --skip-publish --rm-dist

test-docker-images:
if: true # false to skip job during debug
name: Test Docker Image on Ubuntu
runs-on: ubuntu-latest
steps:

- name: Check out code
uses: actions/checkout@v3

- name: Build Docker Image
shell: bash
run: |
./build-docker.sh
# - name: Smoke Test Docker Image
# timeout-minutes: 10
# shell: bash
# run: |
# docker/test/smoke_test_docker_image.sh cybertec/pgwatch3:latest
Empty file modified build-docker-webui.sh
100644 → 100755
Empty file.
Empty file modified build-docker.sh
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ ADD src /pgwatch3
RUN cd /pgwatch3 && bash build_gatherer.sh


FROM ubuntu:20.04
FROM ubuntu:22.04

RUN apt-get -q update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qy curl ca-certificates gnupg \
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& curl -s https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && apt-get -q update \
&& DEBIAN_FRONTEND=noninteractive apt-get -qy install postgresql-14 \
postgresql-plpython3-14 libfontconfig python3-pip libssl-dev libpq-dev \
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ADD src /pgwatch3
RUN cd /pgwatch3 && bash build_gatherer.sh


FROM ubuntu:20.04
FROM ubuntu:22.04

RUN apt-get -q update && apt-get -qy install wget git && apt autoremove -y && mkdir /pgwatch3

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile-webui
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:22.04

RUN apt-get -q update && apt-get -qy install python3-pip \
&& mkdir /pgwatch3
Expand Down

0 comments on commit 3ec8745

Please sign in to comment.