-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
32 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,36 @@ | ||
# syntax=docker/dockerfile:experimental | ||
FROM ubuntu:bionic | ||
|
||
# Install system packages | ||
RUN set -ex && \ | ||
apt-get update && \ | ||
apt-get install -yq --no-install-recommends \ | ||
ca-certificates \ | ||
python2.7 \ | ||
libpython2.7 \ | ||
net-tools \ | ||
python-setuptools \ | ||
python-m2crypto \ | ||
python-apsw \ | ||
python-lxml \ | ||
wget && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /var/cache/* | ||
|
||
# Install Ace Stream | ||
# https://wiki.acestream.media/Download#Linux | ||
RUN mkdir -p /opt/acestream && \ | ||
wget --no-verbose --output-document acestream.tgz "https://download.acestream.media/linux/acestream_3.1.49_ubuntu_18.04_x86_64.tar.gz" && \ | ||
echo "d2ed7bdc38f6a47c05da730f7f6f600d48385a7455d922a2688f7112202ee19e acestream.tgz" | sha256sum --check && \ | ||
tar --extract --gzip --directory /opt/acestream --file acestream.tgz && \ | ||
rm -rf acestream.tgz && \ | ||
/opt/acestream/start-engine --version | ||
|
||
# Acestream 3.1.49 install is missing library files, | ||
# but we can grab these from a previous release. | ||
# http://oldforum.acestream.media/index.php?topic=12448.msg26872 | ||
RUN wget --no-verbose --output-document acestream.tgz "https://download.acestream.media/linux/acestream_3.1.16_ubuntu_16.04_x86_64.tar.gz" && \ | ||
echo "452bccb8ae8b5ff4497bbb796081dcf3fec2b699ba9ce704107556a3d6ad2ad7 acestream.tgz" | sha256sum --check && \ | ||
tar --extract --gzip --strip-components 1 --directory /tmp --file acestream.tgz && \ | ||
cp /tmp/lib/acestreamengine/py*.so /opt/acestream/lib/acestreamengine/ && \ | ||
cp /tmp/lib/*.so* /usr/lib/x86_64-linux-gnu/ && \ | ||
rm -rf tmp/* acestream.tgz | ||
# syntax=docker/dockerfile:1 | ||
FROM --platform=linux/amd64 ubuntu:focal | ||
|
||
ENV LC_ALL="C.UTF-8" \ | ||
LANG="C.UTF-8" \ | ||
DOWNLOAD_URL="https://download.acestream.media/linux/acestream_3.2.3_ubuntu_18.04_x86_64_py3.8.tar.gz" \ | ||
CHECKSUM="bf45376f1f28aaff7d9849ff991bf34a6b9a65542460a2344a8826126c33727d" | ||
|
||
# Install system packages. | ||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked\ | ||
--mount=type=cache,target=/var/lib/apt,sharing=locked\ | ||
--mount=type=tmpfs,target=/tmp\ | ||
set -ex;\ | ||
apt-get update;\ | ||
apt-get install -yq --no-install-recommends ca-certificates python3.8 libpython3.8 python3-pip wget;\ | ||
mkdir -p /opt/acestream;\ | ||
wget --no-verbose --output-document /opt/acestream/acestream.tgz $DOWNLOAD_URL;\ | ||
echo "$CHECKSUM /opt/acestream/acestream.tgz" | sha256sum --check;\ | ||
tar --extract --gzip --directory /opt/acestream --file /opt/acestream/acestream.tgz;\ | ||
rm /opt/acestream/acestream.tgz;\ | ||
python3 -m pip install -r /opt/acestream/requirements.txt;\ | ||
/opt/acestream/start-engine --version; | ||
|
||
# Overwrite disfunctional Ace Stream web player with a working videojs player, | ||
# Access at http://127.0.0.1:6878/webui/player/<acestream id> | ||
COPY player.html /opt/acestream/data/webui/html/player.html | ||
|
||
# Prep dir | ||
RUN mkdir /acelink | ||
|
||
COPY acestream.conf /opt/acestream/acestream.conf | ||
ENTRYPOINT ["/opt/acestream/start-engine", "@/opt/acestream/acestream.conf"] | ||
|
||
HEALTHCHECK CMD wget -q -t1 -O- 'http://127.0.0.1:6878/webui/api/service?method=get_version' | grep '"error": null' | ||
# Prep dir serving m3u8 files. | ||
RUN mkdir /acelink | ||
|
||
EXPOSE 6878 | ||
EXPOSE 8621 | ||
|
||
ENTRYPOINT ["/opt/acestream/start-engine", "@/opt/acestream/acestream.conf"] | ||
HEALTHCHECK CMD wget -q -t1 -O- 'http://127.0.0.1:6878/webui/api/service?method=get_version' | grep '"error": null' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.0.6 | ||
2.1.0 |