-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-add docker multi-platform support
- Loading branch information
Showing
3 changed files
with
79 additions
and
48 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,35 @@ | ||
# Elemental CLI is built in another Dockerfile that support multi-arch | ||
ARG OS_IMAGE=opensuse/leap | ||
ARG OS_VERSION=15.5 | ||
ARG BIN_REPO | ||
ARG VERSION | ||
|
||
FROM ${BIN_REPO}:${VERSION} AS bin | ||
FROM ${OS_IMAGE}:${OS_VERSION} AS elemental-toolkit | ||
|
||
RUN ARCH=$(uname -m); \ | ||
[[ "${ARCH}" == "aarch64" ]] && ARCH="arm64"; \ | ||
zypper install -y --no-recommends xfsprogs \ | ||
parted \ | ||
util-linux-systemd \ | ||
e2fsprogs \ | ||
util-linux \ | ||
udev \ | ||
rsync \ | ||
grub2 \ | ||
dosfstools \ | ||
grub2-${ARCH}-efi \ | ||
squashfs \ | ||
mtools \ | ||
xorriso \ | ||
cosign \ | ||
gptfdisk \ | ||
lvm2 | ||
|
||
# Copy the built CLI | ||
COPY --from=bin /usr/bin/elemental /usr/bin/elemental | ||
ENTRYPOINT ["/usr/bin/elemental"] | ||
|
||
# Add to /system/oem folder so install/upgrade/reset hooks will run when running this container. | ||
# Needed for boot-assessment | ||
COPY pkg/features/embedded/cloud-config-essentials/system/oem /system/oem/ |
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