Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature-13'
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Sep 27, 2018
2 parents 40a548c + 27a514f commit 0696d3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@ COPY qemu-arm-static /usr/bin/
FROM builder

ARG ARCH=armhf
ARG VERSION="0.5.1"
ARG VERSION="0.6.0"
LABEL maintainer="Jay MOULIN <[email protected]> <https://twitter.com/MoulinJay>"
LABEL version="${VERSION}"

COPY ./${ARCH}/*.jar /opt/JDownloader/libs/
# archive extraction uses sevenzipjbinding library
# which is compiled against libstdc++
RUN mkdir -p /opt/JDownloader/ && \
apk add --update libstdc++ ffmpeg && apk add wget --virtual .build-deps && \
apk add --update libstdc++ ffmpeg && \
apk add wget --virtual .build-deps && \
wget -O /opt/JDownloader/JDownloader.jar "http://installer.jdownloader.org/JDownloader.jar?$RANDOM" && \
chmod +x /opt/JDownloader/JDownloader.jar && \
wget -O /usr/bin/tini "https://github.com/krallin/tini/releases/download/v0.18.0/tini-static-${ARCH}" --no-check-certificate \
&& chmod +x /usr/bin/tini && \
wget -O /usr/bin/tini "https://github.com/krallin/tini/releases/download/v0.18.0/tini-static-${ARCH}" --no-check-certificate && \
chmod +x /usr/bin/tini && \
chmod 777 /opt/JDownloader/ -R && \
apk del wget --purge .build-deps && \
rm /usr/bin/qemu-*-static
ENV LD_LIBRARY_PATH=/lib;/lib32;/usr/lib
Expand All @@ -27,8 +29,6 @@ COPY daemon.sh /opt/JDownloader/
COPY default-config.json.dist /opt/JDownloader/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json.dist
COPY configure.sh /usr/bin/configure

VOLUME /root/Downloads
VOLUME /opt/JDownloader/cfg
WORKDIR /opt/JDownloader

CMD ["tini", "--", "/opt/JDownloader/daemon.sh"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION ?= 0.5.1
VERSION ?= 0.6.0
CACHE ?= --no-cache=1
FULLVERSION ?= ${VERSION}
archs ?= amd64 arm32v6 arm64v8 i386
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Installation
---

```
docker run -d --restart=always -v ~/Downloads:/root/Downloads -v ~/jdownloader/cfg:/opt/JDownloader/cfg --name jdownloader jaymoulin/jdownloader
docker run -d --restart=always -v ~/Downloads:/root/Downloads -v ~/jdownloader/cfg:/opt/JDownloader/cfg --name jdownloader -u $UID:$(id -g) jaymoulin/jdownloader
```

You can replace `~/Downloads` with the folder you want your downloaded files to go.
Expand Down

0 comments on commit 0696d3d

Please sign in to comment.