add VERSION to supervisor

This commit is contained in:
pvizeli 2017-03-20 16:31:54 +01:00
parent e954e2a38c
commit 23b0d11e57
4 changed files with 26 additions and 3 deletions

View 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

View File

@ -47,7 +47,10 @@ echo "[INFO] Setup docker for supervisor"
mkdir -p $BUILD_DIR
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
echo "[INFO] start docker build"

View File

@ -4,5 +4,7 @@ BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "hassio"
BBFILE_PATTERN_hassio := "^${LAYERDIR}/"
LAYERDEPENDS_hassio := "resin-common"
BBFILE_PATTERN_hassio = "^${LAYERDIR}/"
LAYERVERSION_hassio = "1"
LAYERDEPENDS_hassio = "resin-common"

View File

@ -1,5 +1,8 @@
FROM %%BASE_IMAGE%%
# Add version
ENV VERSION %%SUPERVISOR_TAG%%
# remove several traces of python
RUN apk del --no-cache python*