Skip to content

Commit

Permalink
adding pipeline logic and multi arching
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Jan 27, 2019
1 parent d45d1eb commit 954b8bb
Show file tree
Hide file tree
Showing 7 changed files with 884 additions and 7 deletions.
16 changes: 14 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM lsiobase/alpine.python:3.8
# set version label
ARG BUILD_DATE
ARG VERSION
ARG TAUTULLI_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"

Expand All @@ -18,12 +19,23 @@ RUN \
plexapi \
pycryptodomex && \
echo "**** install app ****" && \
git clone --depth 1 https://github.com/Tautulli/Tautulli /app/tautulli && \
mkdir -p /app/tautulli && \
if [ -z ${TAUTULLI_RELEASE+x} ]; then \
TAUTULLI_RELEASE=$(curl -sX GET "https://api.github.com/repos/Tautulli/Tautulli/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/tautulli.tar.gz -L \
"https://github.com/Tautulli/Tautulli/archive/${TAUTULLI_RELEASE}.tar.gz" && \
tar xf \
/tmp/tautulli.tar.gz -C \
/app/tautulli --strip-components=1 && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/root/.cache
/root/.cache \
/tmp/*

# add local files
COPY root/ /
Expand Down
48 changes: 48 additions & 0 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
FROM lsiobase/alpine.python:3.8

# Add qemu to build on x86_64 systems
COPY qemu-aarch64-static /usr/bin

# set version label
ARG BUILD_DATE
ARG VERSION
ARG TAUTULLI_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"

RUN \
echo "**** install packages ****" && \
apk add --no-cache --virtual=build-dependencies \
g++ \
gcc \
make \
python-dev && \
echo "**** install pip packages ****" && \
pip install --no-cache-dir -U \
plexapi \
pycryptodomex && \
echo "**** install app ****" && \
mkdir -p /app/tautulli && \
if [ -z ${TAUTULLI_RELEASE+x} ]; then \
TAUTULLI_RELEASE=$(curl -sX GET "https://api.github.com/repos/Tautulli/Tautulli/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/tautulli.tar.gz -L \
"https://github.com/Tautulli/Tautulli/archive/${TAUTULLI_RELEASE}.tar.gz" && \
tar xf \
/tmp/tautulli.tar.gz -C \
/app/tautulli --strip-components=1 && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/root/.cache \
/tmp/*

# add local files
COPY root/ /

# ports and volumes
VOLUME /config /logs
EXPOSE 8181
48 changes: 48 additions & 0 deletions Dockerfile.armhf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
FROM lsiobase/alpine.python.armhf:3.8

# Add qemu to build on x86_64 systems
COPY qemu-arm-static /usr/bin

# set version label
ARG BUILD_DATE
ARG VERSION
ARG TAUTULLI_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"

RUN \
echo "**** install packages ****" && \
apk add --no-cache --virtual=build-dependencies \
g++ \
gcc \
make \
python-dev && \
echo "**** install pip packages ****" && \
pip install --no-cache-dir -U \
plexapi \
pycryptodomex && \
echo "**** install app ****" && \
mkdir -p /app/tautulli && \
if [ -z ${TAUTULLI_RELEASE+x} ]; then \
TAUTULLI_RELEASE=$(curl -sX GET "https://api.github.com/repos/Tautulli/Tautulli/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/tautulli.tar.gz -L \
"https://github.com/Tautulli/Tautulli/archive/${TAUTULLI_RELEASE}.tar.gz" && \
tar xf \
/tmp/tautulli.tar.gz -C \
/app/tautulli --strip-components=1 && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/root/.cache \
/tmp/*

# add local files
COPY root/ /

# ports and volumes
VOLUME /config /logs
EXPOSE 8181
Loading

0 comments on commit 954b8bb

Please sign in to comment.