uci-docker-build/Dockerfile.d/core.tpl

33 lines
862 B
Smarty

#!/bin/sh
%
if [ "$REBUILD" = "core" ]; then
echo "# Busting Cache, Forcing Rebuild starting at core RUN "
echo # $(date)
fi
%
if ! { [ "$VERBOSE" = "core" ] || [ "$VERBOSE" = "all" ]; }; then unset VERBOSE; fi
echo "**************************************"
echo "****** Building UCI Image Core ******"
echo copying core rootfs to image
/bin/cp -R -f -p rootfs/. /
. /opt/lib/verbose.lib
quiet echo core build directory
quiet pwd
quiet ls -la
quiet echo "--------------------------------------"
. /opt/lib/distro.lib
if validate_distro; then
echo distro $LINUX_DISTRO was validated...continuing
set_distro
/bin/sh ./packages.sh
/bin/bash -l ./core.sh
echo
echo "************* End UCI CORE build ********************"
else
echo !!! FATAL ERROR: distro of base image $BASE_IMAGE does not match linux distro $LINUX_DISTRO !!!
exit 1
fi