parent
b4da37038d
commit
ee8680810f
11 changed files with 24 additions and 24 deletions
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
Build env for hassio
|
Build env for hassio
|
||||||
|
|
||||||
[HassIO](https://github.com/pvizeli/hassio)
|
[HassIO](https://github.com/homeassistant/hassio)
|
||||||
[HassIO-Addons](https://github.com/pvizeli/hassio-addons)
|
[HassIO-Addons](https://github.com/homeassistant/hassio-addons)
|
||||||
|
|
||||||
# Build Server
|
# Build Server
|
||||||
|
|
||||||
You need a linux with [AUFS](https://docs.docker.com/engine/userguide/storagedriver/aufs-driver/) and docker support. You need to have the build user in docker group for he can run docker. It is not possible to run this process as root! You need also install `jq`
|
You need a linux with [AUFS](https://docs.docker.com/engine/userguide/storagedriver/aufs-driver/) and docker support. You need to have the build user in docker group for he can run docker. It is not possible to run this process as root! You need also install `jq`
|
||||||
|
|
||||||
Builds are published on: https://hub.docker.com/r/pvizeli/
|
Builds are published on: https://hub.docker.com/r/homeassistant/
|
||||||
|
|
||||||
## Build env
|
## Build env
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
BUILD_CONTAINER_NAME=hassio-addons-$$
|
BUILD_CONTAINER_NAME=hassio-addons-$$
|
||||||
DOCKER_REPO=pvizeli
|
DOCKER_REPO=homeassistant
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
echo "[INFO] Cleanup."
|
echo "[INFO] Cleanup."
|
||||||
|
@ -71,7 +71,7 @@ docker run --rm \
|
||||||
-e DOCKER_TAG=$VERSION \
|
-e DOCKER_TAG=$VERSION \
|
||||||
--name $BUILD_CONTAINER_NAME \
|
--name $BUILD_CONTAINER_NAME \
|
||||||
--privileged \
|
--privileged \
|
||||||
pvizeli/docker-build-env \
|
homeassistant/docker-build-env \
|
||||||
/run-docker.sh
|
/run-docker.sh
|
||||||
|
|
||||||
echo "[INFO] cleanup WORKSPACE"
|
echo "[INFO] cleanup WORKSPACE"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -ev
|
set -ev
|
||||||
|
|
||||||
DOCKER_REPO=pvizeli
|
DOCKER_REPO=homeassistant
|
||||||
DOCKER_IMAGE=docker-build-env
|
DOCKER_IMAGE=docker-build-env
|
||||||
|
|
||||||
# Get the absolute script location
|
# Get the absolute script location
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
BUILD_CONTAINER_NAME=hassio-build-$$
|
BUILD_CONTAINER_NAME=hassio-build-$$
|
||||||
DOCKER_REPO=pvizeli
|
DOCKER_REPO=homeassistant
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
echo "[INFO] Cleanup."
|
echo "[INFO] Cleanup."
|
||||||
|
@ -67,7 +67,7 @@ docker run --rm \
|
||||||
-e DOCKER_TAG=$DOCKER_TAG \
|
-e DOCKER_TAG=$DOCKER_TAG \
|
||||||
--name $BUILD_CONTAINER_NAME \
|
--name $BUILD_CONTAINER_NAME \
|
||||||
--privileged \
|
--privileged \
|
||||||
pvizeli/docker-build-env \
|
homeassistant/docker-build-env \
|
||||||
/run-docker.sh
|
/run-docker.sh
|
||||||
|
|
||||||
echo "[INFO] cleanup WORKSPACE"
|
echo "[INFO] cleanup WORKSPACE"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
BUILD_CONTAINER_NAME=homeassistant-build-$$
|
BUILD_CONTAINER_NAME=homeassistant-build-$$
|
||||||
DOCKER_REPO=pvizeli
|
DOCKER_REPO=homeassistant
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
echo "[INFO] Cleanup."
|
echo "[INFO] Cleanup."
|
||||||
|
@ -82,7 +82,7 @@ docker run --rm \
|
||||||
-e DOCKER_TAG=$DOCKER_TAG \
|
-e DOCKER_TAG=$DOCKER_TAG \
|
||||||
--name $BUILD_CONTAINER_NAME \
|
--name $BUILD_CONTAINER_NAME \
|
||||||
--privileged \
|
--privileged \
|
||||||
pvizeli/docker-build-env \
|
homeassistant/docker-build-env \
|
||||||
/run-docker.sh
|
/run-docker.sh
|
||||||
|
|
||||||
echo "[INFO] cleanup WORKSPACE"
|
echo "[INFO] cleanup WORKSPACE"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
BUILD_CONTAINER_NAME=resinhup-build-$$
|
BUILD_CONTAINER_NAME=resinhup-build-$$
|
||||||
DOCKER_REPO=pvizeli
|
DOCKER_REPO=homeassistant
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
echo "[INFO] Cleanup."
|
echo "[INFO] Cleanup."
|
||||||
|
@ -75,7 +75,7 @@ docker run --rm \
|
||||||
-e DOCKER_TAG=$DOCKER_TAG \
|
-e DOCKER_TAG=$DOCKER_TAG \
|
||||||
--name $BUILD_CONTAINER_NAME \
|
--name $BUILD_CONTAINER_NAME \
|
||||||
--privileged \
|
--privileged \
|
||||||
pvizeli/docker-build-env \
|
homeassistant/docker-build-env \
|
||||||
/run-docker.sh
|
/run-docker.sh
|
||||||
|
|
||||||
echo "[INFO] cleanup WORKSPACE"
|
echo "[INFO] cleanup WORKSPACE"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
BUILD_CONTAINER_NAME=yocto-build-$$
|
BUILD_CONTAINER_NAME=yocto-build-$$
|
||||||
DOCKER_REPO=pvizeli
|
DOCKER_REPO=homeassistant
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
echo "[INFO] Cleanup."
|
echo "[INFO] Cleanup."
|
||||||
|
@ -91,7 +91,7 @@ docker run --rm \
|
||||||
-e BUILDER_GID=$(id -g) \
|
-e BUILDER_GID=$(id -g) \
|
||||||
--name $BUILD_CONTAINER_NAME \
|
--name $BUILD_CONTAINER_NAME \
|
||||||
--privileged \
|
--privileged \
|
||||||
pvizeli/yocto-build-env \
|
homeassistant/yocto-build-env \
|
||||||
/run-resinos.sh \
|
/run-resinos.sh \
|
||||||
--log \
|
--log \
|
||||||
--machine "$MACHINE" \
|
--machine "$MACHINE" \
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -ev
|
set -ev
|
||||||
|
|
||||||
DOCKER_REPO=pvizeli
|
DOCKER_REPO=homeassistant
|
||||||
DOCKER_IMAGE=yocto-build-env
|
DOCKER_IMAGE=yocto-build-env
|
||||||
|
|
||||||
# Get the absolute script location
|
# Get the absolute script location
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
DOCKER_REPO=pvizeli
|
DOCKER_REPO=homeassistant
|
||||||
URL_VERSION="https://raw.githubusercontent.com/home-assistant/hassio/master/version.json"
|
URL_VERSION="https://raw.githubusercontent.com/home-assistant/hassio/master/version.json"
|
||||||
URL_START_HASSIO="https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/misc/hassio-start"
|
URL_START_HASSIO="https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/misc/hassio-start"
|
||||||
URL_GENERIC_HC="https://raw.githubusercontent.com/home-assistant/hassio-build/master/generic-hc"
|
URL_GENERIC_HC="https://raw.githubusercontent.com/home-assistant/hassio-build/master/generic-hc"
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||||
|
|
||||||
SUPERVISOR_REPOSITORY_armv5 = "pvizeli/armhf-hassio-supervisor"
|
SUPERVISOR_REPOSITORY_armv5 = "homeassistant/armhf-hassio-supervisor"
|
||||||
SUPERVISOR_REPOSITORY_armv6 = "pvizeli/armhf-hassio-supervisor"
|
SUPERVISOR_REPOSITORY_armv6 = "homeassistant/armhf-hassio-supervisor"
|
||||||
SUPERVISOR_REPOSITORY_armv7a = "pvizeli/armhf-hassio-supervisor"
|
SUPERVISOR_REPOSITORY_armv7a = "homeassistant/armhf-hassio-supervisor"
|
||||||
SUPERVISOR_REPOSITORY_armv7ve = "pvizeli/armhf-hassio-supervisor"
|
SUPERVISOR_REPOSITORY_armv7ve = "homeassistant/armhf-hassio-supervisor"
|
||||||
SUPERVISOR_REPOSITORY_aarch64 = "pvizeli/aarch64-hassio-supervisor"
|
SUPERVISOR_REPOSITORY_aarch64 = "homeassistant/aarch64-hassio-supervisor"
|
||||||
SUPERVISOR_REPOSITORY_x86 = "pvizeli/i386-hassio-supervisor"
|
SUPERVISOR_REPOSITORY_x86 = "homeassistant/i386-hassio-supervisor"
|
||||||
SUPERVISOR_REPOSITORY_x86-64 = "pvizeli/amd64-hassio-supervisor"
|
SUPERVISOR_REPOSITORY_x86-64 = "homeassistant/amd64-hassio-supervisor"
|
||||||
|
|
||||||
SUPERVISOR_TAG = "${HASSIO_SUPERVISOR_TAG}"
|
SUPERVISOR_TAG = "${HASSIO_SUPERVISOR_TAG}"
|
||||||
TARGET_REPOSITORY = "${SUPERVISOR_REPOSITORY}"
|
TARGET_REPOSITORY = "${SUPERVISOR_REPOSITORY}"
|
||||||
|
|
|
@ -7,7 +7,7 @@ LOGFILE=/tmp/`basename "$0"`.log
|
||||||
LOG=yes
|
LOG=yes
|
||||||
ONLY_SUPERVISOR=no
|
ONLY_SUPERVISOR=no
|
||||||
NOREBOOT=no
|
NOREBOOT=no
|
||||||
DOCKER_REPO=pvizeli
|
DOCKER_REPO=homeassistant
|
||||||
|
|
||||||
# Don't run anything before this source as it sets PATH here
|
# Don't run anything before this source as it sets PATH here
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue