-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
52 additions
and
8 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
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,33 @@ | ||
FROM balenalib/raspberry-pi as builder | ||
|
||
COPY qemu-arm-static /usr/bin/ | ||
|
||
FROM builder | ||
|
||
ARG ARCH=armel | ||
ARG VERSION="0.7.0" | ||
LABEL maintainer="Jay MOULIN <[email protected]> <https://twitter.com/MoulinJay>" | ||
LABEL version="${VERSION}-${ARCH}" | ||
|
||
COPY ./${ARCH}/*.jar /opt/JDownloader/libs/ | ||
# archive extraction uses sevenzipjbinding library | ||
# which is compiled against libstdc++ | ||
RUN mkdir -p /opt/JDownloader/ && \ | ||
apt update && \ | ||
apt install openjdk-8-jre ffmpeg wget -y && \ | ||
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 && \ | ||
chmod 777 /opt/JDownloader/ -R && \ | ||
apt autoremove -y wget && \ | ||
rm /usr/bin/qemu-*-static | ||
|
||
|
||
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 | ||
|
||
WORKDIR /opt/JDownloader | ||
|
||
CMD ["tini", "--", "/opt/JDownloader/daemon.sh"] |
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
Binary file not shown.
Binary file not shown.
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