1
0
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:
Ivan Mikushin
2016-01-15 18:18:30 +05:00
parent 3a0aebe738
commit 2f27271a2c
18 changed files with 531 additions and 73 deletions

View File

@@ -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