diff --git a/.github/workflows/build_tembo_pg_slim.yaml b/.github/workflows/build_tembo_pg_slim.yaml index 204f0dc..b2b5b26 100644 --- a/.github/workflows/build_tembo_pg_slim.yaml +++ b/.github/workflows/build_tembo_pg_slim.yaml @@ -42,7 +42,7 @@ jobs: - name: Append PostgreSQL configurations to matrix id: append_pg_configs run: | - PG_CONFIGS='[{"pg_version": "14"}, {"pg_version": "15"}, {"pg_version": "16"}]' + PG_CONFIGS='[{"pg_version": "14"}, {"pg_version": "15"}, {"pg_version": "16"}, {"pg_version": "17"}]' MODIFIED_MATRIX=$(echo $PG_CONFIGS | jq -c '{include: .}') echo "build_matrix=$MODIFIED_MATRIX" >> $GITHUB_OUTPUT - name: Determine which tags to publish @@ -123,7 +123,7 @@ jobs: IFS=' ' read -ra TAG_ARRAY <<< "${{ needs.pre-build.outputs.tags }}" for tag in "${TAG_ARRAY[@]}"; do docker tag $IMAGE_NAME ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag - docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag + docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag done standard-cnpg-build: @@ -161,7 +161,7 @@ jobs: IFS=' ' read -ra TAG_ARRAY <<< "${{ needs.pre-build.outputs.tags }}" for tag in "${TAG_ARRAY[@]}"; do docker tag $IMAGE_NAME ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag - docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag + docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag done - name: Configure AWS credentials for ECR uses: aws-actions/configure-aws-credentials@v4 @@ -226,7 +226,7 @@ jobs: IFS=' ' read -ra TAG_ARRAY <<< "${{ needs.pre-build.outputs.tags }}" for tag in "${TAG_ARRAY[@]}"; do docker tag $IMAGE_NAME ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag - docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag + docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag done - name: Configure AWS credentials for ECR uses: aws-actions/configure-aws-credentials@v4 @@ -269,17 +269,20 @@ jobs: steps: - uses: actions/checkout@v4 - name: Build Docker images based on conditions + if: ${{ matrix.pg_version != '17' }} run: | IMAGE_NAME=$CONTAINER_NAME:${{ matrix.pg_version }} docker build ./$CONTAINER_NAME --build-arg PG_VERSION=${{ matrix.pg_version }} --build-arg TAG=${{ needs.pre-build.outputs.short_sha }} -t $IMAGE_NAME shell: bash - name: Login to Tembo Quay + if: ${{ matrix.pg_version != '17' }} uses: docker/login-action@v2 with: registry: ${{ secrets.QUAY_REPOSITORY }} username: ${{ secrets.QUAY_USER_TEMBO }} password: ${{ secrets.QUAY_PASSWORD_TEMBO }} - name: Push to Quay + if: ${{ matrix.pg_version != '17' }} shell: bash run: | set -xe @@ -287,18 +290,21 @@ jobs: IFS=' ' read -ra TAG_ARRAY <<< "${{ needs.pre-build.outputs.tags }}" for tag in "${TAG_ARRAY[@]}"; do docker tag $IMAGE_NAME ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag - docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag + docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag done - name: Configure AWS credentials for ECR + if: ${{ matrix.pg_version != '17' }} uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ secrets.GHA_IAM_ROLE }} role-session-name: images-gha-docker-build-and-push aws-region: "us-east-1" - name: Install awscli + if: ${{ matrix.pg_version != '17' }} uses: unfor19/install-aws-cli-action@v1 - name: Push to ECR shell: bash + if: ${{ matrix.pg_version != '17' }} run: | set -xe IMAGE_NAME=$CONTAINER_NAME:${{ matrix.pg_version }} @@ -344,7 +350,7 @@ jobs: IFS=' ' read -ra TAG_ARRAY <<< "${{ needs.pre-build.outputs.tags }}" for tag in "${TAG_ARRAY[@]}"; do docker tag $IMAGE_NAME ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag - docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag + docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag done - name: Configure AWS credentials for ECR uses: aws-actions/configure-aws-credentials@v4 @@ -409,7 +415,7 @@ jobs: IFS=' ' read -ra TAG_ARRAY <<< "${{ needs.pre-build.outputs.tags }}" for tag in "${TAG_ARRAY[@]}"; do docker tag $IMAGE_NAME ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag - docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag + docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag done - name: Configure AWS credentials for ECR uses: aws-actions/configure-aws-credentials@v4 @@ -470,5 +476,5 @@ jobs: IFS=' ' read -ra TAG_ARRAY <<< "${{ needs.pre-build.outputs.tags }}" for tag in "${TAG_ARRAY[@]}"; do docker tag $IMAGE_NAME ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag - docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag + docker push ${{ secrets.QUAY_REPOSITORY }}/$IMAGE_NAME-$tag done diff --git a/geo-cnpg/Dockerfile b/geo-cnpg/Dockerfile index 0cee6bc..00d2bf5 100644 --- a/geo-cnpg/Dockerfile +++ b/geo-cnpg/Dockerfile @@ -32,7 +32,7 @@ RUN wget https://download.osgeo.org/postgis/source/postgis-3.4.0.tar.gz && \ RUN git clone https://github.com/MobilityDB/MobilityDB && \ cd MobilityDB && \ - git checkout v1.1.0rc1 && \ + git checkout v1.2.0rc1 && \ mkdir build && \ cd build && \ cmake .. && \ diff --git a/standard-cnpg/Dockerfile b/standard-cnpg/Dockerfile index b167429..a40d80b 100644 --- a/standard-cnpg/Dockerfile +++ b/standard-cnpg/Dockerfile @@ -3,7 +3,7 @@ ARG TAG=latest FROM rust:1.74-bookworm as builder -ARG TRUNK_VER=0.12.25 +ARG TRUNK_VER=0.15.0 ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL sparse RUN cargo install --version $TRUNK_VER pg-trunk @@ -89,7 +89,7 @@ RUN git clone https://github.com/aws/aws-sdk-cpp.git && \ git checkout 1.9.263 && \ git submodule update --init --recursive && \ mkdir build && cd build && \ - cmake -DBUILD_ONLY="s3;core;config;sts;cognito-identity;transfer;identity-management" -DAUTORUN_UNIT_TESTS=OFF -DCMAKE_CXX_FLAGS=-Wno-error=deprecated-declarations .. && \ + cmake -DBUILD_ONLY="s3;core;config;sts;cognito-identity;transfer;identity-management" -DAUTORUN_UNIT_TESTS=OFF -DCMAKE_CXX_FLAGS=-Wno-error=deprecated-declarations .. && \ make -j$(nproc) && \ make install && \ cd ../../../ && rm -rf aws-sdk-cpp diff --git a/standard-cnpg/README.md b/standard-cnpg/README.md index 43a4b45..eb050e6 100644 --- a/standard-cnpg/README.md +++ b/standard-cnpg/README.md @@ -1,6 +1,6 @@ # Postgres Docker Image for Tembo's Standard Stack -Contains a Dockerfile with trunk, barman-cloud, Postgres 14, 15 or 16 and all extension dependencies installed. +Contains a Dockerfile with trunk, barman-cloud, Postgres 14, 15, 16, or 17 and all extension dependencies installed. ## Versioning diff --git a/tembo-pg-cnpg/Dockerfile b/tembo-pg-cnpg/Dockerfile index c7996c7..6f8326b 100644 --- a/tembo-pg-cnpg/Dockerfile +++ b/tembo-pg-cnpg/Dockerfile @@ -3,9 +3,9 @@ ARG TAG=latest FROM rust:1.78-bookworm as builder -ARG TRUNK_VER=0.12.25 +ARG TRUNK_VER=0.15.0 -ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL sparse +ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL sparse RUN cargo install --version $TRUNK_VER pg-trunk FROM quay.io/tembo/tembo-pg-slim:${PG_VERSION}-${TAG}