Skip to content

speed up docker builds #92

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

Merged
merged 8 commits into from
Apr 3, 2025
Merged

speed up docker builds #92

merged 8 commits into from
Apr 3, 2025

Conversation

mntlty
Copy link
Collaborator

@mntlty mntlty commented Apr 3, 2025

Closes: #91

Reduces runtime of the action from 8.5 minutes to around 1.5 minutes

@Copilot Copilot AI review requested due to automatic review settings April 3, 2025 20:52
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the runner configuration in the docker publishing workflow by increasing the runner size to "xl".

  • Modify the runner type from "ubuntu-latest" to "ubuntu-latest-xl"
  • Adjust workflow configuration to potentially access higher resource runners
Comments suppressed due to low confidence (1)

.github/workflows/docker-publish.yml:26

  • Please verify that 'ubuntu-latest-xl' is a valid runner label for this workflow. If it is not available on GitHub MCP Server, consider updating to a valid runner specification to prevent workflow failures.
runs-on: ubuntu-latest-xl

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

SamMorrowDrums
SamMorrowDrums previously approved these changes Apr 3, 2025
Copy link
Collaborator

@SamMorrowDrums SamMorrowDrums left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 🚀

@mntlty mntlty changed the title increase runner size to xl speed up docker builds Apr 3, 2025
mntlty added 2 commits April 3, 2025 15:03
This reverts commit 4cdcace.
@mntlty mntlty merged commit 9e2b1f0 into main Apr 3, 2025
16 checks passed
@mntlty mntlty deleted the increase_runner_size branch April 3, 2025 22:19
Juneezee added a commit to Juneezee/github-mcp-server that referenced this pull request Apr 9, 2025
This commit further optimize the Docker builds on top of PR github#92 with:

1. Add .dockerignore file to exclude non-source code files [1].

2. Use Alpine image variant for build stage to reduce download size.
   golang:1.23.7-alpine is 200 MB smaller than golang:1.23.7 [2][3].

3. Replace COPY instruction with RUN --mount=type=bind. Bind mounts do
   not add unnecessary layers to the cache [4][5].

[1]: https://docs.docker.com/build-cloud/optimization/#dockerignore-files
[2]: https://hub.docker.com/layers/library/golang/1.23.7-alpine/images/sha256-333d4ba78773b3a3ae9cf2cff8962df56effc5c9481faa355f211abf2baf175c
[3]: https://hub.docker.com/layers/library/golang/1.23.7/images/sha256-2087a99c3235972660b3d35c1564d9d1a3f639dcace9c790acbabc7e938d1570
[4]: https://docs.docker.com/build/building/best-practices/#add-or-copy
[5]: https://docs.docker.com/build/cache/optimize/#use-bind-mounts

Signed-off-by: Eng Zer Jun <[email protected]>
Juneezee added a commit to Juneezee/github-mcp-server that referenced this pull request Apr 10, 2025
This commit further optimize the Docker builds on top of PR github#92 with:

1. Add .dockerignore file to exclude non-source code files [1].

2. Use Alpine image variant for build stage to reduce download size.
   golang:1.23.7-alpine is 200 MB smaller than golang:1.23.7 [2][3].

3. Replace COPY instruction with RUN --mount=type=bind. Bind mounts do
   not add unnecessary layers to the cache [4][5].

[1]: https://docs.docker.com/build-cloud/optimization/#dockerignore-files
[2]: https://hub.docker.com/layers/library/golang/1.23.7-alpine/images/sha256-333d4ba78773b3a3ae9cf2cff8962df56effc5c9481faa355f211abf2baf175c
[3]: https://hub.docker.com/layers/library/golang/1.23.7/images/sha256-2087a99c3235972660b3d35c1564d9d1a3f639dcace9c790acbabc7e938d1570
[4]: https://docs.docker.com/build/building/best-practices/#add-or-copy
[5]: https://docs.docker.com/build/cache/optimize/#use-bind-mounts

Signed-off-by: Eng Zer Jun <[email protected]>
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull request Apr 12, 2025
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.

Speed up docker builds
2 participants