Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mntlty merged 8 commits intomainfromincrease_runner_size
Apr 3, 2025
Merged

speed up docker builds#92

mntlty merged 8 commits intomainfromincrease_runner_size
Apr 3, 2025

Conversation

mntlty
Copy link
Collaborator

@mntltymntlty commentedApr 3, 2025
edited
Loading

Closes:#91

Reduces runtime of the action from8.5 minutes to around1.5 minutes

@CopilotCopilotAI review requested due to automatic review settingsApril 3, 2025 20:52
Copy link
Contributor

@CopilotCopilotAI 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 changesApr 3, 2025
Copy link
Collaborator

@SamMorrowDrumsSamMorrowDrums left a comment

Choose a reason for hiding this comment

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

Nice 🚀

@mntltymntlty changed the titleincrease runner size to xlspeed up docker buildsApr 3, 2025
@mntltymntlty merged commit9e2b1f0 intomainApr 3, 2025
16 checks passed
@mntltymntlty deleted the increase_runner_size branchApril 3, 2025 22:19
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull requestApr 12, 2025
williammartin pushed a commit that referenced this pull requestMay 7, 2025
* Optimize Docker build with bind mountsThis commit further optimize the Docker builds on top of PR#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-mountsSigned-off-by: Eng Zer Jun <engzerjun@gmail.com>* Remove `go mod download` step`go build` will automatically download module dependencies. In manycases, that is a much smaller set of modules than what is downloaded by`go mod download`.Size of GOMODCACHE with `go mod download:$ go clean -i -r -cache -modcache$ go mod download$ du -sh ~/go/pkg/mod186M/home/jun/go/pkg/modSize of GOMODCACHE with `go build`:$ go clean -i -r -cache -modcache$ CGO_ENABLED=0 go build -ldflags="-s -w" cmd/github-mcp-server/main.gogo: downloading github.com/spf13/viper v1.20.1go: downloading github.com/mark3labs/mcp-go v0.18.0go: downloading github.com/google/go-github/v69 v69.2.0go: downloading github.com/sirupsen/logrus v1.9.3go: downloading github.com/spf13/cobra v1.9.1go: downloading golang.org/x/sys v0.31.0go: downloading github.com/spf13/afero v1.14.0go: downloading github.com/fsnotify/fsnotify v1.8.0go: downloading github.com/spf13/cast v1.7.1go: downloading github.com/go-viper/mapstructure/v2 v2.2.1go: downloading github.com/subosito/gotenv v1.6.0go: downloading gopkg.in/yaml.v3 v3.0.1go: downloading github.com/spf13/pflag v1.0.6go: downloading github.com/pelletier/go-toml/v2 v2.2.3go: downloading github.com/sagikazarmark/locafero v0.9.0go: downloading golang.org/x/text v0.23.0go: downloading github.com/google/uuid v1.6.0go: downloading github.com/yosida95/uritemplate/v3 v3.0.2go: downloading github.com/sourcegraph/conc v0.3.0go: downloading github.com/google/go-querystring v1.1.0$ du -sh ~/go/pkg/mod80M/home/jun/go/pkg/modReference:https://stackoverflow.com/a/68172023/7902371Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@SamMorrowDrumsSamMorrowDrumsSamMorrowDrums approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Speed up docker builds
2 participants
@mntlty@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp