Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gocardless v0.17.0+ #149

Merged
merged 23 commits into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5b04f64
Bump go 1.17 and update deps
dyson Mar 9, 2022
aec49b8
Upgrade ubuntu, stolon, postgres, and pgbouncer_exporter
dyson Mar 10, 2022
a393c9a
CI-1277: Enable replica proxy
VSpike Mar 10, 2022
1600a5f
Merge pull request #143 from gocardless/CI-1277/synchronous_replica_p…
VSpike Mar 11, 2022
80b014f
Revert "Don't require ignore_startup_parameters"
VSpike Mar 14, 2022
64bd381
Merge pull request #144 from gocardless/CI-1285/add_libpq_workarounds
dyson Mar 14, 2022
81bf8b0
CI-1281: Add support for configurable WAL dir in testing
VSpike Mar 16, 2022
c92db99
add stolon proxy metrics dashboard
asobhgol Mar 17, 2022
a8a17d8
Bump stolon-fork in stolon-development dockerfile
dyson Mar 18, 2022
332065a
Merge pull request #145 from gocardless/CI-1281/support_configurable_…
dyson Mar 18, 2022
bd93196
Fixup proxy grafana dashboard panel name
dyson Mar 18, 2022
c5ef70a
Bump to the latest version of gocardless-v0.17.0+
dyson Mar 18, 2022
66ab958
Bump gocardless-v0.17.0+ and enable pg_rewind
dyson Mar 21, 2022
d20161b
Bump stolon gocardless-v0.17.0+ in playground
dyson Mar 22, 2022
4da5a01
Bump stolon to latest gocardless fork
dyson Apr 25, 2022
1bb816b
Bump stolon-pgbouncer images
dyson Apr 25, 2022
57d30f4
Increase pgbouncer_exporter retries in stolon-development
dyson Apr 25, 2022
7616b29
Configure acceptance tests & pgbouncer stolon user
dyson Apr 25, 2022
d3e4911
Use ubuntu 20.04 in acceptance tests
dyson Apr 26, 2022
0e4f888
Publish new images
dyson Apr 26, 2022
2864988
Merge pull request #147 from gocardless/dyson-bump-stolon
dyson Apr 26, 2022
40d078c
Fixup pgbouncer_exporter connection string
dyson Apr 26, 2022
7c575ed
Merge pull request #148 from gocardless/dyson-fixup-pgbouncer-exporter
dyson Apr 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# build
################################################################################

FROM golang:1.14.2 AS build
FROM golang:1.17.8 AS build
COPY . /go/src/github.com/gocardless/stolon-pgbouncer
WORKDIR /go/src/github.com/gocardless/stolon-pgbouncer

Expand All @@ -19,7 +19,7 @@ RUN set -x \
# release
################################################################################

FROM gocardless/stolon-pgbouncer-base:2020050701 AS release
FROM gocardless/stolon-pgbouncer-base:2022042601 AS release
COPY --from=build /go/src/github.com/gocardless/stolon-pgbouncer/stolon-pgbouncer /usr/local/bin/stolon-pgbouncer
USER postgres
ENTRYPOINT ["/usr/local/bin/stolon-pgbouncer"]
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ PROJECT=github.com/gocardless/stolon-pgbouncer
VERSION=$(shell git rev-parse --short HEAD)-dev
BUILD_COMMAND=go build -ldflags "-X main.Version=$(VERSION)"

BASE_TAG=2020051101
CIRCLECI_TAG=2020051101
STOLON_DEVELOPMENT_TAG=2020051101
BASE_TAG=2022042601
CIRCLECI_TAG=20220042601
STOLON_DEVELOPMENT_TAG=2022042601

.PHONY: all darwin linux test clean test-acceptance docker-compose

Expand Down
3 changes: 2 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ jobs:
command: find pkg -type f -name '*.test' -printf "%h %f\n" | xargs -n2 sh -c 'cd $0 && su postgres -c ./$1'

acceptance:
machine: true
machine:
image: ubuntu-2004:202201-02
working_directory: /home/circleci/stolon-pgbouncer
steps:
- checkout
Expand Down
24 changes: 16 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ services:
volumes:
- etcd-store-data:/data
ports:
- "2379:2379"
- "127.0.0.1:2379:2379"
networks:
default:
aliases:
- etcd-store

