-
Notifications
You must be signed in to change notification settings - Fork 541
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add arm64 support and Update Plex Download URLs to latest API (#48)
Add arm64 support and Update Plex Download URLs to latest API
- Loading branch information
1 parent
0ce632c
commit 4d069dc
Showing
6 changed files
with
98 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
docker-compose.yml | ||
|
||
test/ |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
FROM ubuntu:16.04 | ||
|
||
ARG S6_OVERLAY_VERSION=v1.22.1.0 | ||
ARG S6_OVERLAY_ARCH=aarch64 | ||
ARG PLEX_BUILD=linux-aarch64 | ||
ARG PLEX_DISTRO=debian | ||
ARG DEBIAN_FRONTEND="noninteractive" | ||
ENV TERM="xterm" LANG="C.UTF-8" LC_ALL="C.UTF-8" | ||
|
||
ENTRYPOINT ["/init"] | ||
|
||
RUN \ | ||
# Update and get dependencies | ||
apt-get update && \ | ||
apt-get install -y \ | ||
tzdata \ | ||
curl \ | ||
xmlstarlet \ | ||
uuid-runtime \ | ||
unrar \ | ||
&& \ | ||
|
||
# Fetch and extract S6 overlay | ||
curl -J -L -o /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.gz https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-${S6_OVERLAY_ARCH}.tar.gz && \ | ||
tar xzf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.gz -C / && \ | ||
|
||
# Add user | ||
useradd -U -d /config -s /bin/false plex && \ | ||
usermod -G users plex && \ | ||
|
||
# Setup directories | ||
mkdir -p \ | ||
/config \ | ||
/transcode \ | ||
/data \ | ||
&& \ | ||
|
||
# Cleanup | ||
apt-get -y autoremove && \ | ||
apt-get -y clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -rf /tmp/* && \ | ||
rm -rf /var/tmp/* | ||
|
||
EXPOSE 32400/tcp 3005/tcp 8324/tcp 32469/tcp 1900/udp 32410/udp 32412/udp 32413/udp 32414/udp | ||
VOLUME /config /transcode | ||
|
||
ENV CHANGE_CONFIG_DIR_OWNERSHIP="true" \ | ||
HOME="/config" | ||
|
||
ARG TAG=beta | ||
ARG URL= | ||
|
||
COPY root/ / | ||
|
||
RUN \ | ||
# Save version and install | ||
/installBinary.sh | ||
|
||
HEALTHCHECK --interval=5s --timeout=2s --retries=20 CMD /healthcheck.sh || exit 1 |
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