mirror of
https://github.com/rancher/os.git
synced 2025-06-23 13:37:03 +00:00
Currently, for amd64 (the default) and arm. Run `dapper make ARCH=arm rootfs` to build rootfs.tar.gz for arm.
16 lines
342 B
Bash
Executable File
16 lines
342 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
suffix=""
|
|
[ "$ARCH" == "amd64" ] || suffix="_${ARCH}"
|
|
|
|
cd $(dirname $0)/..
|
|
. scripts/build-common
|
|
|
|
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 ${images} > ${BUILD}/images.tar
|