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: Create a multiplatform docker image using docker buildx features #160

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

ADKaster
Copy link
Contributor

@ADKaster ADKaster commented Feb 9, 2024

Per the Docker documentation [1], setup a github actions workflow to create both an amd64 and an arm64 image.

This can be tested locally like so:

  • Create a docker-container builder that will use qemu-static-user

docker buildx create --name container --driver=docker-container --use

  • Run the build using docker buildx with that new 'builder'
docker buildx build --builder=container \
    --platform linux/amd64,linux/arm64 .

Also update the actions to their latest revs.

[1] https://docs.docker.com/build/ci/github-actions/multi-platform/

Per the Docker documentation [1], setup a github actions workflow to
create both an amd64 and an arm64 image.

This can be tested locally like so:

- Create a docker-container builder that will use qemu-static-user

`docker buildx create --name container --driver=docker-container --use`

- Run the build using docker buildx with that new 'builder'

```
docker buildx build --builder=container \
    --platform linux/amd64,linux/arm64 .
```

Also update the actions to their latest revs.

[1] https://docs.docker.com/build/ci/github-actions/multi-platform/
@ADKaster
Copy link
Contributor Author

ADKaster commented Feb 9, 2024

@domenic This is the 'cross-platform docker' stuff that you mentioned should be possible in whatwg/html-build#270. :)

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

Seems cool; let's try it!!

@domenic domenic merged commit 4573a3b into whatwg:main Feb 13, 2024
1 check passed
@domenic
Copy link
Member

domenic commented Feb 13, 2024

Looks like there are no arm64 Free Pascal compilers on apt, reverting... https://github.com/whatwg/wattsi/actions/runs/7881501670/job/21505226309#step:6:242

@ADKaster
Copy link
Contributor Author

Ah that's disappointing. Guess this needs a package bug for the Debian folks

@ADKaster
Copy link
Contributor Author

Actually, I was able to build everything locally. That error looks like an intermittent network issue between GitHub Actions and Debian's apt servers. 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants