-
-
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.
fixes #7 - added multiarch + crossbuilding
- Loading branch information
Showing
7 changed files
with
88 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
qemu-*-static | ||
*.yaml | ||
.Dockerfile |
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,24 @@ | ||
How to Contribute | ||
================= | ||
|
||
This project welcomes your contribution. There are several ways to help out: | ||
|
||
* Create an [issue](https://github.com/jaymoulin/jdownloader/issues/) on GitHub, | ||
if you have found a bug or have an idea for a feature | ||
* Write test cases for open bug issues | ||
* Write patches for open bug/feature issues | ||
|
||
Issues | ||
------ | ||
|
||
* Submit an [issue](https://github.com/jaymoulin/jdownloader/issues/) | ||
* Make sure it does not already exist. | ||
* Clearly describe the issue including steps to reproduce, when it is a bug. | ||
* Make sure you note the version you use. | ||
|
||
Additional Resources | ||
-------------------- | ||
|
||
* [Existing issues](https://github.com/jaymoulin/jdownloader/issues/) | ||
* [General GitHub documentation](https://help.github.com/) | ||
* [GitHub pull request documentation](https://help.github.com/send-pull-requests/) |
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 |
---|---|---|
@@ -1,17 +1,20 @@ | ||
FROM larmog/armhf-alpine-java:jdk-8u73 | ||
FROM openjdk:jre-alpine as builder | ||
|
||
MAINTAINER Jay MOULIN <[email protected]> | ||
COPY qemu-*-static /usr/bin/ | ||
|
||
FROM builder | ||
|
||
LABEL maintainer="Jay MOULIN <[email protected]> <https://twitter.com/MoulinJay>" | ||
|
||
# archive extraction uses sevenzipjbinding library | ||
# which is compiled against libstdc++ | ||
RUN mkdir /opt/JDownloader/ | ||
RUN mkdir -p /opt/JDownloader/ | ||
RUN 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 /sbin/tini "https://github.com/krallin/tini/releases/download/v0.16.1/tini-static-armhf" --no-check-certificate && chmod +x /sbin/tini && \ | ||
apk del wget --purge .build-deps | ||
wget -O /opt/JDownloader/JDownloader.jar "http://installer.jdownloader.org/JDownloader.jar?$RANDOM" && chmod +x /opt/JDownloader/JDownloader.jar && \ | ||
wget -O /sbin/tini "https://github.com/krallin/tini/releases/download/v0.16.1/tini-static-armhf" --no-check-certificate && chmod +x /sbin/tini && \ | ||
apk del wget --purge .build-deps | ||
ENV LD_LIBRARY_PATH=/lib;/lib32;/usr/lib | ||
|
||
|
||
ADD daemon.sh /opt/JDownloader/ | ||
ADD default-config.json.dist /opt/JDownloader/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json.dist | ||
ADD configure.sh /usr/bin/configure | ||
|
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,20 @@ | ||
VERSION ?= 0.4.0 | ||
FULLVERSION ?= ${VERSION} | ||
archs = amd64 arm32v6 arm64v8 i386 | ||
|
||
.PHONY: all build publish latest | ||
all: build publish latest | ||
build: | ||
cp /usr/bin/qemu-*-static . | ||
$(foreach arch,$(archs), \ | ||
cat Dockerfile | sed "s/FROM openjdk:jre-alpine/FROM ${arch}\/openjdk:jre-alpine/g" > .Dockerfile; \ | ||
docker build -t jaymoulin/jdownloader:${VERSION}-$(arch) -f .Dockerfile .;\ | ||
) | ||
publish: | ||
docker push jaymoulin/jdownloader | ||
cat manifest.yml | sed "s/\$$VERSION/${VERSION}/g" > manifest.yaml | ||
cat manifest.yaml | sed "s/\$$FULLVERSION/${FULLVERSION}/g" > manifest2.yaml | ||
mv manifest2.yaml manifest.yaml | ||
manifest-tool push from-spec manifest.yaml | ||
latest: build | ||
FULLVERSION=latest VERSION=${VERSION} make publish |
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,24 @@ | ||
image: jaymoulin/jdownloader:$FULLVERSION | ||
manifests: | ||
- | ||
image: jaymoulin/jdownloader:$VERSION-arm32v6 | ||
platform: | ||
architecture: arm | ||
variant: v6 | ||
os: linux | ||
- | ||
image: jaymoulin/jdownloader:$VERSION-arm64v8 | ||
platform: | ||
architecture: arm | ||
variant: v8 | ||
os: linux | ||
- | ||
image: jaymoulin/jdownloader:$VERSION-amd64 | ||
platform: | ||
architecture: arm64 | ||
os: linux | ||
- | ||
image: jaymoulin/jdownloader:$VERSION-i386 | ||
platform: | ||
architecture: 386 | ||
os: linux |