-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propose an alternative process for multi-arch images.
- Loading branch information
1 parent
b812544
commit 3c94f9f
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
ARCH="${ARCH:-linux/arm64}" | ||
DISTRO="${DISTRO:-ubuntu}" | ||
CODENAME="${CODENAME:-jammy}" | ||
QEMU_STATIC_BIN="${QEMU_STATIC_BIN:-qemu-aarch64-static}" | ||
|
||
cat > "${DISTRO}-${CODENAME}-${ARCH#linux/}.dockerfile" <<DOCKERFILE | ||
FROM --platform="$ARCH" $DISTRO:$CODENAME | ||
ADD $QEMU_STATIC_BIN /usr/bin/$QEMU_STATIC_BIN | ||
DOCKERFILE |