mirror of
https://github.com/rancher/os.git
synced 2025-09-12 13:17:17 +00:00
Multi-arch build
Currently, for amd64 (the default) and arm. Run `dapper make ARCH=arm rootfs` to build rootfs.tar.gz for arm.
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
suffix=""
|
||||
[ "$ARCH" == "amd64" ] || suffix="_${ARCH}"
|
||||
|
||||
cd $(dirname $0)/..
|
||||
. scripts/build-common
|
||||
|
||||
ln -sf bin/rancheros ./ros
|
||||
|
||||
for i in `./ros c images -i os-config.yml`; do
|
||||
images="$(build/host_ros c images -i os-config${suffix}.yml)"
|
||||
for i in ${images}; do
|
||||
[ "${FORCE_PULL}" != "1" ] && docker inspect $i >/dev/null 2>&1 || docker pull $i;
|
||||
done
|
||||
|
||||
docker save `./ros c images -i os-config.yml` > ${BUILD}/images.tar
|
||||
docker save ${images} > ${BUILD}/images.tar
|
||||
|
Reference in New Issue
Block a user