Open
Description
Contributing guidelines
- I've read the contributing guidelines and wholeheartedly agree
I've found a bug, and:
- The documentation does not mention anything about my problem
- There are no open or closed issues that are related to my problem
Description
I'm trying to build this Dockerfile
which runs bazel. This works under linux/amd64
on GitHub Actions, but using this action to emulate arm64
I get the following error message:
439.5 Opening zip "/proc/self/exe": lseek(): Bad file descriptor
439.5 FATAL: Failed to open '/proc/self/exe' as a zip file: (error: 9): Bad file descriptor
Expected behaviour
Container builds successfully
Actual behaviour
Build fails with the error message:
439.5 Opening zip "/proc/self/exe": lseek(): Bad file descriptor
439.5 FATAL: Failed to open '/proc/self/exe' as a zip file: (error: 9): Bad file descriptor
Repository URL
https://github.com/JamieMagee/sorbet-build-image-builder
Workflow run URL
YAML workflow
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: 'sorbet/sorbet-build-image'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.ref == 'refs/heads/main' && true || false }}
tags: ghcr.io/jamiemagee/sorbet-build-image:latest
cache-from: type=gha
cache-to: type=gha,mode=max
Workflow logs
BuildKit logs
No response
Additional info
Related: bazelbuild/bazel#11379