sentinel:
image: &stolonDevelopmentImage gocardless/stolon-development:2020050701
image: &stolonDevelopmentImage gocardless/stolon-development:2022042601
restart: on-failure
depends_on:
- etcd-store
Expand All @@ -41,7 +41,7 @@ services:
volumes:
- .:/stolon-pgbouncer
ports:
- "6432:6432"
- "127.0.0.1:6432:6432"
depends_on:
- keeper0
- keeper1
Expand All @@ -55,9 +55,12 @@ services:
restart: on-failure
volumes:
- keeper0-data:/data
- keeper0-wal:/wal
- .:/stolon-pgbouncer
environment:
- WAL_DIR=/wal
ports:
- "6433:6432"
- "127.0.0.1:6433:6432"
depends_on:
- sentinel

Expand All @@ -69,9 +72,12 @@ services:
restart: on-failure
volumes:
- keeper1-data:/data
- keeper1-wal:/wal
- .:/stolon-pgbouncer
environment:
- WAL_DIR=/wal
ports:
- "6434:6432"
- "127.0.0.1:6434:6432"
depends_on:
- sentinel

Expand All @@ -85,7 +91,7 @@ services:
- keeper2-data:/data
- .:/stolon-pgbouncer
ports:
- "6435:6432"
- "127.0.0.1:6435:6432"
depends_on:
- sentinel

Expand All @@ -102,7 +108,7 @@ services:
- '--web.console.templates=/usr/share/prometheus/consoles'
restart: always
ports:
- 9090:9090
- "127.0.0.1:9090:9090"

grafana:
image: grafana/grafana
Expand All @@ -115,7 +121,7 @@ services:
- grafana-data:/var/lib/grafana
user: "472"
ports:
- 3000:3000
- "127.0.0.1:3000:3000"
restart: always

# Persist etcd and keeper data across docker restarts. This enables our cluster
Expand All @@ -126,6 +132,8 @@ volumes:
keeper0-data:
keeper1-data:
keeper2-data:
keeper0-wal:
keeper1-wal:
prometheus-data:
grafana-data:

Expand Down
5 changes: 3 additions & 2 deletions docker/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM ubuntu:bionic-20200403
FROM ubuntu:focal-20220302
ENV DEBIAN_FRONTEND noninteractive
RUN set -x \
&& apt-get update -y \
&& apt-get install -y curl gpg \
&& sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main\ndeb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg 11" > /etc/apt/sources.list.d/pgdg.list' \
&& sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main\ndeb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg 14" > /etc/apt/sources.list.d/pgdg.list' \
&& curl --silent https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update -y \
&& apt-get install -y software-properties-common pgbouncer postgresql-client \
Expand Down
9 changes: 5 additions & 4 deletions docker/circleci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# In addition to our base install of pgbouncer and postgresql-client, add CI
# dependencies that we require during our builds.
FROM gocardless/stolon-pgbouncer-base:2020050701
FROM gocardless/stolon-pgbouncer-base:2022042601

# General test utilities
RUN set -x \
Expand All @@ -12,12 +12,13 @@ RUN set -x \
ENV GOPATH=/go GOROOT=/usr/local/go PATH=$PATH:/usr/local/go/bin:/go/bin:/usr/sbin
RUN set -x \
&& mkdir -p /usr/local/go /go \
&& curl -L https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz -o /tmp/go.tar.gz \
&& curl -L https://dl.google.com/go/go1.17.linux-amd64.tar.gz -o /tmp/go.tar.gz \
&& tar xfvz /tmp/go.tar.gz -C /usr/local/go --strip-components=1 \
&& go version \
&& go get -v -u github.com/onsi/ginkgo/ginkgo \
&& go get -v -u github.com/onsi/ginkgo/v2 \
&& go install github.com/onsi/ginkgo/v2/ginkgo@latest \
&& ginkgo version \
&& rm -rv /tmp/go.tar.gz /go/src/github.com/onsi/ginkgo
&& rm -rv /tmp/go.tar.gz

# We require etcd for our integration tests
RUN set -x \
Expand Down
Loading