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

Add support for Docker aliases #493

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stanhu
Copy link
Contributor

@stanhu stanhu commented Jan 16, 2025

rake-compiler-dock now makes a clear distinction between GNU and Musl builds:
https://github.com/rake-compiler/rake-compiler-dock?tab=readme-ov-file#linux-gnu-and-musl-important-details

This change makes it possible to build images using the explicit aarch64-linux-gnu and x86_64-linux-gnu targets needed by rake-compiler-dock.

@stanhu stanhu marked this pull request as draft January 16, 2025 18:49
@stanhu stanhu force-pushed the sh-alias-gnu-builds branch from 86a6068 to 7b8dfb3 Compare January 16, 2025 20:50
- ruby_target: x64-mingw32
- ruby_target: x64-mingw-ucrt
# - ruby_target: x86-linux
toolchain: ${{ fromJSON(needs.fetch_ci_data.outputs.toolchains-data) }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will include x86-linux again; do we want to omit it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

if it builds, i'm ok with it! there was an issue before breaking builds :/

@stanhu stanhu force-pushed the sh-alias-gnu-builds branch 4 times, most recently from 68ba67e to 1fd942d Compare January 16, 2025 22:18
@stanhu stanhu marked this pull request as ready for review January 16, 2025 22:21
@stanhu
Copy link
Contributor Author

stanhu commented Jan 16, 2025

I think this is working, though https://github.com/oxidize-rb/rb-sys/actions/runs/12818599166/job/35744460713?pr=494 is failing because the tag has a leading /. I'm not sure why; that probably is an artifact of my test build. It seems in the working builds, I see***/ instead.

@stanhu stanhu requested a review from ianks January 16, 2025 22:22
.github/workflows/docker.yml Outdated Show resolved Hide resolved
@stanhu stanhu marked this pull request as draft January 16, 2025 22:44
@stanhu stanhu force-pushed the sh-alias-gnu-builds branch 2 times, most recently from 51be4be to ddbeb51 Compare January 16, 2025 22:53
@stanhu stanhu marked this pull request as ready for review January 16, 2025 22:54
rake-compiler-dock now makes a clear distinction between GNU and Musl
builds:
https://github.com/rake-compiler/rake-compiler-dock?tab=readme-ov-file#linux-gnu-and-musl-important-details

This change makes it possible to build images using the explicit
aarch64-linux-gnu and x86_64-linux-gnu targets needed by
rake-compiler-dock.
@stanhu stanhu force-pushed the sh-alias-gnu-builds branch from ddbeb51 to 8b61115 Compare January 16, 2025 22:55
@stanhu
Copy link
Contributor Author

stanhu commented Jan 16, 2025

In https://github.com/oxidize-rb/rb-sys/actions/runs/12819077576/job/35745982383?pr=494, you can see the aarch64-linux aliases:

Run docker/build-push-action@v6
  with:
    builder: builder-1503a5e7-484e-44a4-9b6d-97db6304e621
    context: ./docker
    file: ./docker/Dockerfile.aarch64-linux
    platforms: linux/amd64
    load: true
    tags: /aarch64-linux:pr-494
  /aarch64-linux:sha-7a3717b98d71408bd827408b535d76240a36ac62
  /aarch64-linux-gnu:pr-494
  /aarch64-linux-gnu:sha-7a3717b98d71408bd827408b535d76240a36ac62
  /aarch64-unknown-linux-gnu:pr-494
  /aarch64-unknown-linux-gnu:sha-7a3717b98d71408bd827408b535d76240a36ac62

In https://github.com/oxidize-rb/rb-sys/actions/runs/12819077576/job/35745984135?pr=494, you can see the x86_64-linux aliases:

Run docker/build-push-action@v6
  with:
    builder: builder-50dab0ec-b470-43c1-b718-5e0a2ad651c0
    context: ./docker
    file: ./docker/Dockerfile.x86_64-linux
    platforms: linux/amd64
    load: true
    tags: /x86_64-linux:pr-494
  /x86_64-linux:sha-7a3717b98d71408bd827408b535d76240a36ac62
  /x86_64-linux-gnu:pr-494
  /x86_64-linux-gnu:sha-7a3717b98d71408bd827408b535d76240a36ac62
  /x86_64-unknown-linux-gnu:pr-494
  /x86_64-unknown-linux-gnu:sha-7a3717b98d71408bd827408b535d76240a36ac62

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