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

Update the Makefile for local development #41

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

justinclift
Copy link
Member

@justinclift justinclift commented Aug 12, 2024

The existing Makefile doesn't really work for local development, and also has a bunch of make targets for pushing images to Docker Hub that we should definitely not use any more.

This PR removes all of the old make targets that are no longer useful, instead organising things to use a pgautoupgrade/pgautoupgrade:local docker image for local development.

There is one remaining make target for pushing to Docker Hub, make pushdev, which pushes the local development image to Docker Hub as pgautoupgrade/pgautoupgrade:dev.

Seems to work fine in local testing. 😄

@justinclift justinclift changed the title Start updating the Makefile for both Alpine and Bookworm WIP: Start updating the Makefile for both Alpine and Bookworm Aug 12, 2024
@justinclift justinclift changed the title WIP: Start updating the Makefile for both Alpine and Bookworm WIP: Update the Makefile for both Alpine and Bookworm Aug 12, 2024
@justinclift justinclift changed the title WIP: Update the Makefile for both Alpine and Bookworm Update the Makefile for local development Oct 7, 2024
@justinclift
Copy link
Member Author

justinclift commented Oct 7, 2024

This seems mostly ok for now, but I'm not sure what approach to take for a make test that runs locally.

Might need to add an optional extra argument to the test.sh script, such that it can be told to only test against the pgautoupgrade/pgautoupgrade:local image.

Will need to think over it a bit more I reckon, and make a follow up PR for that piece.

@justinclift justinclift merged commit f8b6ded into main Oct 7, 2024
26 checks passed
@justinclift justinclift deleted the local_dev_v2 branch October 7, 2024 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant