- added example docker-compose for minisrv + webone
- update: wtv-home:/home: reduce size of title to fit longer version numbers
This commit is contained in:
zefie
2021-08-05 18:27:39 -04:00
parent 2fced1be8d
commit 832a20e9a6
8 changed files with 72 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
version: '3'
services:
webone:
build: ./webone
restart: unless-stopped
stop_signal: SIGKILL
volumes:
- /home/zefie/docker/wtvminisrv/webone.conf:/etc/webone.conf:ro
- /home/zefie/docker/wtvminisrv/webone.conf.d/:/etc/webone.conf.d/:ro
minisrv:
build: ./minisrv
restart: unless-stopped
links:
- webone
ports:
- "1600-1699:1600-1699"
volumes:
- /home/zefie/docker/wtvminisrv/user_config.json:/opt/minisrv/zefie_wtvp_minisrv/user_config.json:ro
- /home/zefie/docker/wtvminisrv/UserServiceVault:/opt/minisrv/zefie_wtvp_minisrv/UserServiceVault

View File

@@ -0,0 +1,11 @@
FROM alpine:latest
RUN apk add git nodejs npm
RUN cd /opt && git clone --depth=1 https://github.com/zefie/zefie_wtvp_minisrv.git minisrv
RUN cd /opt/minisrv/zefie_wtvp_minisrv && npm install
COPY ./run.sh /opt/minisrv/zefie_wtvp_minisrv/run.sh
RUN chmod +x /opt/minisrv/zefie_wtvp_minisrv/run.sh
WORKDIR /opt/minisrv/zefie_wtvp_minisrv
CMD ./run.sh

View File

@@ -0,0 +1,3 @@
#!/bin/sh
git pull
node app.js

View File

@@ -0,0 +1,13 @@
FROM debian:latest
RUN apt-get update && apt-get install --yes curl && \
curl -L https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -o /tmp/packages-microsoft-prod.deb && \
apt-get install --yes /tmp/packages-microsoft-prod.deb && \
rm /tmp/packages-microsoft-prod.deb && \
apt-get update && \
apt-get install --yes curl imagemagick ffmpeg jpegoptim
COPY ./setup.sh /tmp/setup.sh
RUN bash /tmp/setup.sh
CMD /usr/local/bin/webone

View File

@@ -0,0 +1,21 @@
#!/bin/bash
get_latest_release() {
curl --silent "https://api.github.com/repos/$1/releases/latest"
}
debfile=$(get_latest_release atauenis/webone | \
grep "browser_download_url" | \
grep "amd64" | \
grep "deb" | \
sed -E 's/.*"([^"]+)".*/\1/')
if [ ! -z "${debfile}" ]; then
curl --silent -L "${debfile}" -o /tmp/webone.deb
if [ ! -f /bin/systemctl ]; then
# Create dummy systemctl
touch /bin/systemctl
chmod +x /bin/systemctl
fi
apt-get install --yes /tmp/webone.deb
rm /tmp/webone.deb
fi

View File

@@ -24,7 +24,7 @@ function go() {
location.href=document.access.url.value;
}
</script>
<h2>Welcome to `+ z_title + `</h2>
<h3>Welcome to `+ z_title + `</h3>
<b>Encryption Status</b>: ${cryptstatus}<br>
<b>Connection Speed</b>: &rate;
<p>

View File

@@ -1,6 +1,6 @@
{
"name": "zefie_wtvp_minisrv",
"version": "0.9.10",
"version": "0.9.11",
"description": "WebTV Service (WTVP) Emulation Server",
"main": "app.js",
"homepage": "https://github.com/zefie/zefie_wtvp_minisrv",