mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 14:46:30 +00:00
fix build scripts
This commit is contained in:
parent
a1122c41bc
commit
e85f40abad
6
build-scripts/hassio-supervisor/create_hassio_supervisor.sh
Normal file → Executable file
6
build-scripts/hassio-supervisor/create_hassio_supervisor.sh
Normal file → Executable file
@ -36,9 +36,9 @@ SCRIPTPATH=`pwd`
|
||||
popd > /dev/null 2>&1
|
||||
|
||||
ARCH=$1
|
||||
BASE_IMAGE=resin/${ARCH}-alpine:3.5
|
||||
BASE_IMAGE="resin\/${ARCH}-alpine:3.5"
|
||||
DOCKER_TAG=$2
|
||||
DOKER_IMAGE=${ARCH}-hassio-supervisor
|
||||
DOCKER_IMAGE=${ARCH}-hassio-supervisor
|
||||
BUILD_DIR=${BUILD_DIR:=$SCRIPTPATH}
|
||||
WORKSPACE=${BUILD_DIR:=$SCRIPTPATH}/hassio-supervisor
|
||||
|
||||
@ -47,7 +47,7 @@ echo "[INFO] Setup docker for supervisor"
|
||||
mkdir -p $BUILD_DIR
|
||||
mkdir -p $WORKSPACE
|
||||
|
||||
sed 's/%%BASE_TEMPLATE%%/$(BASE_IMAGE)/g' ../../supervisor/Dockerfile > $WORKSPACE/Dockerfile
|
||||
sed "s/%%BASE_IMAGE%%/${BASE_IMAGE}/g" ../../supervisor/Dockerfile > $WORKSPACE/Dockerfile
|
||||
|
||||
# Run build
|
||||
echo "[INFO] start docker build"
|
||||
|
Loading…
x
Reference in New Issue
Block a user