Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
adding pipeline logic and multi arch to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Dec 9, 2018
1 parent f1292ad commit cc7209c
Show file tree
Hide file tree
Showing 7 changed files with 824 additions and 7 deletions.
20 changes: 15 additions & 5 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 MYLAR_COMMIT
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"

Expand All @@ -11,19 +12,28 @@ RUN \
pip install --no-cache-dir -U \
comictagger \
configparser \
html5lib \
requests \
tzlocal && \
echo "**** install app ****" && \
git clone --depth 1 https://github.com/evilhero/mylar.git /app/mylar && \
if [ -z ${MYLAR_COMMIT+x} ]; then \
MYLAR_COMMIT=$(curl -sX GET https://api.github.com/repos/evilhero/mylar/commits/master \
| awk '/sha/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/app/mylar && \
curl -o \
/tmp/mylar.tar.gz -L \
"https://github.com/evilhero/mylar/archive/${MYLAR_COMMIT}.tar.gz" && \
tar xf \
/tmp/mylar.tar.gz -C \
/app/mylar --strip-components=1 && \
echo "**** cleanup ****" && \
rm -rf \
/root/.cache \
/tmp/*

# add local files
# add local files
COPY root/ /

# ports and volumes
# ports and volumes
VOLUME /config /comics /downloads
EXPOSE 8090
42 changes: 42 additions & 0 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM lsiobase/alpine.python.arm64: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 MYLAR_COMMIT
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"

RUN \
echo "**** install pip packages ****" && \
pip install --no-cache-dir -U \
comictagger \
configparser \
tzlocal && \
echo "**** install app ****" && \
if [ -z ${MYLAR_COMMIT+x} ]; then \
MYLAR_COMMIT=$(curl -sX GET https://api.github.com/repos/evilhero/mylar/commits/master \
| awk '/sha/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/app/mylar && \
curl -o \
/tmp/mylar.tar.gz -L \
"https://github.com/evilhero/mylar/archive/${MYLAR_COMMIT}.tar.gz" && \
tar xf \
/tmp/mylar.tar.gz -C \
/app/mylar --strip-components=1 && \
echo "**** cleanup ****" && \
rm -rf \
/root/.cache \
/tmp/*

# add local files
COPY root/ /

# ports and volumes
VOLUME /config /comics /downloads
EXPOSE 8090
42 changes: 42 additions & 0 deletions Dockerfile.armhf
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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 MYLAR_COMMIT
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"

RUN \
echo "**** install pip packages ****" && \
pip install --no-cache-dir -U \
comictagger \
configparser \
tzlocal && \
echo "**** install app ****" && \
if [ -z ${MYLAR_COMMIT+x} ]; then \
MYLAR_COMMIT=$(curl -sX GET https://api.github.com/repos/evilhero/mylar/commits/master \
| awk '/sha/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/app/mylar && \
curl -o \
/tmp/mylar.tar.gz -L \
"https://github.com/evilhero/mylar/archive/${MYLAR_COMMIT}.tar.gz" && \
tar xf \
/tmp/mylar.tar.gz -C \
/app/mylar --strip-components=1 && \
echo "**** cleanup ****" && \
rm -rf \
/root/.cache \
/tmp/*

# add local files
COPY root/ /

# ports and volumes
VOLUME /config /comics /downloads
EXPOSE 8090
Loading

0 comments on commit cc7209c

Please sign in to comment.