Skip to content

Commit 78c5453

Browse files
authored
Wait longer and update to latest acestream engine (#45)
1 parent f1755b5 commit 78c5453

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

Ace Link/Services/StreamPeers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private struct GetStatsResponse: Decodable {
1414
class StreamPeers: Service {
1515
let statURL: URL
1616

17-
override var maxWait: DispatchTimeInterval { DispatchTimeInterval.seconds(30) }
17+
override var maxWait: DispatchTimeInterval { DispatchTimeInterval.seconds(90) }
1818
override var defaultError: String { "Stream does not have peers." }
1919

2020
init(statURL: URL) {

Dockerfile

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# syntax=docker/dockerfile:experimental
2-
FROM ubuntu:16.04
2+
FROM ubuntu:bionic
33

44
# Install system packages
55
RUN set -ex && \
66
apt-get update && \
77
apt-get install -yq --no-install-recommends \
8+
ca-certificates \
89
python2.7 \
910
libpython2.7 \
1011
net-tools \
@@ -19,12 +20,22 @@ RUN set -ex && \
1920
# Install Ace Stream
2021
# https://wiki.acestream.media/Download#Linux
2122
RUN mkdir -p /opt/acestream && \
22-
wget --quiet --output-document acestream.tgz "http://download.acestream.media/linux/acestream_3.1.16_ubuntu_16.04_x86_64.tar.gz" && \
23-
echo "452bccb8ae8b5ff4497bbb796081dcf3fec2b699ba9ce704107556a3d6ad2ad7 acestream.tgz" | sha256sum --check && \
24-
tar --extract --gzip --strip-components 1 --directory /opt/acestream --file acestream.tgz && \
23+
wget --no-verbose --output-document acestream.tgz "https://download.acestream.media/linux/acestream_3.1.49_ubuntu_18.04_x86_64.tar.gz" && \
24+
echo "d2ed7bdc38f6a47c05da730f7f6f600d48385a7455d922a2688f7112202ee19e acestream.tgz" | sha256sum --check && \
25+
tar --extract --gzip --directory /opt/acestream --file acestream.tgz && \
2526
rm -rf acestream.tgz && \
2627
/opt/acestream/start-engine --version
2728

29+
# Acestream 3.1.49 install is missing library files,
30+
# but we can grab these from a previous release.
31+
# http://oldforum.acestream.media/index.php?topic=12448.msg26872
32+
RUN wget --no-verbose --output-document acestream.tgz "https://download.acestream.media/linux/acestream_3.1.16_ubuntu_16.04_x86_64.tar.gz" && \
33+
echo "452bccb8ae8b5ff4497bbb796081dcf3fec2b699ba9ce704107556a3d6ad2ad7 acestream.tgz" | sha256sum --check && \
34+
tar --extract --gzip --strip-components 1 --directory /tmp --file acestream.tgz && \
35+
cp /tmp/lib/acestreamengine/py*.so /opt/acestream/lib/acestreamengine/ && \
36+
cp /tmp/lib/*.so* /usr/lib/x86_64-linux-gnu/ && \
37+
rm -rf tmp/* acestream.tgz
38+
2839
# Overwrite disfunctional Ace Stream web player with a working videojs player,
2940
# Access at http://127.0.0.1:6878/webui/player/<acestream id>
3041
COPY player.html /opt/acestream/data/webui/html/player.html
@@ -38,4 +49,4 @@ ENTRYPOINT ["/opt/acestream/start-engine", "@/opt/acestream/acestream.conf"]
3849
HEALTHCHECK CMD nc -zv localhost 6878 || exit 1
3950

4051
EXPOSE 6878
41-
EXPOSE 8621
52+
EXPOSE 8621

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.0
1+
2.0.1

0 commit comments

Comments
 (0)