mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
Refactor build scripts
This commit is contained in:
15
scripts/tar-images
Executable file
15
scripts/tar-images
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
mkdir -p build
|
||||
|
||||
IMAGES=$(bin/host_ros c images -i build/os-config.yml)
|
||||
for i in $IMAGES; do
|
||||
if [ "${FORCE_PULL}" = "1" ] || ! docker inspect $i >/dev/null 2>&1; then
|
||||
docker pull $i
|
||||
fi
|
||||
done
|
||||
|
||||
docker save ${IMAGES} > build/images.tar
|
Reference in New Issue
Block a user