Skip to content

Implement make compose, using docker-compose for local interactive testing.#825

Merged
DimCitus merged 5 commits intomasterfrom
dx/add-pgversion-to-dockerfile
Dec 23, 2021
Merged

Implement make compose, using docker-compose for local interactive testing.#825
DimCitus merged 5 commits intomasterfrom
dx/add-pgversion-to-dockerfile

Conversation

@DimCitus
Copy link
Copy Markdown
Collaborator

@DimCitus DimCitus commented Nov 2, 2021

This PR adds a new make compose command that works the same way as the make cluster command, though uses docker-compose to start the monitor and the Postgres nodes in a way that uses a single tmux pane.

When using make compose it is possible to use PGVERSION to test with a specific docker image, such as e.g. in the command make PGVERSION=13 NODES=6 NODES_ASYNC=3 NODES_PRIOS=50,50,50,0 compose.

Be sure to run the usual build and also make build build-check first, that should clean-up the local docker images you might have dangling, and hopefully make everything just work.

@DimCitus DimCitus added Size: S Effort Estimate: Small Developer productivity Enhancements to ability to ship quality code labels Nov 2, 2021
@DimCitus DimCitus requested a review from JelteF November 2, 2021 12:59
@DimCitus DimCitus self-assigned this Nov 2, 2021
@DimCitus DimCitus added Size:M Effort Estimate: Medium and removed Size: S Effort Estimate: Small labels Nov 3, 2021
@rheaton
Copy link
Copy Markdown
Contributor

rheaton commented Nov 8, 2021

Hi! I took a look at this on a MacOS.

I like how easy is has become to run the tests against different versions of postgres. :)

I am unable to get the make compose command to work -- am I doing something wrong?

Testing now! I needed to re-compile

This is very cool! I like how you've added the helper text after the system is set up.

@DimCitus DimCitus force-pushed the dx/add-pgversion-to-dockerfile branch from 8f9877e to 797628d Compare November 9, 2021 11:50
@DimCitus DimCitus force-pushed the dx/add-pgversion-to-dockerfile branch 3 times, most recently from 0cadeaf to 5171f91 Compare November 26, 2021 11:41
@DimCitus DimCitus added this to the January 2022 Release milestone Nov 30, 2021
@DimCitus DimCitus force-pushed the dx/add-pgversion-to-dockerfile branch 3 times, most recently from f7abd32 to 18349b8 Compare December 7, 2021 11:21
@DimCitus DimCitus requested a review from thanodnl December 9, 2021 14:00
@DimCitus DimCitus force-pushed the dx/add-pgversion-to-dockerfile branch from 18349b8 to 652e7d8 Compare December 15, 2021 17:07
@DimCitus DimCitus changed the title Dx/add pgversion to dockerfile Implement make compose, using docker-compose for local interactive testing. Dec 15, 2021
DimCitus and others added 5 commits December 23, 2021 13:59
Similar to `make cluster`, this allows to start a local cluster to play with
multiple Postgres nodes registered in a pg_auto_failover monitor. This time
the command uses docker-compose to run all the nodes in the background, and
each node has its own pre-created external docker volume.
@DimCitus DimCitus force-pushed the dx/add-pgversion-to-dockerfile branch from 6e16d97 to 9f006f4 Compare December 23, 2021 13:00
@DimCitus DimCitus merged commit 0b33c80 into master Dec 23, 2021
@DimCitus DimCitus deleted the dx/add-pgversion-to-dockerfile branch December 23, 2021 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Developer productivity Enhancements to ability to ship quality code Size:M Effort Estimate: Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants