1
0
mirror of https://github.com/rancher/os.git synced 2025-06-22 13:07:04 +00:00

rm copy-images

This commit is contained in:
Ivan Mikushin 2015-08-07 23:25:38 +05:00
parent 5079554ac2
commit 32aa3c74a5

View File

@ -1,19 +0,0 @@
#!/bin/bash
set -ex
cd $(dirname $0)/..
. scripts/build-common
. scripts/version
VERSION=${VERSION:?"VERSION not set"}
BUILD=${BUILD:?"BUILD not set"}
CONTAINER_KERNEL=$(docker create rancher/os-kernel:${VERSION})
cleanup_kernel() {
docker rm -v ${CONTAINER_KERNEL}
}
trap cleanup_kernel EXIT
docker cp ${CONTAINER_KERNEL}:/kernel ${BUILD} # copies files to ${BUILD}/kernel