mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-06-16 23:16:30 +00:00
Update build script
This commit is contained in:
parent
2e0773bdbc
commit
1b75e982e6
@ -51,6 +51,8 @@ case $MACHINE in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
HASSIO_SUPERVISOR=pvizeli/${ARCH}-hassio-supervisor
|
||||||
|
|
||||||
echo "[INFO] Checkout repository"
|
echo "[INFO] Checkout repository"
|
||||||
mkdir -p $BUILD_DIR
|
mkdir -p $BUILD_DIR
|
||||||
cd $BUILD_DIR && git clone $RESIN_REPO resin-board
|
cd $BUILD_DIR && git clone $RESIN_REPO resin-board
|
||||||
@ -59,10 +61,8 @@ if [ $RESIN_BRANCH != "master" ]; then
|
|||||||
fi
|
fi
|
||||||
cd $WORKSPACE && git submodule update --init --recursive
|
cd $WORKSPACE && git submodule update --init --recursive
|
||||||
|
|
||||||
# When supervisorTag is provided, you the appropiate barys argument
|
# Additional variables
|
||||||
if [ "$supervisorTag" != "" ]; then
|
BARYS_ARGUMENTS_VAR="-a RESIN_CONNECTABLE=0 -a DEVELOPMENT_IMAGE=0 -a $HASSIO_SUPERVISOR"
|
||||||
BARYS_ARGUMENTS_VAR="$BARYS_ARGUMENTS_VAR --supervisor-tag $supervisorTag"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make sure shared directories are in place
|
# Make sure shared directories are in place
|
||||||
mkdir -p $DOWNLOAD_DIR
|
mkdir -p $DOWNLOAD_DIR
|
||||||
|
@ -8,7 +8,7 @@ RUN apk del --no-cache python*
|
|||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
# setup base
|
# setup base
|
||||||
RUN apk add --no-cache python3
|
RUN apk add --no-cache python3 docker
|
||||||
|
|
||||||
# install aiohttp
|
# install aiohttp
|
||||||
RUN pip3 install pip --no-cache --upgrade && pip3 install --no-cache aiohttp
|
RUN pip3 install pip --no-cache --upgrade && pip3 install --no-cache aiohttp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user