1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 22:32:14 +00:00

save the elided cmdline into an env var

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-14 12:05:07 +10:00
parent 368a13ed13
commit 73980f9c73
5 changed files with 74 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ touch dist/images
for i in $BASE/[0-9]*; do
name="os-$(echo ${i} | cut -f2 -d-)"
tag="${OS_REPO}/${name}:${VERSION}${SUFFIX}"
echo Building ${tag}
echo "build-image: Building ${tag}"
if [ -x ${i}/prebuild.sh ]; then
${i}/prebuild.sh
fi
@@ -28,3 +28,5 @@ for i in $BASE/[0-9]*; do
echo "WARN: Skipping ${tag}"
fi
done
echo "build-image: DONE"

View File

@@ -4,10 +4,14 @@ set -e
cd $(dirname $0)/..
IMAGES=$(bin/host_ros c images -i build/initrd/usr/share/ros/os-config.yml)
echo "tar-image: IMAGES=$IMAGES"
for i in $IMAGES; do
echo "tar-image: pull($i)"
if [ "${FORCE_PULL}" = "1" ] || ! docker inspect $i >/dev/null 2>&1; then
docker pull $i
fi
done
echo "tar-images: docker save ${IMAGES} > build/images.tar"
docker save ${IMAGES} > build/images.tar
echo "tar-images: DONE"