Skip to content

Commit

Permalink
Downgrades postgres 13 and 12 image versions
Browse files Browse the repository at this point in the history
since latest versions are debian 11
  • Loading branch information
gurkanindibay committed Sep 24, 2021
1 parent 223a74c commit 3aa1987
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/publish_docker_images_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ on:
- "**"
jobs:
build_and_publish_images:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image_type:
- latest
- alpine
- postgres_12
- postgres_14
- nightly
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -26,7 +30,7 @@ jobs:
run: git clone -b v0.8.4 --depth=1 https://github.com/citusdata/tools.git tools

- name: Install package dependencies
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev python3-testresources
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev

- name: Install python requirements
run: python -m pip install -r tools/packaging_automation/requirements.txt
Expand All @@ -35,4 +39,8 @@ jobs:
run: docker login -u "${DOCKERHUB_USER_NAME}" -p "${DOCKERHUB_PASSWORD}"

- name: Build and publish docker images
run: docker build -t citusdata/citus:pg13 .
run: |
python -m tools.packaging_automation.publish_docker \
--github_ref "${GITHUB_REF}" \
--pipeline_trigger_type "${GITHUB_EVENT_NAME}" \
--image_type "${{ matrix.image_type }}"
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is auto generated from it's template,
# see citusdata/tools/packaging_automation/templates/docker/latest/latest.tmpl.dockerfile.
FROM postgres:13.4
FROM postgres:13.3
ARG VERSION=10.2.0
LABEL maintainer="Citus Data https://citusdata.com" \
org.label-schema.name="Citus" \
Expand All @@ -17,11 +17,13 @@ ENV CITUS_VERSION ${VERSION}.citus-1
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl

RUN curl -s https://install.citusdata.com/community/deb.sh | bash

RUN apt-get install -y postgresql-13-citus-10.2=10.2.0.citus-1
curl \
&& curl -s https://install.citusdata.com/community/deb.sh | bash \
&& apt-get install -y postgresql-$PG_MAJOR-citus-10.2=$CITUS_VERSION \
postgresql-$PG_MAJOR-hll=2.15.citus-1 \
postgresql-$PG_MAJOR-topn=2.3.1 \
&& apt-get purge -y --auto-remove curl \
&& rm -rf /var/lib/apt/lists/*

# add citus to default PostgreSQL config
RUN echo "shared_preload_libraries='citus'" >> /usr/share/postgresql/postgresql.conf.sample
Expand Down
2 changes: 1 addition & 1 deletion postgres-12/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is auto generated from it's template,
# see citusdata/tools/packaging_automation/templates/docker/postgres-12/postgres-12.tmpl.dockerfile.
FROM postgres:12.8
FROM postgres:12.7
ARG VERSION=10.2.0
LABEL maintainer="Citus Data https://citusdata.com" \
org.label-schema.name="Citus" \
Expand Down

0 comments on commit 3aa1987

Please sign in to comment.