move hosts and cert update to run
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN cat /etc/hosts
|
|
||||||
|
|
||||||
RUN apk update
|
RUN apk update
|
||||||
RUN apk upgrade
|
RUN apk upgrade
|
||||||
RUN apk add --no-cache ca-certificates
|
RUN apk add --no-cache ca-certificates
|
||||||
@@ -32,11 +30,8 @@ RUN apk add ffmpeg
|
|||||||
RUN apk add vlc
|
RUN apk add vlc
|
||||||
RUN sed -i 's/geteuid/getppid/' /usr/bin/vlc
|
RUN sed -i 's/geteuid/getppid/' /usr/bin/vlc
|
||||||
|
|
||||||
# Add SSL certs for lazystream
|
# Add GNUtls so we can update certs
|
||||||
RUN apk add --no-cache gnutls-utils
|
RUN apk add --no-cache gnutls-utils
|
||||||
RUN printf 'y\n' | gnutls-cli --tofu playback.svcs.mlb.com:443
|
|
||||||
RUN printf 'y\n' | gnutls-cli --tofu mf.svc.nhl.com:443
|
|
||||||
RUN printf 'y\n' | gnutls-cli --tofu mlb-ws-mf.media.mlb.com:443
|
|
||||||
|
|
||||||
# Add xTeve and guide2go
|
# Add xTeve and guide2go
|
||||||
RUN wget https://github.com/xteve-project/xTeVe-Downloads/raw/master/xteve_linux_amd64.zip -O temp.zip; unzip temp.zip -d /usr/bin/; rm temp.zip
|
RUN wget https://github.com/xteve-project/xTeVe-Downloads/raw/master/xteve_linux_amd64.zip -O temp.zip; unzip temp.zip -d /usr/bin/; rm temp.zip
|
||||||
|
|||||||
5
build.sh
5
build.sh
@@ -1,9 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export IP=$(getent ahostsv4 freegamez.ga | awk '{ print $1 }' | head -1)
|
|
||||||
|
|
||||||
docker build -t taylorbourne/xteve_lazystream \
|
docker build -t taylorbourne/xteve_lazystream \
|
||||||
--add-host="mf.svc.nhl.com:$IP" \
|
|
||||||
--add-host="playback.svcs.mlb.com:$IP" \
|
|
||||||
--add-host="mlb-ws-mf.media.mlb.com:$IP" \
|
|
||||||
.
|
.
|
||||||
|
|||||||
@@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
crond -l 2
|
crond -l 2
|
||||||
|
|
||||||
|
|
||||||
|
# Update certs
|
||||||
|
rm /root/.gnutls/known_hosts
|
||||||
|
printf 'y\n' | gnutls-cli --tofu playback.svcs.mlb.com:443
|
||||||
|
printf 'y\n' | gnutls-cli --tofu mf.svc.nhl.com:443
|
||||||
|
printf 'y\n' | gnutls-cli --tofu mlb-ws-mf.media.mlb.com:443
|
||||||
|
cat /root/.gnutls/known_hosts
|
||||||
|
|
||||||
CRONJOB_FILE=/config/cronjob.sh
|
CRONJOB_FILE=/config/cronjob.sh
|
||||||
|
|
||||||
if [ -f "$CRONJOB_FILE" ]; then
|
if [ -f "$CRONJOB_FILE" ]; then
|
||||||
|
|||||||
18
run.sh
Executable file
18
run.sh
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export IP=$(getent ahostsv4 freegamez.ga | awk '{ print $1 }' | head -1)
|
||||||
|
|
||||||
|
docker run -d \
|
||||||
|
--name=xteve_lazystream \
|
||||||
|
--log-opt max-size=10m \
|
||||||
|
--log-opt max-file=3 \
|
||||||
|
-e TZ="America/Los_Angeles" \
|
||||||
|
-v /mnt/user/appdata/xteve/:/root/.xteve:rw \
|
||||||
|
-v /mnt/user/appdata/xteve/_config/:/config:rw \
|
||||||
|
-v /mnt/user/appdata/xteve/_guide2go/:/guide2go:rw \
|
||||||
|
-v /mnt/user/appdata/xteve/playlists/:/playlists:rw \
|
||||||
|
-v /tmp/xteve/:/tmp/xteve:rw \
|
||||||
|
--add-host="mf.svc.nhl.com:$IP" \
|
||||||
|
--add-host="playback.svcs.mlb.com:$IP" \
|
||||||
|
--add-host="mlb-ws-mf.media.mlb.com:$IP" \
|
||||||
|
taylorbourne/xteve_lazystream
|
||||||
Reference in New Issue
Block a user