Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Update Home Panel to v2.9.1
Browse files Browse the repository at this point in the history
Restructure and use new method to get app
  • Loading branch information
timmo001 committed Jun 20, 2020
1 parent 0934bb3 commit 11cfd3e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
17 changes: 4 additions & 13 deletions home-panel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,21 @@ COPY rootfs /
# hadolint ignore=DL3003
RUN \
apk add --no-cache --virtual .build-dependencies \
git=2.26.2-r0 \
tar=1.32-r1 \
\
&& apk add --no-cache \
nginx=1.18.0-r0 \
nodejs-current=14.3.0-r0 \
openssl=1.1.1g-r0 \
yarn=1.19.2-r0 \
yarn=1.22.4-r0 \
\
&& git clone --branch "v2.9.1" --depth=1 \
"https://github.com/timmo001/home-panel.git" /tmp/api \
&& mv /tmp/api/api /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 \
&& mkdir -p /opt/panel \
&& curl -L -s "https://github.com/timmo001/home-panel/releases/download/v2.9.6/home-panel.tar.gz" \
| tar zxvf - -C /opt/panel \
\
&& cd /opt/panel \
&& yarn install \
&& yarn compile \
\
&& yarn cache clean \
&& apk del --purge .build-dependencies \
&& rm -fr /tmp/*

Expand Down
4 changes: 2 additions & 2 deletions home-panel/rootfs/etc/cont-init.d/secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ key=$(cat /data/secret.txt)

# Set secret to persistent secret file
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
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
2 changes: 1 addition & 1 deletion home-panel/rootfs/etc/services.d/home-panel/run
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ SUPPRESS_URL="true"

export SUPPRESS_URL

exec node lib/
exec yarn run start-precompiled

0 comments on commit 11cfd3e

Please sign in to comment.