1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Build script changes

This commit is contained in:
Darren Shepherd
2015-02-19 11:26:59 -07:00
parent 7c17cc7825
commit 6e87ea3981
11 changed files with 62 additions and 26 deletions

View File

@@ -73,6 +73,9 @@ run()
content="$content\nCOPY $1 /source/"
fi
;;
*)
break
;;
esac
shift 1
@@ -84,16 +87,20 @@ run()
fi
if [ -n "$1" ]; then
echo -e "\nCOPY $1 /source/$1" >> ${DOCKER_FILE}
echo -e "RUN /source/$1" >> ${DOCKER_FILE}
echo -e "RUN /source/"$@"" >> ${DOCKER_FILE}
fi
if [ "$RUN_EXEC" = "true" ]; then
$1
"$@"
fi
}
finish()
{
if [ "$RUN_EXEC" = "true" ]; then
return
fi
local cmd="docker build -t ${DOCKER_IMAGE} -f ${DOCKER_FILE} ."
echo Running $cmd
echo Pwd $(pwd)