mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-12 11:46:31 +00:00
add VERSION to supervisor
This commit is contained in:
parent
e954e2a38c
commit
23b0d11e57
15
build-scripts/hassio-supervisor/create_all.sh
Normal file
15
build-scripts/hassio-supervisor/create_all.sh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Sanity checks
|
||||||
|
if [ "$#" -ne 1 ]; then
|
||||||
|
echo "Usage: create_all.sh <TAG>|NONE"
|
||||||
|
echo "Optional environment: BUILD_DIR"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
for arch in "armhf" "aarch64" "i386" "amd64"
|
||||||
|
do
|
||||||
|
./create_hassio_supervisor.sh $arch $1
|
||||||
|
done
|
@ -47,7 +47,10 @@ echo "[INFO] Setup docker for supervisor"
|
|||||||
mkdir -p $BUILD_DIR
|
mkdir -p $BUILD_DIR
|
||||||
mkdir -p $WORKSPACE
|
mkdir -p $WORKSPACE
|
||||||
|
|
||||||
sed "s/%%BASE_IMAGE%%/${BASE_IMAGE}/g" ../../supervisor/Dockerfile > $WORKSPACE/Dockerfile
|
|
||||||
|
cp ../../supervisor/Dockerfile $WORKSPACE/Dockerfile
|
||||||
|
sed -i "s/%%BASE_IMAGE%%/${BASE_IMAGE}/g" $WORKSPACE/Dockerfile
|
||||||
|
sed -i "s/%%SUPERVISOR_TAG%%/${DOCKER_TAG}/g" $WORKSPACE/Dockerfile
|
||||||
|
|
||||||
# Run build
|
# Run build
|
||||||
echo "[INFO] start docker build"
|
echo "[INFO] start docker build"
|
||||||
|
@ -4,5 +4,7 @@ BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
|||||||
${LAYERDIR}/recipes-*/*/*.bbappend"
|
${LAYERDIR}/recipes-*/*/*.bbappend"
|
||||||
|
|
||||||
BBFILE_COLLECTIONS += "hassio"
|
BBFILE_COLLECTIONS += "hassio"
|
||||||
BBFILE_PATTERN_hassio := "^${LAYERDIR}/"
|
BBFILE_PATTERN_hassio = "^${LAYERDIR}/"
|
||||||
LAYERDEPENDS_hassio := "resin-common"
|
|
||||||
|
LAYERVERSION_hassio = "1"
|
||||||
|
LAYERDEPENDS_hassio = "resin-common"
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
FROM %%BASE_IMAGE%%
|
FROM %%BASE_IMAGE%%
|
||||||
|
|
||||||
|
# Add version
|
||||||
|
ENV VERSION %%SUPERVISOR_TAG%%
|
||||||
|
|
||||||
# remove several traces of python
|
# remove several traces of python
|
||||||
RUN apk del --no-cache python*
|
RUN apk del --no-cache python*
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user