File tree Expand file tree Collapse file tree 7 files changed +868
-52
lines changed Expand file tree Collapse file tree 7 files changed +868
-52
lines changed Original file line number Diff line number Diff line change @@ -3,26 +3,35 @@ FROM lsiobase/mono:xenial
33# set version label
44ARG BUILD_DATE
55ARG VERSION
6+ ARG DUPLICATI_RELEASE
67LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
78LABEL maintainer="sparklyballs"
89
910# environment settings
1011ENV HOME="/config"
1112
1213RUN \
14+ echo "**** install jq ****" && \
15+ apt-get update && \
16+ apt-get install -y \
17+ jq && \
1318 echo "**** install duplicati ****" && \
19+ if [ -z ${DUPLICATI_RELEASE+x} ]; then \
20+ DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" \
21+ | jq -r '.[0] | .tag_name' ); \
22+ fi && \
1423 mkdir -p \
1524 /app/duplicati && \
16- duplicati_tag=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" \
17- | awk '/tag_name.*(beta|release)/{print $4;exit}' FS='[""]' ) && \
18- duplicati_zip="duplicati-${duplicati_tag#*-}.zip" && \
25+ duplicati_url=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases/tags/"${DUPLICATI_RELEASE}" |jq -r '.assets[].browser_download_url' |grep zip |grep -v signatures) && \
1926 curl -o \
2027 /tmp/duplicati.zip -L \
21- "https://github.com/duplicati/duplicati/releases/download/${duplicati_tag}/${duplicati_zip }" && \
28+ "${duplicati_url }" && \
2229 unzip -q /tmp/duplicati.zip -d /app/duplicati && \
2330 echo "**** cleanup ****" && \
2431 rm -rf \
25- /tmp/*
32+ /tmp/* \
33+ /var/lib/apt/lists/* \
34+ /var/tmp/*
2635
2736# copy local files
2837COPY root/ /
Original file line number Diff line number Diff line change 1+ FROM lsiobase/mono.arm64:xenial
2+
3+ # Add qemu to build on x86_64 systems
4+ COPY qemu-aarch64-static /usr/bin
5+
6+ # set version label
7+ ARG BUILD_DATE
8+ ARG VERSION
9+ ARG DUPLICATI_RELEASE
10+ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
11+ LABEL maintainer="sparklyballs"
12+
13+ # environment settings
14+ ENV HOME="/config"
15+
16+ RUN \
17+ echo "**** install jq ****" && \
18+ apt-get update && \
19+ apt-get install -y \
20+ jq && \
21+ echo "**** install duplicati ****" && \
22+ if [ -z ${DUPLICATI_RELEASE+x} ]; then \
23+ DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" \
24+ | jq -r '.[0] | .tag_name'); \
25+ fi && \
26+ mkdir -p \
27+ /app/duplicati && \
28+ duplicati_url=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases/tags/"${DUPLICATI_RELEASE}" |jq -r '.assets[].browser_download_url' |grep zip |grep -v signatures) && \
29+ curl -o \
30+ /tmp/duplicati.zip -L \
31+ "${duplicati_url}" && \
32+ unzip -q /tmp/duplicati.zip -d /app/duplicati && \
33+ echo "**** cleanup ****" && \
34+ rm -rf \
35+ /tmp/* \
36+ /var/lib/apt/lists/* \
37+ /var/tmp/*
38+
39+ # copy local files
40+ COPY root/ /
41+
42+ # ports and volumes
43+ EXPOSE 8200
44+ VOLUME /backups /config /source
Original file line number Diff line number Diff line change 1+ FROM lsiobase/mono.armhf:xenial
2+
3+ # Add qemu to build on x86_64 systems
4+ COPY qemu-arm-static /usr/bin
5+
6+ # set version label
7+ ARG BUILD_DATE
8+ ARG VERSION
9+ ARG DUPLICATI_RELEASE
10+ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
11+ LABEL maintainer="sparklyballs"
12+
13+ # environment settings
14+ ENV HOME="/config"
15+
16+ RUN \
17+ echo "**** install jq ****" && \
18+ apt-get update && \
19+ apt-get install -y \
20+ jq && \
21+ echo "**** install duplicati ****" && \
22+ if [ -z ${DUPLICATI_RELEASE+x} ]; then \
23+ DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" \
24+ | jq -r '.[0] | .tag_name'); \
25+ fi && \
26+ mkdir -p \
27+ /app/duplicati && \
28+ duplicati_url=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases/tags/"${DUPLICATI_RELEASE}" |jq -r '.assets[].browser_download_url' |grep zip |grep -v signatures) && \
29+ curl -o \
30+ /tmp/duplicati.zip -L \
31+ "${duplicati_url}" && \
32+ unzip -q /tmp/duplicati.zip -d /app/duplicati && \
33+ echo "**** cleanup ****" && \
34+ rm -rf \
35+ /tmp/* \
36+ /var/lib/apt/lists/* \
37+ /var/tmp/*
38+
39+ # copy local files
40+ COPY root/ /
41+
42+ # ports and volumes
43+ EXPOSE 8200
44+ VOLUME /backups /config /source
You can’t perform that action at this time.
0 commit comments