mirror of
https://git.netzspielplatz.de/docker-multiarch/jdownloader2-headless.git
synced 2025-11-08 18:59:29 +00:00
Merge branch 'dev' of https://github.com/PlusMinus0/headless-jd2-docker into dev
This commit is contained in:
commit
e64ef1910e
6 changed files with 41 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,3 +2,4 @@
|
||||||
.\#*
|
.\#*
|
||||||
\#*\#
|
\#*\#
|
||||||
.config/
|
.config/
|
||||||
|
goss.yaml
|
||||||
|
|
|
||||||
15
README.md
15
README.md
|
|
@ -1,7 +1,14 @@
|
||||||
# headless-jd2-docker
|
[](https://travis-ci.com/PlusMinus0/headless-jd2-docker)
|
||||||
Headless JDownloader 2 Docker Container
|
# Supported tags
|
||||||
|
* [`latest`, `debian`, `v3-debian` (debian.Dockerfile)](https://github.com/PlusMinus0/headless-jd2-docker/blob/master/debian.Dockerfile)
|
||||||
|
* [`alpine`, `v3-alpine` (alpine.Dockerfile)](https://github.com/PlusMinus0/headless-jd2-docker/blob/master/alpine.Dockerfile)
|
||||||
|
* [`dev-debian` (debian.Dockerfile)](https://github.com/PlusMinus0/headless-jd2-docker/blob/dev/debian.Dockerfile)
|
||||||
|
* [`dev-alpine` (alpine.Dockerfile)](https://github.com/PlusMinus0/headless-jd2-docker/blob/dev/alpine.Dockerfile)
|
||||||
|
* [`v2.1` (Dockerfile)](https://github.com/PlusMinus0/headless-jd2-docker/blob/v2.1/Dockerfile)
|
||||||
|
* [`v2.0` (Dockerfile)](https://github.com/PlusMinus0/headless-jd2-docker/blob/v2.0/Dockerfile)
|
||||||
|
|
||||||
## Running the container
|
|
||||||
|
# Running the container
|
||||||
0. Become root if your user is not part of the docker group:
|
0. Become root if your user is not part of the docker group:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
@ -33,7 +40,7 @@ Headless JDownloader 2 Docker Container
|
||||||
docker start jd2
|
docker start jd2
|
||||||
```
|
```
|
||||||
|
|
||||||
## Optional environment variables
|
# Optional environment variables
|
||||||
|Environment Variable|Description|
|
|Environment Variable|Description|
|
||||||
|--------------------|-----------|
|
|--------------------|-----------|
|
||||||
|UID|Specifies the UID the daemon should run as. All created files will be owned by this UID. Defaults to 1000.|
|
|UID|Specifies the UID the daemon should run as. All created files will be owned by this UID. Defaults to 1000.|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,12 @@ for image in "${images[@]}"; do
|
||||||
docker build -t $tag -f $image.Dockerfile .
|
docker build -t $tag -f $image.Dockerfile .
|
||||||
|
|
||||||
echo "Testing image"
|
echo "Testing image"
|
||||||
|
cp goss-default.yaml goss.yaml
|
||||||
dgoss run $tag
|
dgoss run $tag
|
||||||
|
|
||||||
|
echo "Testing again with UID and GID"
|
||||||
|
cp goss-uid-test.yaml goss.yaml
|
||||||
|
dgoss run -e UID=1001 -e GID=101 $tag
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Set defaults for uid and gid to not be root
|
# Set defaults for uid and gid to not be root
|
||||||
if [ -n $GID ]; then GID=100; fi
|
if [ -z $GID ]; then GID=100; fi
|
||||||
if [ -n $UID ]; then UID=1000; fi
|
if [ -z $UID ]; then UID=1000; fi
|
||||||
|
|
||||||
if [ "$GID" -ne "0" ]; then
|
if [ "$GID" -ne "0" ]; then
|
||||||
GROUP=jdownloader
|
GROUP=jdownloader
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,26 @@
|
||||||
file:
|
file:
|
||||||
/opt/JDownloader/JDownloader.jar:
|
/opt/JDownloader/JDownloader.jar:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0644"
|
mode:
|
||||||
|
or:
|
||||||
|
- "0664"
|
||||||
|
- "0644"
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contains: []
|
||||||
/opt/JDownloader/sevenzipjbinding1509.jar:
|
/opt/JDownloader/sevenzipjbinding1509.jar:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0664"
|
mode:
|
||||||
|
or:
|
||||||
|
- "0664"
|
||||||
|
- "0644"
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contains: []
|
||||||
/opt/JDownloader/sevenzipjbinding1509Linux.jar:
|
/opt/JDownloader/sevenzipjbinding1509Linux.jar:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0664"
|
mode:
|
||||||
|
or:
|
||||||
|
- "0664"
|
||||||
|
- "0644"
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contains: []
|
||||||
/tmp:
|
/tmp:
|
||||||
9
goss-uid-test.yaml
Normal file
9
goss-uid-test.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
user:
|
||||||
|
jdownloader:
|
||||||
|
exists: true
|
||||||
|
uid: 1001
|
||||||
|
gid: 101
|
||||||
|
groups:
|
||||||
|
- jdownloader
|
||||||
|
home: []
|
||||||
|
shell: /bin/false
|
||||||
Loading…
Add table
Add a link
Reference in a new issue