mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-24 19:08:53 +03:00
[PR #993] [MERGED] fix(docker): enable multi-arch builds #1100
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/993
Author: @QuintenQVD0
Created: 2/10/2025
Status: ✅ Merged
Merged: 2/16/2025
Merged by: @rmartinoscar
Base:
main← Head:docker📝 Commits (10+)
fcc99ddfix(docker): enable multi-arch buildsb325a67Merge pull request #2 from QuintenQVD0/docker8235b17Remove workflow_dispatch and add missing space235e113There is no need for a matrix in the job build-and-push74d8510Merge pull request #3 from QuintenQVD0/dockerfbcc6cfUpdate docker-publish.ymlf188f5bOnly keep the artifacts for 7 days6c96020Bump dockerfile labs version to 1.13a5e1c2bAdded a comment in the Dockerfile explaining how to self-build it37a3eccMerge branch 'pelican-dev:main' into docker📊 Changes
3 files changed (+108 additions, -23 deletions)
View changed files
📝
.github/workflows/docker-publish.yml(+83 -8)📝
Dockerfile(+15 -15)➕
Dockerfile.base(+10 -0)📄 Description
Changes & Explanation
Since building PHP on QEMU is very slow, we use
build-php-baseto create ARM64 and AMD64 base images on their respective native runners for faster builds.These images are then exported as workflow artifacts.
In
build-and-push, the two artifacts are downloaded, tagged, and pushed to a temporary registry (explained below).For some reason, even though the images appear in
docker images, they cannot be used directly (see issue). The only way to use them is to push them to a temporary registry running on port5000. Because of this, Docker Buildx must be started inhostmode, otherwise, it cannot access the registry on that port.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.