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

Split off Docker Make rules #1162

Merged
merged 5 commits into from
Jul 16, 2024
Merged

Split off Docker Make rules #1162

merged 5 commits into from
Jul 16, 2024

Conversation

DanRStevens
Copy link
Collaborator

Split off the Docker related Make rules into their own makefile.

This change supports an eventual move to have Docker images built using CI.


By splitting these rules off from the main makefile, it makes it possible to watch for changes to either the Dockerfiles or to the build rules in the makefile that generate Docker images from the Dockerfiles. This can be accomplished by watching for changes in the folder docker/ to trigger builds of Docker images.

Having Docker images built using CI can potentially speed up the uplaod of large Docker images. Docker images can be quite large, particularly for the Mingw builds, which are close to 4GB. Having to upload them after a local build can take quite a bit of time.

It might make sense to use the GitHub Docker Registry rather than DockerHub, as that could allow for building and uploading all using GitHub infrastructure.


Related:

Build and push rules are related to image maintenance. These two sets of rules can be used for automated builds of Docker images. The other rules are related to running the Docker images.
By splitting these rules off from the main makefile, it makes it possible to watch for changes in to either the Dockerfiles or to the build rules in the `makefile` that generate Docker images from the Dockerfiles. This can be accomplished by watching for changes in the folder `docker/` to trigger builds of Docker images.

Having Docker images built using CI can potentially speed up the uplaod of large Docker images. Docker images can be quite large, particularly for the Mingw builds, which are close to 4GB. Having to upload them after a local build can take quite a bit of time.

It might make sense to use the GitHub Docker Registry rather than DockerHub, as that could allow for building and uploading all using GitHub infrastructure.
The `TopLevelFolder` is only used when running or building Docker images.
@DanRStevens DanRStevens merged commit 9cf6e31 into main Jul 16, 2024
8 checks passed
@DanRStevens DanRStevens deleted the refactorDockerMakeRules branch July 16, 2024 18:31
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