Restart nginx for ingress on error (#1867)

* Restart nginx for ingress on error

* more output

* Use Alpine for almond

* Fix dockerfile

* Add more library

* link python

* fix link

* python

* fix removes
This commit is contained in:
Pascal Vizeli
2021-02-17 16:32:49 +01:00
committed by GitHub
parent 6e86f1934a
commit 4804b6e349
14 changed files with 52 additions and 73 deletions

View File

@@ -1,5 +1,10 @@
# Changelog # Changelog
## 1.1.0
- Restart nginx service on error
- Use Alpine 3.13
## 1.0.1 ## 1.0.1
- Keep unzip dependency installed - Keep unzip dependency installed

View File

@@ -9,30 +9,29 @@ ENV \
WORKDIR /opt/almond WORKDIR /opt/almond
ARG ALMOND_VERSION ARG ALMOND_VERSION
RUN \ RUN \
apt-get update \ set -x \
&& apt-get install -y --no-install-recommends \ && apk add --no-cache \
build-essential \
git \
gnupg \
nginx \
python-dev \
software-properties-common \
unzip \
\
&& curl -sS https://deb.nodesource.com/gpgkey/nodesource.gpg.key \
| apt-key add - \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg \
| apt-key add - \
&& echo "deb https://deb.nodesource.com/node_12.x buster main" \
> /etc/apt/sources.list.d/nodesource.list \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" \
> /etc/apt/sources.list.d/yarn.list \
\
&& apt-get update \
&& apt-get install -y --no-install-recommends \
nodejs \ nodejs \
npm \
yarn \ yarn \
nginx \
unzip \
blas \
sqlite \
pkgconf \
&& apk add --no-cache --virtual .build-dependencies \
build-base \
blas-dev \
git \
linux-headers \
sqlite-dev \
pkgconf-dev \
python3 \
\
&& npm config set unsafe-perm \
&& ln -s /usr/bin/python3 /usr/bin/python \
\ \
&& git clone -b "${ALMOND_VERSION}" --depth 1 \ && git clone -b "${ALMOND_VERSION}" --depth 1 \
"https://github.com/stanford-oval/almond-server" . \ "https://github.com/stanford-oval/almond-server" . \
@@ -48,23 +47,16 @@ RUN \
&& yarn global remove modclean \ && yarn global remove modclean \
\ \
&& yarn cache clean \ && yarn cache clean \
&& apt-get purge -y --auto-remove \ && apk del --no-cache \
build-essential \ .build-dependencies \
git \ \
gnupg \
python-dev \
software-properties-common \
yarn \
&& rm -rf \ && rm -rf \
/opt/almond/.[!.]* \ /opt/almond/.[!.]* \
/root/.cache \ /root/.cache \
/root/.config \ /root/.config \
/tmp/.[!.]* \ /tmp/.[!.]* \
/tmp/* \ /tmp/* \
/usr/lib/nginx \
/usr/local/share/.cache \ /usr/local/share/.cache \
/usr/local/share/.config \ /usr/local/share/.config
/var/lib/apt/lists/* \
/var/www
COPY rootfs / COPY rootfs /

View File

@@ -1,8 +1,10 @@
{ {
"build_from": { "build_from": {
"aarch64": "homeassistant/aarch64-base-debian:buster", "aarch64": "homeassistant/aarch64-base:3.13",
"amd64": "homeassistant/amd64-base-debian:buster", "amd64": "homeassistant/amd64-base:3.13",
"armv7": "homeassistant/armv7-base-debian:buster" "i386": "homeassistant/i386-base:3.13",
"armv7": "homeassistant/armv7-base:3.13",
"armhf": "homeassistant/armhf-base:3.13"
}, },
"args": { "args": {
"ALMOND_VERSION": "v1.8.0" "ALMOND_VERSION": "v1.8.0"

View File

@@ -1,15 +1,15 @@
{ {
"name": "Almond", "name": "Almond",
"version": "1.0.1", "version": "1.1.0",
"slug": "almond", "slug": "almond",
"description": "The home server version of Almond", "description": "The home server version of Almond",
"url": "https://github.com/home-assistant/hassio-addons/blob/master/almond", "url": "https://github.com/home-assistant/hassio-addons/blob/master/almond",
"arch": ["armv7", "aarch64", "amd64"], "arch": ["armv7", "armhf", "aarch64", "amd64", "i386"],
"init": false, "init": false,
"discovery": ["almond"], "discovery": ["almond"],
"ingress": true, "ingress": true,
"panel_icon": "mdi:comment-eye-outline", "panel_icon": "mdi:comment-eye-outline",
"homeassistant": "0.102.0.dev", "homeassistant": "0.102.0",
"homeassistant_api": true, "homeassistant_api": true,
"options": {}, "options": {},
"schema": {}, "schema": {},

View File

@@ -1,8 +0,0 @@
#!/usr/bin/execlineb -S1
# ==============================================================================
# Take down the S6 supervision tree based on service exit code
# ==============================================================================
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }
s6-svscanctl -t /var/run/s6/services

View File

@@ -1,5 +1,9 @@
# Changelog # Changelog
## 6.7.1
- Restart nginx service on error
## 6.7.0 ## 6.7.0
- Bump deCONZ to 2.9.3 - Bump deCONZ to 2.9.3

View File

@@ -1,6 +1,6 @@
{ {
"name": "deCONZ", "name": "deCONZ",
"version": "6.7.0", "version": "6.7.1",
"slug": "deconz", "slug": "deconz",
"description": "Control a Zigbee network with ConBee or RaspBee by Dresden Elektronik", "description": "Control a Zigbee network with ConBee or RaspBee by Dresden Elektronik",
"arch": ["amd64", "armhf", "aarch64"], "arch": ["amd64", "armhf", "aarch64"],

View File

@@ -1,8 +0,0 @@
#!/usr/bin/execlineb -S1
# ==============================================================================
# Take down the S6 supervision tree based on service exit code
# ==============================================================================
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }
s6-svscanctl -t /var/run/s6/services

View File

@@ -1,5 +1,9 @@
# Changelog # Changelog
## 11.2.1
- Restart nginx service on error
## 11.2.0 ## 11.2.0
- Update OCCU to 3.55.10 - Update OCCU to 3.55.10

View File

@@ -1,6 +1,6 @@
{ {
"name": "HomeMatic CCU", "name": "HomeMatic CCU",
"version": "11.1.0", "version": "11.1.1",
"slug": "homematic", "slug": "homematic",
"description": "HomeMatic central based on OCCU", "description": "HomeMatic central based on OCCU",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/homematic", "url": "https://github.com/home-assistant/hassio-addons/tree/master/homematic",

View File

@@ -1,8 +0,0 @@
#!/usr/bin/execlineb -S1
# ==============================================================================
# Take down the S6 supervision tree based on service exit code
# ==============================================================================
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }
s6-svscanctl -t /var/run/s6/services

View File

@@ -1,5 +1,9 @@
# Changelog # Changelog
## 0.1.1
- Restart nginx service on error
## 0.1.0 ## 0.1.0
- Inital release - Inital release

View File

@@ -1,6 +1,6 @@
{ {
"name": "VLC", "name": "VLC",
"version": "0.1.0", "version": "0.1.1",
"slug": "vlc", "slug": "vlc",
"description": "Turn you device into a Media Player with VLC", "description": "Turn you device into a Media Player with VLC",
"arch": ["amd64", "i386", "armv7", "aarch64"], "arch": ["amd64", "i386", "armv7", "aarch64"],

View File

@@ -1,8 +0,0 @@
#!/usr/bin/execlineb -S1
# ==============================================================================
# Take down the S6 supervision tree based on service exit code
# ==============================================================================
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }
s6-svscanctl -t /var/run/s6/services