Rebase to 3.19

This commit is contained in:
TheSpad 2023-12-12 21:05:25 +00:00
parent facae56a91
commit 46e43f02b2
No known key found for this signature in database
GPG Key ID: 08F06191F4587860
6 changed files with 26 additions and 19 deletions

View File

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:3.17
FROM ghcr.io/linuxserver/baseimage-alpine:3.19
# set version label
ARG BUILD_DATE
@ -15,11 +15,12 @@ RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \
nodejs \
npm \
openssl && \
apk add --no-cache --upgrade --virtual=build-dependencies \
npm && \
echo "**** install app ****" && \
mkdir -p \
/opt/mstream && \
/app/mstream && \
if [ -z ${MSTREAM_RELEASE+x} ]; then \
MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
@ -29,16 +30,19 @@ RUN \
"https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
tar xzf \
/tmp/mstream.tar.gz -C \
/opt/mstream/ --strip-components=1 && \
cd /opt/mstream && \
/app/mstream/ --strip-components=1 && \
cd /app/mstream && \
chown -R abc:abc ./ && \
su -s /bin/sh abc -c 'HOME=/tmp npm install --omit=dev' && \
npm link && \
echo "**** cleanup ****" && \
rm -rf /opt/mstream/save/sync && \
ln -s /config/sync /opt/mstream/save/sync && \
rm -rf /app/mstream/save/sync && \
ln -s /config/sync /app/mstream/save/sync && \
apk del --purge \
build-dependencies && \
rm -rf \
$HOME/.cache \
$HOME/.npm \
/tmp/* \
/tmp/.npm

View File

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.17
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19
# set version label
ARG BUILD_DATE
@ -15,11 +15,12 @@ RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \
nodejs \
npm \
openssl && \
apk add --no-cache --upgrade --virtual=build-dependencies \
npm && \
echo "**** install app ****" && \
mkdir -p \
/opt/mstream && \
/app/mstream && \
if [ -z ${MSTREAM_RELEASE+x} ]; then \
MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
@ -29,16 +30,19 @@ RUN \
"https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
tar xzf \
/tmp/mstream.tar.gz -C \
/opt/mstream/ --strip-components=1 && \
cd /opt/mstream && \
/app/mstream/ --strip-components=1 && \
cd /app/mstream && \
chown -R abc:abc ./ && \
su -s /bin/sh abc -c 'HOME=/tmp npm install --omit=dev' && \
npm link && \
echo "**** cleanup ****" && \
rm -rf /opt/mstream/save/sync && \
ln -s /config/sync /opt/mstream/save/sync && \
rm -rf /app/mstream/save/sync && \
ln -s /config/sync /app/mstream/save/sync && \
apk del --purge \
build-dependencies && \
rm -rf \
$HOME/.cache \
$HOME/.npm \
/tmp/* \
/tmp/.npm

View File

@ -297,6 +297,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **12.12.23:** - Rebase to Alpine 3.19, move binaries to /app.
* **05.07.23:** - Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)
* **13.02.23:** - Rebase to Alpine 3.17, migrate to s6v3.
* **05.04.22:** - Move `sync` folder to `/config`.

View File

@ -17,9 +17,6 @@ param_volumes:
param_usage_include_ports: true
param_ports:
- {external_port: "3000", internal_port: "3000", port_desc: "The port for the mStream webinterface"}
param_usage_include_env: true
param_env_vars:
- {env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use e.g. Europe/London"}
# application setup block
app_setup_block_enabled: true
app_setup_block: |
@ -33,6 +30,7 @@ app_setup_block: |
v4's `config.json` is not compatible with v5. Existing `config.json` will be renamed to `config.json.v4-bak` for your reference and a new default `config.json` will be created upon upgrade from v4 to v5.
# changelog
changelogs:
- {date: "12.12.23:", desc: "Rebase to Alpine 3.19, move binaries to /app."}
- {date: "05.07.23:", desc: "Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)"}
- {date: "13.02.23:", desc: "Rebase to Alpine 3.17, migrate to s6v3."}
- {date: "05.04.22:", desc: "Move `sync` folder to `/config`."}

View File

@ -41,4 +41,4 @@ fi
# permissions
lsiown -R abc:abc \
/config \
/opt/mstream/bin
/app/mstream/bin

View File

@ -5,4 +5,4 @@ PORT=$(jq -r '.port' /config/config.json)
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${PORT}" \
cd /opt/mstream s6-setuidgid abc mstream -j /config/config.json
cd /app/mstream s6-setuidgid abc mstream -j /config/config.json