mirror of
https://github.com/rancher/os.git
synced 2025-08-31 22:32:14 +00:00
move chunks of shell from Makefile into scripts
This commit is contained in:
12
scripts/mk-images-tar.sh
Executable file
12
scripts/mk-images-tar.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
ln -sf bin/rancheros ./ros
|
||||
|
||||
for i in `./ros c images -i os-config.yml`; do
|
||||
[ "${FORCE_PULL}" != "1" ] && docker inspect $i >/dev/null 2>&1 || docker pull $i;
|
||||
done
|
||||
|
||||
docker save `./ros c images -i os-config.yml` > ${INITRD_DIR}/images.tar
|
Reference in New Issue
Block a user