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

ci: Run the container explicitly with docker run #27

Closed
wants to merge 1 commit into from

Conversation

vadorovsky
Copy link
Contributor

Using container: setting in GitHub actions unfortunately doesn't work with musl-llvm Gentoo images. The reason is that GitHub actions are injecting a NodeJS binary and for distros other than Alpine, it injects a binary linked against glibc.[0]

The proper fix would involve either defaulting to musl or making the libc detection in the container system smarter, but for now, let's just run the container manually.

[0] https://github.com/actions/runner/blob/6ef5803f24724b77a8d3599a478d06018da5d7c6/src/Runner.Worker/Handlers/StepHost.cs#L143-L172

Using `container:` setting in GitHub actions unfortunately doesn't
work with musl-llvm Gentoo images. The reason is that GitHub actions
are injecting a NodeJS binary and for distros other than Alpine, it
injects a binary linked against glibc.[0]

The proper fix would involve either defaulting to musl or making the
libc detection in the container system smarter, but for now, let's just
run the container manually.

[0] https://github.com/actions/runner/blob/6ef5803f24724b77a8d3599a478d06018da5d7c6/src/Runner.Worker/Handlers/StepHost.cs#L143-L172

Signed-off-by: Michal Rostecki <vadorovsky@protonmail.com>
@thesamesam
Copy link
Member

Thanks!

@vadorovsky
Copy link
Contributor Author

vadorovsky commented Nov 12, 2024

I think you merged too fast, it was still red :( I took a little break, but I was meaning to investigate and fix the error.

@thesamesam
Copy link
Member

Ah, sorry. I figured I'd merge it given it was clearly better than before. I'll be more patient next time.

@thesamesam
Copy link
Member

Please also use draft to indicate when it's not ready to merge.

@vadorovsky
Copy link
Contributor Author

Good call, I will keep my PRs as drafts before they become green - at least for all my current work.

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.

2 participants