From d77765748a1b320206b663f2db7f2334f308bfa5 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Fri, 16 Nov 2018 18:27:57 +0100 Subject: [PATCH] Force container creation in tools/kernel-factory/bootstrap.sh --- tools/kernel-factory/bootstrap.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/kernel-factory/bootstrap.sh b/tools/kernel-factory/bootstrap.sh index e729017..b0ccbe6 100755 --- a/tools/kernel-factory/bootstrap.sh +++ b/tools/kernel-factory/bootstrap.sh @@ -1,9 +1,10 @@ -#!/bin/sh -mkdir output +#!/bin/sh -eux +mkdir -p output echo > output/kernels.toml find | grep Docker | sed 's/Dockerfile//' | while read DOCKER; do CONTAINER_NAME=$(echo $DOCKER | sed -e 's;/;;g' -e 's;\.;;g' -e 's;\(.*\);\L\1;') docker build -t ${CONTAINER_NAME} ${DOCKER} + docker run ${CONTAINER_NAME} bash -c 'ls /boot' CONTAINER_ID=$(docker ps -a | grep ${CONTAINER_NAME} | awk '{print $1}' | head -n 1) docker cp ${CONTAINER_ID}:/boot/. output/ DISTRO_NAME=$(echo $DOCKER | cut -d '/' -f 2)