mirror of
https://github.com/hassio-addons/addon-home-panel.git
synced 2025-05-06 11:51:29 +00:00
Update Home Panel to v2.9.1
Restructure and use new method to get app
This commit is contained in:
parent
0934bb3723
commit
11cfd3e5b0
3 changed files with 7 additions and 16 deletions
|
@ -9,30 +9,21 @@ COPY rootfs /
|
||||||
# hadolint ignore=DL3003
|
# hadolint ignore=DL3003
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache --virtual .build-dependencies \
|
apk add --no-cache --virtual .build-dependencies \
|
||||||
git=2.26.2-r0 \
|
|
||||||
tar=1.32-r1 \
|
tar=1.32-r1 \
|
||||||
\
|
\
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
nginx=1.18.0-r0 \
|
nginx=1.18.0-r0 \
|
||||||
nodejs-current=14.3.0-r0 \
|
nodejs-current=14.3.0-r0 \
|
||||||
openssl=1.1.1g-r0 \
|
openssl=1.1.1g-r0 \
|
||||||
yarn=1.19.2-r0 \
|
yarn=1.22.4-r0 \
|
||||||
\
|
\
|
||||||
&& git clone --branch "v2.9.1" --depth=1 \
|
&& mkdir -p /opt/panel \
|
||||||
"https://github.com/timmo001/home-panel.git" /tmp/api \
|
&& curl -L -s "https://github.com/timmo001/home-panel/releases/download/v2.9.6/home-panel.tar.gz" \
|
||||||
&& mv /tmp/api/api /opt/panel \
|
| tar zxvf - -C /opt/panel \
|
||||||
\
|
|
||||||
&& mkdir -p /tmp/panel \
|
|
||||||
&& curl -J -L -o /tmp/panel.zip \
|
|
||||||
"https://github.com/timmo001/home-panel/releases/download/v2.9.1/home-panel-built.zip" \
|
|
||||||
&& unzip -d /tmp/panel /tmp/panel.zip \
|
|
||||||
&& mv /tmp/panel/build/* /opt/panel/public \
|
|
||||||
\
|
\
|
||||||
&& cd /opt/panel \
|
&& cd /opt/panel \
|
||||||
&& yarn install \
|
&& yarn install \
|
||||||
&& yarn compile \
|
|
||||||
\
|
\
|
||||||
&& yarn cache clean \
|
|
||||||
&& apk del --purge .build-dependencies \
|
&& apk del --purge .build-dependencies \
|
||||||
&& rm -fr /tmp/*
|
&& rm -fr /tmp/*
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,8 @@ key=$(cat /data/secret.txt)
|
||||||
|
|
||||||
# Set secret to persistent secret file
|
# Set secret to persistent secret file
|
||||||
bashio::log.info "Update secret in config"
|
bashio::log.info "Update secret in config"
|
||||||
sed -i "s#API_AUTH_SECRET#${key}#g" /opt/panel/config/default.json
|
sed -i "s#API_AUTH_SECRET#${key}#g" /opt/panel/backend/config/default.json
|
||||||
|
|
||||||
# Set database to /data
|
# Set database to /data
|
||||||
bashio::log.info "Update database path in config"
|
bashio::log.info "Update database path in config"
|
||||||
sed -i "s#../db#/data#g" /opt/panel/config/default.json
|
sed -i "s#../db#/data#g" /opt/panel/backend/config/default.json
|
||||||
|
|
|
@ -12,4 +12,4 @@ SUPPRESS_URL="true"
|
||||||
|
|
||||||
export SUPPRESS_URL
|
export SUPPRESS_URL
|
||||||
|
|
||||||
exec node lib/
|
exec yarn run start-precompiled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue