mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
a75deb8844
Cross-building a docker image with: $ guix system image --image-type=docker --target=aarch64-linux-gnu os.scm results in an image where the architecture declared in its config.json is the host architecture rather than the target one. The binaries are correctly cross-compiled, so the image can be loaded and used despite the warning message shown by docker: $ docker load -i vcal7bvsqcijchifhqdvprpd1niqh8sk-docker-image.tar.gz Loaded image: guix:latest $ docker create guix:latest WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 40f06aa869ed690489c4a3824a7f7721bd4bf453b85f25ac7199266939fe2fba $ echo $? 0 This is fixed by passing the correct triplet to the build-docker-image function. * gnu/system/image.scm (system-docker-image) Add ‘image-target’ variable. [builder]: Pass ‘#:system’ argument to ‘build-docker-image’. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> |
||
---|---|---|
.. | ||
examples | ||
images | ||
accounts.scm | ||
file-systems.scm | ||
hurd.scm | ||
image.scm | ||
install.scm | ||
keyboard.scm | ||
linux-container.scm | ||
linux-initrd.scm | ||
locale.scm | ||
mapped-devices.scm | ||
nss.scm | ||
pam.scm | ||
setuid.scm | ||
shadow.scm | ||
uuid.scm | ||
vm.scm |