Compare commits
273 Commits
unstable--
...
4.4.5-r3-l
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65621a9ba3 | ||
|
|
5f0e71b743 | ||
|
|
121cbb9462 | ||
|
|
ca5673a409 | ||
|
|
17dabb494e | ||
|
|
f196789a76 | ||
|
|
16364f2964 | ||
|
|
83b482ab7a | ||
|
|
a10c1b8729 | ||
|
|
74008d71f2 | ||
|
|
f063e52eb9 | ||
|
|
134527e4a9 | ||
|
|
bc0d17401d | ||
|
|
d97b2e7d4a | ||
|
|
60df08ba86 | ||
|
|
fe250e22db | ||
|
|
3816f56755 | ||
|
|
f1eac2644f | ||
|
|
384f7ba365 | ||
|
|
c828bd5ccd | ||
|
|
dde6f08046 | ||
|
|
56ac0242f7 | ||
|
|
18d310d3c0 | ||
|
|
b0261130d1 | ||
|
|
38ce6e4eaf | ||
|
|
6483e582e8 | ||
|
|
61d98c0113 | ||
|
|
a8abbc12e2 | ||
|
|
97d4b22608 | ||
|
|
871008c306 | ||
|
|
6b27825bd7 | ||
|
|
a3ac4ce7a9 | ||
|
|
beeb9de294 | ||
|
|
06bec27898 | ||
|
|
a081d82d11 | ||
|
|
5c73db523b | ||
|
|
5318d90428 | ||
|
|
d5e03be2cf | ||
|
|
ce85d8e0ce | ||
|
|
b0576b6f80 | ||
|
|
bb25c8d32e | ||
|
|
4f68b52b04 | ||
|
|
72d7f0639c | ||
|
|
c0196b94a9 | ||
|
|
6c107b1b8e | ||
|
|
d688fd93ac | ||
|
|
cb886eabea | ||
|
|
10baef17ec | ||
|
|
2196ea8947 | ||
|
|
27358397df | ||
|
|
7b1fd614bc | ||
|
|
151bd9ef20 | ||
|
|
1de14c6540 | ||
|
|
9e2f4c203c | ||
|
|
ff4883d743 | ||
|
|
8197ab7ad0 | ||
|
|
bf8e5f1962 | ||
|
|
987952046f | ||
|
|
f0938c4f2b | ||
|
|
d17662b2d7 | ||
|
|
565e33a035 | ||
|
|
f5d7576098 | ||
|
|
01863767be | ||
|
|
1f480ed6a9 | ||
|
|
aa8bf3811b | ||
|
|
6d4d5ae9d5 | ||
|
|
ac95fb5904 | ||
|
|
0358202857 | ||
|
|
52f469a40d | ||
|
|
c067dc6e28 | ||
|
|
e9c36e0989 | ||
|
|
afe1de3e7f | ||
|
|
0ec11ff56a | ||
|
|
0ff8121521 | ||
|
|
df6b84fcee | ||
|
|
9a6fca93a4 | ||
|
|
3f1abde2d5 | ||
|
|
aa53903516 | ||
|
|
11399fc0b8 | ||
|
|
d86db02334 | ||
|
|
7c0eb4e676 | ||
|
|
f4688d02a6 | ||
|
|
e219ebb68a | ||
|
|
6b33e52b99 | ||
|
|
d8521268eb | ||
|
|
0589233f7e | ||
|
|
73869214a6 | ||
|
|
4ca216b6a5 | ||
|
|
7e84208a53 | ||
|
|
7c6e03cbee | ||
|
|
0d8a8358bc | ||
|
|
d8875f90f2 | ||
|
|
ffcce8c8ca | ||
|
|
196ab45449 | ||
|
|
ae8a2b630c | ||
|
|
bc82fbd112 | ||
|
|
6ff254fa94 | ||
|
|
161be85ba4 | ||
|
|
ab5459e94a | ||
|
|
8eedd9fc6b | ||
|
|
52f71c421d | ||
|
|
3864769098 | ||
|
|
3959ef3929 | ||
|
|
d0bd08d681 | ||
|
|
31fd25b76e | ||
|
|
f602e3f3de | ||
|
|
404387d1bf | ||
|
|
b43a38d223 | ||
|
|
7a5e9ce7a8 | ||
|
|
9a9a5ace5f | ||
|
|
0e9d1cd2a7 | ||
|
|
388c14d39f | ||
|
|
05353a4ffa | ||
|
|
f403791b9b | ||
|
|
8957575e62 | ||
|
|
51cd1d2cb9 | ||
|
|
42c5efa42d | ||
|
|
88a3d3fffb | ||
|
|
04b7ad8614 | ||
|
|
fa2c992f99 | ||
|
|
7b96dd8081 | ||
|
|
788e6ac4d1 | ||
|
|
1920d0a36b | ||
|
|
7b7b90e21c | ||
|
|
d9604dae91 | ||
|
|
f09bcb7608 | ||
|
|
ad68a8d8b5 | ||
|
|
51fa07ef4c | ||
|
|
4dcbcffd20 | ||
|
|
36f6c4727c | ||
|
|
f4599598d5 | ||
|
|
4b7c5cfa3c | ||
|
|
453fa3ab17 | ||
|
|
1b01d5533e | ||
|
|
e4c0d9a5ca | ||
|
|
f95cc6ad6b | ||
|
|
6f70db3f3c | ||
|
|
a14a44463b | ||
|
|
c6a679f65e | ||
|
|
3f43261f08 | ||
|
|
9c6a639487 | ||
|
|
83d85cedc1 | ||
|
|
d9f7f21791 | ||
|
|
2375382a28 | ||
|
|
5d811b36c6 | ||
|
|
e824d378e7 | ||
|
|
f9483a88b6 | ||
|
|
f83f3fd5fb | ||
|
|
ecbb937c39 | ||
|
|
2bbec40d33 | ||
|
|
05fbba3e20 | ||
|
|
f3de1fa5e5 | ||
|
|
ca6d61ebe6 | ||
|
|
0bf1c72566 | ||
|
|
45fcca6ea9 | ||
|
|
1dfe1b178b | ||
|
|
46b481c1f2 | ||
|
|
dd76ae8615 | ||
|
|
2862d4c64b | ||
|
|
9d15a99d0d | ||
|
|
3e1c6f411d | ||
|
|
727670c265 | ||
|
|
2b0dbd321b | ||
|
|
4aeb003f8f | ||
|
|
9e38503877 | ||
|
|
0efdf54653 | ||
|
|
ef9930aed5 | ||
|
|
f2a15340dc | ||
|
|
21daeaf0d5 | ||
|
|
af977a986c | ||
|
|
5bb96a4860 | ||
|
|
b1d457d6cf | ||
|
|
14f875769b | ||
|
|
c361bde9db | ||
|
|
2a51275b3a | ||
|
|
9e1a9ee654 | ||
|
|
82e6971458 | ||
|
|
db769dc00c | ||
|
|
6b02d3dd3f | ||
|
|
c7d44af955 | ||
|
|
9a267928a3 | ||
|
|
a82199f478 | ||
|
|
2b00f83793 | ||
|
|
c730612170 | ||
|
|
f4aa670e36 | ||
|
|
de3c3d3f8f | ||
|
|
0ad6143ad5 | ||
|
|
c40da0d2fa | ||
|
|
8c57809c37 | ||
|
|
c0319dd36f | ||
|
|
453b53f443 | ||
|
|
f2aa60834d | ||
|
|
d732a5aa06 | ||
|
|
1d603b153f | ||
|
|
c40bd11abd | ||
|
|
fe17f2fc18 | ||
|
|
e43be66cdb | ||
|
|
763ec46cf3 | ||
|
|
9f10b8e233 | ||
|
|
520e471b04 | ||
|
|
2b913e4df5 | ||
|
|
79d5ee0cd7 | ||
|
|
46b6b4e375 | ||
|
|
8b363149a1 | ||
|
|
c87b025488 | ||
|
|
cfc4e1cd36 | ||
|
|
a76f73b6d4 | ||
|
|
b468b496e9 | ||
|
|
6fb3ff602a | ||
|
|
19e9414071 | ||
|
|
e1105c3c10 | ||
|
|
12eeada89e | ||
|
|
a9570058b0 | ||
|
|
ea87627cc4 | ||
|
|
4b3791666e | ||
|
|
7132836687 | ||
|
|
0ae62b1e31 | ||
|
|
c00ae15d02 | ||
|
|
b40aefd8c0 | ||
|
|
f3ddd66daf | ||
|
|
771466e8d1 | ||
|
|
40386796be | ||
|
|
b1712457b3 | ||
|
|
a149240962 | ||
|
|
203665be42 | ||
|
|
6c73fdbe28 | ||
|
|
0fd37c121c | ||
|
|
d0e1c52430 | ||
|
|
d905eb1a9c | ||
|
|
73f60599a0 | ||
|
|
46a9021a49 | ||
|
|
454d4a325a | ||
|
|
27c8324ebd | ||
|
|
358eefe9c6 | ||
|
|
722bd16154 | ||
|
|
72ca1908f8 | ||
|
|
fb1cae11aa | ||
|
|
5cafd8e13c | ||
|
|
61ca0015f3 | ||
|
|
ba58ecb683 | ||
|
|
58f4ae5129 | ||
|
|
16788fb0f2 | ||
|
|
24b3491eef | ||
|
|
978d08a5fd | ||
|
|
668e9858cc | ||
|
|
e38b7158db | ||
|
|
b3c6a6e811 | ||
|
|
1b64db93e7 | ||
|
|
81242e2067 | ||
|
|
53200a7b1f | ||
|
|
f66091b91f | ||
|
|
4f6acb37d1 | ||
|
|
40a39fe84a | ||
|
|
9cdd5ef3d3 | ||
|
|
c70fd537e9 | ||
|
|
dea7c84f45 | ||
|
|
8d1dac2300 | ||
|
|
25691a42ff | ||
|
|
884270d998 | ||
|
|
8fcc3fb181 | ||
|
|
1e38561692 | ||
|
|
db829a8a40 | ||
|
|
5d2bcceef4 | ||
|
|
ddb0bea2aa | ||
|
|
450d6b60ec | ||
|
|
2421611e80 | ||
|
|
804a0a417c | ||
|
|
12c6b8b45d | ||
|
|
8f57215fc9 | ||
|
|
9f36ab0e69 | ||
|
|
3eb0345870 | ||
|
|
00249991fd | ||
|
|
9989d4583d |
4
.github/CONTRIBUTING.md
vendored
4
.github/CONTRIBUTING.md
vendored
@@ -24,7 +24,7 @@
|
|||||||
## Readme
|
## Readme
|
||||||
|
|
||||||
If you would like to change our readme, please __**do not**__ directly edit the readme, as it is auto-generated on each commit.
|
If you would like to change our readme, please __**do not**__ directly edit the readme, as it is auto-generated on each commit.
|
||||||
Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-qbittorrent/edit/unstable/readme-vars.yml).
|
Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-qbittorrent/edit/master/readme-vars.yml).
|
||||||
|
|
||||||
These variables are used in a template for our [Jenkins Builder](https://github.com/linuxserver/docker-jenkins-builder) as part of an ansible play.
|
These variables are used in a template for our [Jenkins Builder](https://github.com/linuxserver/docker-jenkins-builder) as part of an ansible play.
|
||||||
Most of these variables are also carried over to [docs.linuxserver.io](https://docs.linuxserver.io/images/docker-qbittorrent)
|
Most of these variables are also carried over to [docs.linuxserver.io](https://docs.linuxserver.io/images/docker-qbittorrent)
|
||||||
@@ -115,7 +115,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Update the changelog
|
## Update the changelog
|
||||||
|
|
||||||
If you are modifying the Dockerfiles or any of the startup scripts in [root](https://github.com/linuxserver/docker-qbittorrent/tree/unstable/root), add an entry to the changelog
|
If you are modifying the Dockerfiles or any of the startup scripts in [root](https://github.com/linuxserver/docker-qbittorrent/tree/master/root), add an entry to the changelog
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
changelogs:
|
changelogs:
|
||||||
|
|||||||
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
- [ ] I have read the [contributing](https://github.com/linuxserver/docker-qbittorrent/blob/unstable/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
|
- [ ] I have read the [contributing](https://github.com/linuxserver/docker-qbittorrent/blob/master/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
|
||||||
|
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
|
|||||||
88
.github/workflows/external_trigger.yml
vendored
88
.github/workflows/external_trigger.yml
vendored
@@ -4,35 +4,36 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
external-trigger-unstable:
|
external-trigger-master:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.3
|
- uses: actions/checkout@v2.3.3
|
||||||
|
|
||||||
- name: External Trigger
|
- name: External Trigger
|
||||||
if: github.ref == 'refs/heads/unstable'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${{ secrets.PAUSE_EXTERNAL_TRIGGER_QBITTORRENT_UNSTABLE }}" ]; then
|
if [ -n "${{ secrets.PAUSE_EXTERNAL_TRIGGER_QBITTORRENT_MASTER }}" ]; then
|
||||||
echo "**** Github secret PAUSE_EXTERNAL_TRIGGER_QBITTORRENT_UNSTABLE is set; skipping trigger. ****"
|
echo "**** Github secret PAUSE_EXTERNAL_TRIGGER_QBITTORRENT_MASTER is set; skipping trigger. ****"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "**** External trigger running off of unstable branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_QBITTORRENT_UNSTABLE\". ****"
|
echo "**** External trigger running off of master branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_QBITTORRENT_MASTER\". ****"
|
||||||
echo "**** Retrieving external version ****"
|
echo "**** Retrieving external version ****"
|
||||||
EXT_RELEASE=$(curl -sX GET http://ppa.launchpad.net/qbittorrent-team/qbittorrent-unstable/ubuntu/dists/focal/main/binary-amd64/Packages.gz | gunzip -c |grep -A 7 -m 1 'Package: qbittorrent-nox' | awk -F ': ' '/Version/{print $2;exit}')
|
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
|
||||||
|
&& awk '/^P:'"qbittorrent-nox"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://')
|
||||||
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
|
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
|
||||||
echo "**** Can't retrieve external version, exiting ****"
|
echo "**** Can't retrieve external version, exiting ****"
|
||||||
FAILURE_REASON="Can't retrieve external version for qbittorrent branch unstable"
|
FAILURE_REASON="Can't retrieve external version for qbittorrent branch master"
|
||||||
GHA_TRIGGER_URL="https://github.com/linuxserver/docker-qbittorrent/actions/runs/${{ github.run_id }}"
|
GHA_TRIGGER_URL="https://github.com/linuxserver/docker-qbittorrent/actions/runs/${{ github.run_id }}"
|
||||||
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
|
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
|
||||||
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n**Trigger URL:** '"${GHA_TRIGGER_URL}"' \n"}],
|
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n**Trigger URL:** '"${GHA_TRIGGER_URL}"' \n"}],
|
||||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
EXT_RELEASE_CLEAN=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
|
EXT_RELEASE=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
|
||||||
echo "**** External version: ${EXT_RELEASE} ****"
|
echo "**** External version: ${EXT_RELEASE} ****"
|
||||||
echo "**** Retrieving last pushed version ****"
|
echo "**** Retrieving last pushed version ****"
|
||||||
image="linuxserver/qbittorrent"
|
image="linuxserver/qbittorrent"
|
||||||
tag="unstable"
|
tag="latest"
|
||||||
token=$(curl -sX GET \
|
token=$(curl -sX GET \
|
||||||
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Fqbittorrent%3Apull" \
|
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Fqbittorrent%3Apull" \
|
||||||
| jq -r '.token')
|
| jq -r '.token')
|
||||||
@@ -48,58 +49,49 @@ jobs:
|
|||||||
| jq -r '.config.digest')
|
| jq -r '.config.digest')
|
||||||
image_info=$(curl -sL \
|
image_info=$(curl -sL \
|
||||||
--header "Authorization: Bearer ${token}" \
|
--header "Authorization: Bearer ${token}" \
|
||||||
"https://ghcr.io/v2/${image}/blobs/${digest}" \
|
"https://ghcr.io/v2/${image}/blobs/${digest}")
|
||||||
| jq -r '.container_config')
|
if [[ $(echo $image_info | jq -r '.container_config') == "null" ]]; then
|
||||||
|
image_info=$(echo $image_info | jq -r '.config')
|
||||||
|
else
|
||||||
|
image_info=$(echo $image_info | jq -r '.container_config')
|
||||||
|
fi
|
||||||
IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}')
|
IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}')
|
||||||
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
|
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
|
||||||
if [ -z "${IMAGE_VERSION}" ]; then
|
if [ -z "${IMAGE_VERSION}" ]; then
|
||||||
echo "**** Can't retrieve last pushed version, exiting ****"
|
echo "**** Can't retrieve last pushed version, exiting ****"
|
||||||
FAILURE_REASON="Can't retrieve last pushed version for qbittorrent tag unstable"
|
FAILURE_REASON="Can't retrieve last pushed version for qbittorrent tag latest"
|
||||||
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
|
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
|
||||||
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
|
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
|
||||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "**** Last pushed version: ${IMAGE_VERSION} ****"
|
echo "**** Last pushed version: ${IMAGE_VERSION} ****"
|
||||||
if [ "${EXT_RELEASE_CLEAN}" == "${IMAGE_VERSION}" ]; then
|
if [ "${EXT_RELEASE}" == "${IMAGE_VERSION}" ]; then
|
||||||
echo "**** Version ${EXT_RELEASE} already pushed, exiting ****"
|
echo "**** Version ${EXT_RELEASE} already pushed, exiting ****"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-qbittorrent/job/unstable/lastBuild/api/json | jq -r '.building') == "true" ]; then
|
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-qbittorrent/job/master/lastBuild/api/json | jq -r '.building') == "true" ]; then
|
||||||
echo "**** New version ${EXT_RELEASE} found; but there already seems to be an active build on Jenkins; exiting ****"
|
echo "**** New version ${EXT_RELEASE} found; but there already seems to be an active build on Jenkins; exiting ****"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "**** New version ${EXT_RELEASE_CLEAN} found; old version was ${IMAGE_VERSION}. Checking artifacts. . . ****"
|
echo "**** New version ${EXT_RELEASE} found; old version was ${IMAGE_VERSION}. Triggering new build ****"
|
||||||
EXT_RELEASE_STRIPPED=$(echo ${EXT_RELEASE} | sed 's|^1:||')
|
response=$(curl -iX POST \
|
||||||
URL_AMD64="https://launchpad.net/~qbittorrent-team/+archive/ubuntu/qbittorrent-unstable/+files/qbittorrent-nox_${EXT_RELEASE_STRIPPED}_amd64.deb"
|
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-qbittorrent/job/master/buildWithParameters?PACKAGE_CHECK=false \
|
||||||
URL_ARMHF="https://launchpad.net/~qbittorrent-team/+archive/ubuntu/qbittorrent-unstable/+files/qbittorrent-nox_${EXT_RELEASE_STRIPPED}_armhf.deb"
|
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|")
|
||||||
URL_ARM64="https://launchpad.net/~qbittorrent-team/+archive/ubuntu/qbittorrent-unstable/+files/qbittorrent-nox_${EXT_RELEASE_STRIPPED}_arm64.deb"
|
echo "**** Jenkins job queue url: ${response%$'\r'} ****"
|
||||||
if curl -fL "${URL_AMD64}" >/dev/null && curl -fL "${URL_ARMHF}" >/dev/null && curl -fL "${URL_ARM64}" >/dev/null; then
|
echo "**** Sleeping 10 seconds until job starts ****"
|
||||||
echo "**** All artifacts seem to be published, triggering build ****"
|
sleep 10
|
||||||
response=$(curl -iX POST \
|
buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url')
|
||||||
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-qbittorrent/job/unstable/buildWithParameters?PACKAGE_CHECK=false \
|
buildurl="${buildurl%$'\r'}"
|
||||||
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|")
|
echo "**** Jenkins job build url: ${buildurl} ****"
|
||||||
echo "**** Jenkins job queue url: ${response%$'\r'} ****"
|
echo "**** Attempting to change the Jenkins job description ****"
|
||||||
echo "**** Sleeping 10 seconds until job starts ****"
|
curl -iX POST \
|
||||||
sleep 10
|
"${buildurl}submitDescription" \
|
||||||
buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url')
|
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \
|
||||||
buildurl="${buildurl%$'\r'}"
|
--data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
||||||
echo "**** Jenkins job build url: ${buildurl} ****"
|
--data-urlencode "Submit=Submit"
|
||||||
echo "**** Attempting to change the Jenkins job description ****"
|
echo "**** Notifying Discord ****"
|
||||||
curl -iX POST \
|
TRIGGER_REASON="A version change was detected for qbittorrent tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}"
|
||||||
"${buildurl}submitDescription" \
|
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
|
||||||
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \
|
"description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}],
|
||||||
--data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
--data-urlencode "Submit=Submit"
|
|
||||||
echo "**** Notifying Discord ****"
|
|
||||||
TRIGGER_REASON="A version change was detected for qbittorrent tag unstable. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}"
|
|
||||||
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
|
|
||||||
"description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}],
|
|
||||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
else
|
|
||||||
echo "**** Not all artifacts are published yet, skipping trigger ****"
|
|
||||||
FAILURE_REASON="New version ${EXT_RELEASE} for qbittorrent tag unstable is detected, however not all artifacts are uploaded to launchpad yet. Will try again in 1 hr."
|
|
||||||
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
|
|
||||||
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
|
|
||||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
4
.github/workflows/greetings.yml
vendored
4
.github/workflows/greetings.yml
vendored
@@ -8,6 +8,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/first-interaction@v1
|
- uses: actions/first-interaction@v1
|
||||||
with:
|
with:
|
||||||
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [bug](https://github.com/linuxserver/docker-qbittorrent/blob/unstable/.github/ISSUE_TEMPLATE/issue.bug.md) or [feature](https://github.com/linuxserver/docker-qbittorrent/blob/unstable/.github/ISSUE_TEMPLATE/issue.feature.md) issue templates!'
|
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [bug](https://github.com/linuxserver/docker-qbittorrent/blob/master/.github/ISSUE_TEMPLATE/issue.bug.md) or [feature](https://github.com/linuxserver/docker-qbittorrent/blob/master/.github/ISSUE_TEMPLATE/issue.feature.md) issue templates!'
|
||||||
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-qbittorrent/blob/unstable/.github/PULL_REQUEST_TEMPLATE.md)!'
|
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-qbittorrent/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!'
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
14
.github/workflows/package_trigger.yml
vendored
14
.github/workflows/package_trigger.yml
vendored
@@ -4,25 +4,25 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
package-trigger-unstable:
|
package-trigger-master:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.3
|
- uses: actions/checkout@v2.3.3
|
||||||
|
|
||||||
- name: Package Trigger
|
- name: Package Trigger
|
||||||
if: github.ref == 'refs/heads/unstable'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_QBITTORRENT_UNSTABLE }}" ]; then
|
if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_QBITTORRENT_MASTER }}" ]; then
|
||||||
echo "**** Github secret PAUSE_PACKAGE_TRIGGER_QBITTORRENT_UNSTABLE is set; skipping trigger. ****"
|
echo "**** Github secret PAUSE_PACKAGE_TRIGGER_QBITTORRENT_MASTER is set; skipping trigger. ****"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
if [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-qbittorrent/job/unstable/lastBuild/api/json | jq -r '.building') == "true" ]; then
|
if [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-qbittorrent/job/master/lastBuild/api/json | jq -r '.building') == "true" ]; then
|
||||||
echo "**** There already seems to be an active build on Jenkins; skipping package trigger ****"
|
echo "**** There already seems to be an active build on Jenkins; skipping package trigger ****"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "**** Package trigger running off of unstable branch. To disable, set a Github secret named \"PAUSE_PACKAGE_TRIGGER_QBITTORRENT_UNSTABLE\". ****"
|
echo "**** Package trigger running off of master branch. To disable, set a Github secret named \"PAUSE_PACKAGE_TRIGGER_QBITTORRENT_MASTER\". ****"
|
||||||
response=$(curl -iX POST \
|
response=$(curl -iX POST \
|
||||||
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-qbittorrent/job/unstable/buildWithParameters?PACKAGE_CHECK=true \
|
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-qbittorrent/job/master/buildWithParameters?PACKAGE_CHECK=true \
|
||||||
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|")
|
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|")
|
||||||
echo "**** Jenkins job queue url: ${response%$'\r'} ****"
|
echo "**** Jenkins job queue url: ${response%$'\r'} ****"
|
||||||
echo "**** Sleeping 10 seconds until job starts ****"
|
echo "**** Sleeping 10 seconds until job starts ****"
|
||||||
|
|||||||
62
Dockerfile
62
Dockerfile
@@ -1,15 +1,71 @@
|
|||||||
FROM ghcr.io/linuxserver/qbittorrent:unstable
|
FROM ghcr.io/linuxserver/baseimage-alpine:edge
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG QBITTORRENT_VERSION
|
ARG QBITTORRENT_VERSION
|
||||||
|
ARG QBT_VERSION
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
LABEL maintainer="thelamer"
|
LABEL maintainer="thespad"
|
||||||
|
|
||||||
|
# environment settings
|
||||||
|
ARG UNRAR_VERSION=6.1.7
|
||||||
|
ENV HOME="/config" \
|
||||||
|
XDG_CONFIG_HOME="/config" \
|
||||||
|
XDG_DATA_HOME="/config"
|
||||||
|
|
||||||
|
# install runtime packages and qbitorrent-cli
|
||||||
|
RUN \
|
||||||
|
echo "**** install build packages ****" && \
|
||||||
|
apk add --no-cache --upgrade --virtual=build-dependencies \
|
||||||
|
make \
|
||||||
|
g++ \
|
||||||
|
gcc && \
|
||||||
|
echo "**** install packages ****" && \
|
||||||
|
apk add -U --update --no-cache \
|
||||||
|
icu-libs \
|
||||||
|
libstdc++ \
|
||||||
|
openssl \
|
||||||
|
p7zip \
|
||||||
|
python3 && \
|
||||||
|
echo "**** install unrar from source ****" && \
|
||||||
|
mkdir /tmp/unrar && \
|
||||||
|
curl -o \
|
||||||
|
/tmp/unrar.tar.gz -L \
|
||||||
|
"https://www.rarlab.com/rar/unrarsrc-${UNRAR_VERSION}.tar.gz" && \
|
||||||
|
tar xf \
|
||||||
|
/tmp/unrar.tar.gz -C \
|
||||||
|
/tmp/unrar --strip-components=1 && \
|
||||||
|
cd /tmp/unrar && \
|
||||||
|
make && \
|
||||||
|
install -v -m755 unrar /usr/bin && \
|
||||||
|
if [ -z ${QBITTORRENT_VERSION+x} ]; then \
|
||||||
|
QBITTORRENT_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
|
||||||
|
&& awk '/^P:qbittorrent-nox$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
|
||||||
|
fi && \
|
||||||
|
apk add -U --upgrade --no-cache \
|
||||||
|
qbittorrent-nox==${QBITTORRENT_VERSION} && \
|
||||||
|
echo "***** install qbitorrent-cli ****" && \
|
||||||
|
mkdir /qbt && \
|
||||||
|
QBT_VERSION=$(curl -sL "https://api.github.com/repos/fedarovich/qbittorrent-cli/releases" \
|
||||||
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||||
|
curl -o \
|
||||||
|
/tmp/qbt.tar.gz -L \
|
||||||
|
"https://github.com/fedarovich/qbittorrent-cli/releases/download/${QBT_VERSION}/qbt-linux-alpine-x64-${QBT_VERSION:1}.tar.gz" && \
|
||||||
|
tar xf \
|
||||||
|
/tmp/qbt.tar.gz -C \
|
||||||
|
/qbt && \
|
||||||
|
echo "**** cleanup ****" && \
|
||||||
|
apk del --purge \
|
||||||
|
build-dependencies && \
|
||||||
|
rm -rf \
|
||||||
|
/root/.cache \
|
||||||
|
/tmp/*
|
||||||
|
|
||||||
# add local files
|
# add local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 6881 6881/udp 8080
|
EXPOSE 8080 6881 6881/udp
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|||||||
@@ -1,15 +1,71 @@
|
|||||||
FROM ghcr.io/linuxserver/qbittorrent:arm64v8-unstable
|
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-edge
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG QBITTORRENT_VERSION
|
ARG QBITTORRENT_VERSION
|
||||||
|
ARG QBT_VERSION
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
LABEL maintainer="thelamer"
|
LABEL maintainer="thespad"
|
||||||
|
|
||||||
|
# environment settings
|
||||||
|
ARG UNRAR_VERSION=6.1.7
|
||||||
|
ENV HOME="/config" \
|
||||||
|
XDG_CONFIG_HOME="/config" \
|
||||||
|
XDG_DATA_HOME="/config"
|
||||||
|
|
||||||
|
# install runtime packages and qbitorrent-cli
|
||||||
|
RUN \
|
||||||
|
echo "**** install build packages ****" && \
|
||||||
|
apk add --no-cache --upgrade --virtual=build-dependencies \
|
||||||
|
make \
|
||||||
|
g++ \
|
||||||
|
gcc && \
|
||||||
|
echo "**** install packages ****" && \
|
||||||
|
apk add -U --update --no-cache \
|
||||||
|
icu-libs \
|
||||||
|
libstdc++ \
|
||||||
|
openssl \
|
||||||
|
p7zip \
|
||||||
|
python3 && \
|
||||||
|
echo "**** install unrar from source ****" && \
|
||||||
|
mkdir /tmp/unrar && \
|
||||||
|
curl -o \
|
||||||
|
/tmp/unrar.tar.gz -L \
|
||||||
|
"https://www.rarlab.com/rar/unrarsrc-${UNRAR_VERSION}.tar.gz" && \
|
||||||
|
tar xf \
|
||||||
|
/tmp/unrar.tar.gz -C \
|
||||||
|
/tmp/unrar --strip-components=1 && \
|
||||||
|
cd /tmp/unrar && \
|
||||||
|
make && \
|
||||||
|
install -v -m755 unrar /usr/bin && \
|
||||||
|
if [ -z ${QBITTORRENT_VERSION+x} ]; then \
|
||||||
|
QBITTORRENT_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
|
||||||
|
&& awk '/^P:qbittorrent-nox$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
|
||||||
|
fi && \
|
||||||
|
apk add -U --upgrade --no-cache \
|
||||||
|
qbittorrent-nox==${QBITTORRENT_VERSION} && \
|
||||||
|
echo "***** install qbitorrent-cli ****" && \
|
||||||
|
mkdir /qbt && \
|
||||||
|
QBT_VERSION=$(curl -sL "https://api.github.com/repos/fedarovich/qbittorrent-cli/releases" \
|
||||||
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||||
|
curl -o \
|
||||||
|
/tmp/qbt.tar.gz -L \
|
||||||
|
"https://github.com/fedarovich/qbittorrent-cli/releases/download/${QBT_VERSION}/qbt-linux-alpine-arm64-${QBT_VERSION:1}.tar.gz" && \
|
||||||
|
tar xf \
|
||||||
|
/tmp/qbt.tar.gz -C \
|
||||||
|
/qbt && \
|
||||||
|
echo "**** cleanup ****" && \
|
||||||
|
apk del --purge \
|
||||||
|
build-dependencies && \
|
||||||
|
rm -rf \
|
||||||
|
/root/.cache \
|
||||||
|
/tmp/*
|
||||||
|
|
||||||
# add local files
|
# add local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 6881 6881/udp 8080
|
EXPOSE 8080 6881 6881/udp
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|||||||
@@ -1,15 +1,72 @@
|
|||||||
FROM ghcr.io/linuxserver/qbittorrent:arm32v7-unstable
|
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-edge
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG QBITTORRENT_VERSION
|
ARG QBITTORRENT_VERSION
|
||||||
|
ARG QBT_VERSION
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
LABEL maintainer="thelamer"
|
LABEL maintainer="thespad"
|
||||||
|
|
||||||
|
# environment settings
|
||||||
|
ARG UNRAR_VERSION=6.1.7
|
||||||
|
ENV HOME="/config" \
|
||||||
|
XDG_CONFIG_HOME="/config" \
|
||||||
|
XDG_DATA_HOME="/config"
|
||||||
|
|
||||||
|
# install runtime packages and qbitorrent-cli
|
||||||
|
RUN \
|
||||||
|
echo "**** install build packages ****" && \
|
||||||
|
apk add --no-cache --upgrade --virtual=build-dependencies \
|
||||||
|
make \
|
||||||
|
g++ \
|
||||||
|
gcc && \
|
||||||
|
echo "**** install packages ****" && \
|
||||||
|
apk add -U --update --no-cache \
|
||||||
|
icu-libs \
|
||||||
|
libc6-compat \
|
||||||
|
libstdc++ \
|
||||||
|
openssl \
|
||||||
|
p7zip \
|
||||||
|
python3 && \
|
||||||
|
echo "**** install unrar from source ****" && \
|
||||||
|
mkdir /tmp/unrar && \
|
||||||
|
curl -o \
|
||||||
|
/tmp/unrar.tar.gz -L \
|
||||||
|
"https://www.rarlab.com/rar/unrarsrc-${UNRAR_VERSION}.tar.gz" && \
|
||||||
|
tar xf \
|
||||||
|
/tmp/unrar.tar.gz -C \
|
||||||
|
/tmp/unrar --strip-components=1 && \
|
||||||
|
cd /tmp/unrar && \
|
||||||
|
make && \
|
||||||
|
install -v -m755 unrar /usr/bin && \
|
||||||
|
if [ -z ${QBITTORRENT_VERSION+x} ]; then \
|
||||||
|
QBITTORRENT_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
|
||||||
|
&& awk '/^P:qbittorrent-nox$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
|
||||||
|
fi && \
|
||||||
|
apk add -U --upgrade --no-cache \
|
||||||
|
qbittorrent-nox==${QBITTORRENT_VERSION} && \
|
||||||
|
echo "***** install qbitorrent-cli ****" && \
|
||||||
|
mkdir /qbt && \
|
||||||
|
QBT_VERSION=$(curl -sL "https://api.github.com/repos/fedarovich/qbittorrent-cli/releases" \
|
||||||
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||||
|
curl -o \
|
||||||
|
/tmp/qbt.tar.gz -L \
|
||||||
|
"https://github.com/fedarovich/qbittorrent-cli/releases/download/${QBT_VERSION}/qbt-linux-alpine-arm-${QBT_VERSION:1}.tar.gz" && \
|
||||||
|
tar xf \
|
||||||
|
/tmp/qbt.tar.gz -C \
|
||||||
|
/qbt && \
|
||||||
|
echo "**** cleanup ****" && \
|
||||||
|
apk del --purge \
|
||||||
|
build-dependencies && \
|
||||||
|
rm -rf \
|
||||||
|
/root/.cache \
|
||||||
|
/tmp/*
|
||||||
|
|
||||||
# add local files
|
# add local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 6881 6881/udp 8080
|
EXPOSE 8080 6881 6881/udp
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|||||||
126
Jenkinsfile
vendored
126
Jenkinsfile
vendored
@@ -24,7 +24,10 @@ pipeline {
|
|||||||
DOCKERHUB_IMAGE = 'linuxserver/qbittorrent'
|
DOCKERHUB_IMAGE = 'linuxserver/qbittorrent'
|
||||||
DEV_DOCKERHUB_IMAGE = 'lsiodev/qbittorrent'
|
DEV_DOCKERHUB_IMAGE = 'lsiodev/qbittorrent'
|
||||||
PR_DOCKERHUB_IMAGE = 'lspipepr/qbittorrent'
|
PR_DOCKERHUB_IMAGE = 'lspipepr/qbittorrent'
|
||||||
DIST_IMAGE = 'ubuntu'
|
DIST_IMAGE = 'alpine'
|
||||||
|
DIST_TAG = 'edge'
|
||||||
|
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/edge/community/'
|
||||||
|
DIST_REPO_PACKAGES = 'qbittorrent-nox'
|
||||||
MULTIARCH='true'
|
MULTIARCH='true'
|
||||||
CI='true'
|
CI='true'
|
||||||
CI_WEB='true'
|
CI_WEB='true'
|
||||||
@@ -42,7 +45,7 @@ pipeline {
|
|||||||
script{
|
script{
|
||||||
env.EXIT_STATUS = ''
|
env.EXIT_STATUS = ''
|
||||||
env.LS_RELEASE = sh(
|
env.LS_RELEASE = sh(
|
||||||
script: '''docker run --rm ghcr.io/linuxserver/alexeiled-skopeo sh -c 'skopeo inspect docker://docker.io/'${DOCKERHUB_IMAGE}':unstable 2>/dev/null' | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''',
|
script: '''docker run --rm ghcr.io/linuxserver/alexeiled-skopeo sh -c 'skopeo inspect docker://docker.io/'${DOCKERHUB_IMAGE}':latest 2>/dev/null' | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''',
|
||||||
returnStdout: true).trim()
|
returnStdout: true).trim()
|
||||||
env.LS_RELEASE_NOTES = sh(
|
env.LS_RELEASE_NOTES = sh(
|
||||||
script: '''cat readme-vars.yml | awk -F \\" '/date: "[0-9][0-9].[0-9][0-9].[0-9][0-9]:/ {print $4;exit;}' | sed -E ':a;N;$!ba;s/\\r{0,1}\\n/\\\\n/g' ''',
|
script: '''cat readme-vars.yml | awk -F \\" '/date: "[0-9][0-9].[0-9][0-9].[0-9][0-9]:/ {print $4;exit;}' | sed -E ':a;N;$!ba;s/\\r{0,1}\\n/\\\\n/g' ''',
|
||||||
@@ -56,7 +59,7 @@ pipeline {
|
|||||||
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT
|
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT
|
||||||
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'
|
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'
|
||||||
env.PULL_REQUEST = env.CHANGE_ID
|
env.PULL_REQUEST = env.CHANGE_ID
|
||||||
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.md ./.github/ISSUE_TEMPLATE/issue.feature.md ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/stale.yml ./.github/workflows/package_trigger.yml'
|
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.md ./.github/ISSUE_TEMPLATE/issue.feature.md ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/stale.yml ./.github/workflows/external_trigger.yml ./.github/workflows/package_trigger.yml'
|
||||||
}
|
}
|
||||||
script{
|
script{
|
||||||
env.LS_RELEASE_NUMBER = sh(
|
env.LS_RELEASE_NUMBER = sh(
|
||||||
@@ -99,14 +102,15 @@ pipeline {
|
|||||||
/* ########################
|
/* ########################
|
||||||
External Release Tagging
|
External Release Tagging
|
||||||
######################## */
|
######################## */
|
||||||
// If this is a custom command to determine version use that command
|
// If this is an alpine repo change for external version determine an md5 from the version string
|
||||||
stage("Set tag custom bash"){
|
stage("Set tag Alpine Repo"){
|
||||||
steps{
|
steps{
|
||||||
script{
|
script{
|
||||||
env.EXT_RELEASE = sh(
|
env.EXT_RELEASE = sh(
|
||||||
script: ''' curl -sX GET http://ppa.launchpad.net/qbittorrent-team/qbittorrent-unstable/ubuntu/dists/focal/main/binary-amd64/Packages.gz | gunzip -c |grep -A 7 -m 1 'Package: qbittorrent-nox' | awk -F ': ' '/Version/{print $2;exit}' ''',
|
script: '''curl -sL "${DIST_REPO}x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
|
||||||
|
&& awk '/^P:'"${DIST_REPO_PACKAGES}"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://' ''',
|
||||||
returnStdout: true).trim()
|
returnStdout: true).trim()
|
||||||
env.RELEASE_LINK = 'custom_command'
|
env.RELEASE_LINK = 'alpine_repo'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -144,10 +148,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If this is a unstable build use live docker endpoints
|
// If this is a master build use live docker endpoints
|
||||||
stage("Set ENV live build"){
|
stage("Set ENV live build"){
|
||||||
when {
|
when {
|
||||||
branch "unstable"
|
branch "master"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
@@ -157,20 +161,20 @@ pipeline {
|
|||||||
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/' + env.CONTAINER_NAME
|
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/' + env.CONTAINER_NAME
|
||||||
env.QUAYIMAGE = 'quay.io/linuxserver.io/' + env.CONTAINER_NAME
|
env.QUAYIMAGE = 'quay.io/linuxserver.io/' + env.CONTAINER_NAME
|
||||||
if (env.MULTIARCH == 'true') {
|
if (env.MULTIARCH == 'true') {
|
||||||
env.CI_TAGS = 'amd64-unstable-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm32v7-unstable-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm64v8-unstable-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm32v7-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
||||||
} else {
|
} else {
|
||||||
env.CI_TAGS = 'unstable-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
||||||
}
|
}
|
||||||
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
||||||
env.META_TAG = 'unstable-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
env.META_TAG = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
||||||
env.EXT_RELEASE_TAG = 'unstable-version-' + env.EXT_RELEASE_CLEAN
|
env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If this is a dev build use dev docker endpoints
|
// If this is a dev build use dev docker endpoints
|
||||||
stage("Set ENV dev build"){
|
stage("Set ENV dev build"){
|
||||||
when {
|
when {
|
||||||
not {branch "unstable"}
|
not {branch "master"}
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
@@ -180,13 +184,13 @@ pipeline {
|
|||||||
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lsiodev-' + env.CONTAINER_NAME
|
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lsiodev-' + env.CONTAINER_NAME
|
||||||
env.QUAYIMAGE = 'quay.io/linuxserver.io/lsiodev-' + env.CONTAINER_NAME
|
env.QUAYIMAGE = 'quay.io/linuxserver.io/lsiodev-' + env.CONTAINER_NAME
|
||||||
if (env.MULTIARCH == 'true') {
|
if (env.MULTIARCH == 'true') {
|
||||||
env.CI_TAGS = 'amd64-unstable-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm32v7-unstable-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm64v8-unstable-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm32v7-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
||||||
} else {
|
} else {
|
||||||
env.CI_TAGS = 'unstable-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
||||||
}
|
}
|
||||||
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
||||||
env.META_TAG = 'unstable-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
env.META_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
||||||
env.EXT_RELEASE_TAG = 'unstable-version-' + env.EXT_RELEASE_CLEAN
|
env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN
|
||||||
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DEV_DOCKERHUB_IMAGE + '/tags/'
|
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DEV_DOCKERHUB_IMAGE + '/tags/'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -203,13 +207,13 @@ pipeline {
|
|||||||
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lspipepr-' + env.CONTAINER_NAME
|
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lspipepr-' + env.CONTAINER_NAME
|
||||||
env.QUAYIMAGE = 'quay.io/linuxserver.io/lspipepr-' + env.CONTAINER_NAME
|
env.QUAYIMAGE = 'quay.io/linuxserver.io/lspipepr-' + env.CONTAINER_NAME
|
||||||
if (env.MULTIARCH == 'true') {
|
if (env.MULTIARCH == 'true') {
|
||||||
env.CI_TAGS = 'amd64-unstable-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + '|arm32v7-unstable-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + '|arm64v8-unstable-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + '|arm32v7-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
||||||
} else {
|
} else {
|
||||||
env.CI_TAGS = 'unstable-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
||||||
}
|
}
|
||||||
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
||||||
env.META_TAG = 'unstable-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
env.META_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
||||||
env.EXT_RELEASE_TAG = 'unstable-version-' + env.EXT_RELEASE_CLEAN
|
env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN
|
||||||
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/pull/' + env.PULL_REQUEST
|
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/pull/' + env.PULL_REQUEST
|
||||||
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.PR_DOCKERHUB_IMAGE + '/tags/'
|
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.PR_DOCKERHUB_IMAGE + '/tags/'
|
||||||
}
|
}
|
||||||
@@ -247,7 +251,7 @@ pipeline {
|
|||||||
// Use helper containers to render templated files
|
// Use helper containers to render templated files
|
||||||
stage('Update-Templates') {
|
stage('Update-Templates') {
|
||||||
when {
|
when {
|
||||||
branch "unstable"
|
branch "master"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
expression {
|
expression {
|
||||||
env.CONTAINER_NAME != null
|
env.CONTAINER_NAME != null
|
||||||
@@ -258,13 +262,13 @@ pipeline {
|
|||||||
set -e
|
set -e
|
||||||
TEMPDIR=$(mktemp -d)
|
TEMPDIR=$(mktemp -d)
|
||||||
docker pull ghcr.io/linuxserver/jenkins-builder:latest
|
docker pull ghcr.io/linuxserver/jenkins-builder:latest
|
||||||
docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH=unstable -v ${TEMPDIR}:/ansible/jenkins ghcr.io/linuxserver/jenkins-builder:latest
|
docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH=master -v ${TEMPDIR}:/ansible/jenkins ghcr.io/linuxserver/jenkins-builder:latest
|
||||||
# Stage 1 - Jenkinsfile update
|
# Stage 1 - Jenkinsfile update
|
||||||
if [[ "$(md5sum Jenkinsfile | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile | awk '{ print $1 }')" ]]; then
|
if [[ "$(md5sum Jenkinsfile | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile | awk '{ print $1 }')" ]]; then
|
||||||
mkdir -p ${TEMPDIR}/repo
|
mkdir -p ${TEMPDIR}/repo
|
||||||
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
|
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
|
||||||
cd ${TEMPDIR}/repo/${LS_REPO}
|
cd ${TEMPDIR}/repo/${LS_REPO}
|
||||||
git checkout -f unstable
|
git checkout -f master
|
||||||
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile ${TEMPDIR}/repo/${LS_REPO}/
|
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile ${TEMPDIR}/repo/${LS_REPO}/
|
||||||
git add Jenkinsfile
|
git add Jenkinsfile
|
||||||
git commit -m 'Bot Updating Templated Files'
|
git commit -m 'Bot Updating Templated Files'
|
||||||
@@ -287,7 +291,7 @@ pipeline {
|
|||||||
mkdir -p ${TEMPDIR}/repo
|
mkdir -p ${TEMPDIR}/repo
|
||||||
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
|
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
|
||||||
cd ${TEMPDIR}/repo/${LS_REPO}
|
cd ${TEMPDIR}/repo/${LS_REPO}
|
||||||
git checkout -f unstable
|
git checkout -f master
|
||||||
for i in ${TEMPLATES_TO_DELETE}; do
|
for i in ${TEMPLATES_TO_DELETE}; do
|
||||||
git rm "${i}"
|
git rm "${i}"
|
||||||
done
|
done
|
||||||
@@ -308,7 +312,7 @@ pipeline {
|
|||||||
mkdir -p ${TEMPDIR}/repo
|
mkdir -p ${TEMPDIR}/repo
|
||||||
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
|
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
|
||||||
cd ${TEMPDIR}/repo/${LS_REPO}
|
cd ${TEMPDIR}/repo/${LS_REPO}
|
||||||
git checkout -f unstable
|
git checkout -f master
|
||||||
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
|
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
|
||||||
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
|
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
|
||||||
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
|
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
|
||||||
@@ -343,9 +347,11 @@ pipeline {
|
|||||||
if [[ ("${BRANCH_NAME}" == "master") || ("${BRANCH_NAME}" == "main") ]] && [[ (! -f ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml) || ("$(md5sum ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml | awk '{ print $1 }')") ]]; then
|
if [[ ("${BRANCH_NAME}" == "master") || ("${BRANCH_NAME}" == "main") ]] && [[ (! -f ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml) || ("$(md5sum ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml | awk '{ print $1 }')") ]]; then
|
||||||
cd ${TEMPDIR}/unraid/templates/
|
cd ${TEMPDIR}/unraid/templates/
|
||||||
if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
|
if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
|
||||||
echo "Image is on the ignore list, removing Unraid template"
|
echo "Image is on the ignore list, marking Unraid template as deprecated"
|
||||||
git rm unraid/${CONTAINER_NAME}.xml || :
|
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
|
||||||
git commit -m 'Bot Removing Deprecated Unraid Template' || :
|
git add -u unraid/${CONTAINER_NAME}.xml
|
||||||
|
git mv unraid/${CONTAINER_NAME}.xml unraid/deprecated/${CONTAINER_NAME}.xml || :
|
||||||
|
git commit -m 'Bot Moving Deprecated Unraid Template' || :
|
||||||
else
|
else
|
||||||
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
|
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
|
||||||
git add unraid/${CONTAINER_NAME}.xml
|
git add unraid/${CONTAINER_NAME}.xml
|
||||||
@@ -364,7 +370,7 @@ pipeline {
|
|||||||
// Exit the build if the Templated files were just updated
|
// Exit the build if the Templated files were just updated
|
||||||
stage('Template-exit') {
|
stage('Template-exit') {
|
||||||
when {
|
when {
|
||||||
branch "unstable"
|
branch "master"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
environment name: 'FILES_UPDATED', value: 'true'
|
environment name: 'FILES_UPDATED', value: 'true'
|
||||||
expression {
|
expression {
|
||||||
@@ -403,7 +409,7 @@ pipeline {
|
|||||||
// Add package to Scarf.sh and set permissions
|
// Add package to Scarf.sh and set permissions
|
||||||
stage("Scarf.sh package registry"){
|
stage("Scarf.sh package registry"){
|
||||||
when {
|
when {
|
||||||
branch "unstable"
|
branch "master"
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
environment name: 'EXIT_STATUS', value: ''
|
||||||
}
|
}
|
||||||
steps{
|
steps{
|
||||||
@@ -560,7 +566,7 @@ pipeline {
|
|||||||
// Take the image we just built and dump package versions for comparison
|
// Take the image we just built and dump package versions for comparison
|
||||||
stage('Update-packages') {
|
stage('Update-packages') {
|
||||||
when {
|
when {
|
||||||
branch "unstable"
|
branch "master"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
environment name: 'EXIT_STATUS', value: ''
|
||||||
}
|
}
|
||||||
@@ -597,7 +603,7 @@ pipeline {
|
|||||||
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
|
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
|
||||||
if [ "${NEW_PACKAGE_TAG}" != "${PACKAGE_TAG}" ]; then
|
if [ "${NEW_PACKAGE_TAG}" != "${PACKAGE_TAG}" ]; then
|
||||||
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
|
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
|
||||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f unstable
|
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f master
|
||||||
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
|
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
|
||||||
cd ${TEMPDIR}/${LS_REPO}/
|
cd ${TEMPDIR}/${LS_REPO}/
|
||||||
wait
|
wait
|
||||||
@@ -621,7 +627,7 @@ pipeline {
|
|||||||
// Exit the build if the package file was just updated
|
// Exit the build if the package file was just updated
|
||||||
stage('PACKAGE-exit') {
|
stage('PACKAGE-exit') {
|
||||||
when {
|
when {
|
||||||
branch "unstable"
|
branch "master"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
environment name: 'PACKAGE_UPDATED', value: 'true'
|
environment name: 'PACKAGE_UPDATED', value: 'true'
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
environment name: 'EXIT_STATUS', value: ''
|
||||||
@@ -642,7 +648,7 @@ pipeline {
|
|||||||
// Exit the build if this is just a package check and there are no changes to push
|
// Exit the build if this is just a package check and there are no changes to push
|
||||||
stage('PACKAGECHECK-exit') {
|
stage('PACKAGECHECK-exit') {
|
||||||
when {
|
when {
|
||||||
branch "unstable"
|
branch "master"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
environment name: 'PACKAGE_UPDATED', value: 'false'
|
environment name: 'PACKAGE_UPDATED', value: 'false'
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
environment name: 'EXIT_STATUS', value: ''
|
||||||
@@ -708,7 +714,7 @@ pipeline {
|
|||||||
-e DO_REGION="ams3" \
|
-e DO_REGION="ams3" \
|
||||||
-e DO_BUCKET="lsio-ci" \
|
-e DO_BUCKET="lsio-ci" \
|
||||||
-t ghcr.io/linuxserver/ci:latest \
|
-t ghcr.io/linuxserver/ci:latest \
|
||||||
python /ci/ci.py'''
|
python3 test_build.py'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -745,12 +751,12 @@ pipeline {
|
|||||||
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
|
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
|
||||||
for PUSHIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${QUAYIMAGE}" "${IMAGE}"; do
|
for PUSHIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${QUAYIMAGE}" "${IMAGE}"; do
|
||||||
docker tag ${IMAGE}:${META_TAG} ${PUSHIMAGE}:${META_TAG}
|
docker tag ${IMAGE}:${META_TAG} ${PUSHIMAGE}:${META_TAG}
|
||||||
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:unstable
|
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:latest
|
||||||
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:${EXT_RELEASE_TAG}
|
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:${EXT_RELEASE_TAG}
|
||||||
if [ -n "${SEMVER}" ]; then
|
if [ -n "${SEMVER}" ]; then
|
||||||
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:${SEMVER}
|
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:${SEMVER}
|
||||||
fi
|
fi
|
||||||
docker push ${PUSHIMAGE}:unstable
|
docker push ${PUSHIMAGE}:latest
|
||||||
docker push ${PUSHIMAGE}:${META_TAG}
|
docker push ${PUSHIMAGE}:${META_TAG}
|
||||||
docker push ${PUSHIMAGE}:${EXT_RELEASE_TAG}
|
docker push ${PUSHIMAGE}:${EXT_RELEASE_TAG}
|
||||||
if [ -n "${SEMVER}" ]; then
|
if [ -n "${SEMVER}" ]; then
|
||||||
@@ -764,7 +770,7 @@ pipeline {
|
|||||||
docker rmi \
|
docker rmi \
|
||||||
${DELETEIMAGE}:${META_TAG} \
|
${DELETEIMAGE}:${META_TAG} \
|
||||||
${DELETEIMAGE}:${EXT_RELEASE_TAG} \
|
${DELETEIMAGE}:${EXT_RELEASE_TAG} \
|
||||||
${DELETEIMAGE}:unstable || :
|
${DELETEIMAGE}:latest || :
|
||||||
if [ -n "${SEMVER}" ]; then
|
if [ -n "${SEMVER}" ]; then
|
||||||
docker rmi ${DELETEIMAGE}:${SEMVER} || :
|
docker rmi ${DELETEIMAGE}:${SEMVER} || :
|
||||||
fi
|
fi
|
||||||
@@ -811,9 +817,9 @@ pipeline {
|
|||||||
docker tag ${IMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG}
|
docker tag ${IMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG}
|
||||||
docker tag ${IMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG}
|
docker tag ${IMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG}
|
||||||
docker tag ${IMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
docker tag ${IMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
||||||
docker tag ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-unstable
|
docker tag ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-latest
|
||||||
docker tag ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-unstable
|
docker tag ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-latest
|
||||||
docker tag ${MANIFESTIMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-unstable
|
docker tag ${MANIFESTIMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-latest
|
||||||
docker tag ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG}
|
docker tag ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG}
|
||||||
docker tag ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${EXT_RELEASE_TAG}
|
docker tag ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${EXT_RELEASE_TAG}
|
||||||
docker tag ${MANIFESTIMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
|
docker tag ${MANIFESTIMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
|
||||||
@@ -825,9 +831,9 @@ pipeline {
|
|||||||
docker push ${MANIFESTIMAGE}:amd64-${META_TAG}
|
docker push ${MANIFESTIMAGE}:amd64-${META_TAG}
|
||||||
docker push ${MANIFESTIMAGE}:arm32v7-${META_TAG}
|
docker push ${MANIFESTIMAGE}:arm32v7-${META_TAG}
|
||||||
docker push ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
docker push ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
||||||
docker push ${MANIFESTIMAGE}:amd64-unstable
|
docker push ${MANIFESTIMAGE}:amd64-latest
|
||||||
docker push ${MANIFESTIMAGE}:arm32v7-unstable
|
docker push ${MANIFESTIMAGE}:arm32v7-latest
|
||||||
docker push ${MANIFESTIMAGE}:arm64v8-unstable
|
docker push ${MANIFESTIMAGE}:arm64v8-latest
|
||||||
docker push ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG}
|
docker push ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG}
|
||||||
docker push ${MANIFESTIMAGE}:arm32v7-${EXT_RELEASE_TAG}
|
docker push ${MANIFESTIMAGE}:arm32v7-${EXT_RELEASE_TAG}
|
||||||
docker push ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
|
docker push ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
|
||||||
@@ -836,10 +842,10 @@ pipeline {
|
|||||||
docker push ${MANIFESTIMAGE}:arm32v7-${SEMVER}
|
docker push ${MANIFESTIMAGE}:arm32v7-${SEMVER}
|
||||||
docker push ${MANIFESTIMAGE}:arm64v8-${SEMVER}
|
docker push ${MANIFESTIMAGE}:arm64v8-${SEMVER}
|
||||||
fi
|
fi
|
||||||
docker manifest push --purge ${MANIFESTIMAGE}:unstable || :
|
docker manifest push --purge ${MANIFESTIMAGE}:latest || :
|
||||||
docker manifest create ${MANIFESTIMAGE}:unstable ${MANIFESTIMAGE}:amd64-unstable ${MANIFESTIMAGE}:arm32v7-unstable ${MANIFESTIMAGE}:arm64v8-unstable
|
docker manifest create ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm32v7-latest ${MANIFESTIMAGE}:arm64v8-latest
|
||||||
docker manifest annotate ${MANIFESTIMAGE}:unstable ${MANIFESTIMAGE}:arm32v7-unstable --os linux --arch arm
|
docker manifest annotate ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:arm32v7-latest --os linux --arch arm
|
||||||
docker manifest annotate ${MANIFESTIMAGE}:unstable ${MANIFESTIMAGE}:arm64v8-unstable --os linux --arch arm64 --variant v8
|
docker manifest annotate ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:arm64v8-latest --os linux --arch arm64 --variant v8
|
||||||
docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG} || :
|
docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG} || :
|
||||||
docker manifest create ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
docker manifest create ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
||||||
docker manifest annotate ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG} --os linux --arch arm
|
docker manifest annotate ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG} --os linux --arch arm
|
||||||
@@ -854,7 +860,7 @@ pipeline {
|
|||||||
docker manifest annotate ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:arm32v7-${SEMVER} --os linux --arch arm
|
docker manifest annotate ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:arm32v7-${SEMVER} --os linux --arch arm
|
||||||
docker manifest annotate ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER} --os linux --arch arm64 --variant v8
|
docker manifest annotate ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER} --os linux --arch arm64 --variant v8
|
||||||
fi
|
fi
|
||||||
docker manifest push --purge ${MANIFESTIMAGE}:unstable
|
docker manifest push --purge ${MANIFESTIMAGE}:latest
|
||||||
docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG}
|
docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG}
|
||||||
docker manifest push --purge ${MANIFESTIMAGE}:${EXT_RELEASE_TAG}
|
docker manifest push --purge ${MANIFESTIMAGE}:${EXT_RELEASE_TAG}
|
||||||
if [ -n "${SEMVER}" ]; then
|
if [ -n "${SEMVER}" ]; then
|
||||||
@@ -867,13 +873,13 @@ pipeline {
|
|||||||
for DELETEIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${QUAYIMAGE}" "${IMAGE}"; do
|
for DELETEIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${QUAYIMAGE}" "${IMAGE}"; do
|
||||||
docker rmi \
|
docker rmi \
|
||||||
${DELETEIMAGE}:amd64-${META_TAG} \
|
${DELETEIMAGE}:amd64-${META_TAG} \
|
||||||
${DELETEIMAGE}:amd64-unstable \
|
${DELETEIMAGE}:amd64-latest \
|
||||||
${DELETEIMAGE}:amd64-${EXT_RELEASE_TAG} \
|
${DELETEIMAGE}:amd64-${EXT_RELEASE_TAG} \
|
||||||
${DELETEIMAGE}:arm32v7-${META_TAG} \
|
${DELETEIMAGE}:arm32v7-${META_TAG} \
|
||||||
${DELETEIMAGE}:arm32v7-unstable \
|
${DELETEIMAGE}:arm32v7-latest \
|
||||||
${DELETEIMAGE}:arm32v7-${EXT_RELEASE_TAG} \
|
${DELETEIMAGE}:arm32v7-${EXT_RELEASE_TAG} \
|
||||||
${DELETEIMAGE}:arm64v8-${META_TAG} \
|
${DELETEIMAGE}:arm64v8-${META_TAG} \
|
||||||
${DELETEIMAGE}:arm64v8-unstable \
|
${DELETEIMAGE}:arm64v8-latest \
|
||||||
${DELETEIMAGE}:arm64v8-${EXT_RELEASE_TAG} || :
|
${DELETEIMAGE}:arm64v8-${EXT_RELEASE_TAG} || :
|
||||||
if [ -n "${SEMVER}" ]; then
|
if [ -n "${SEMVER}" ]; then
|
||||||
docker rmi \
|
docker rmi \
|
||||||
@@ -892,7 +898,7 @@ pipeline {
|
|||||||
// If this is a public release tag it in the LS Github
|
// If this is a public release tag it in the LS Github
|
||||||
stage('Github-Tag-Push-Release') {
|
stage('Github-Tag-Push-Release') {
|
||||||
when {
|
when {
|
||||||
branch "unstable"
|
branch "master"
|
||||||
expression {
|
expression {
|
||||||
env.LS_RELEASE != env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
env.LS_RELEASE != env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
||||||
}
|
}
|
||||||
@@ -904,17 +910,17 @@ pipeline {
|
|||||||
sh '''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
|
sh '''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
|
||||||
-d '{"tag":"'${META_TAG}'",\
|
-d '{"tag":"'${META_TAG}'",\
|
||||||
"object": "'${COMMIT_SHA}'",\
|
"object": "'${COMMIT_SHA}'",\
|
||||||
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to unstable",\
|
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to master",\
|
||||||
"type": "commit",\
|
"type": "commit",\
|
||||||
"tagger": {"name": "LinuxServer Jenkins","email": "jenkins@linuxserver.io","date": "'${GITHUB_DATE}'"}}' '''
|
"tagger": {"name": "LinuxServer Jenkins","email": "jenkins@linuxserver.io","date": "'${GITHUB_DATE}'"}}' '''
|
||||||
echo "Pushing New release for Tag"
|
echo "Pushing New release for Tag"
|
||||||
sh '''#! /bin/bash
|
sh '''#! /bin/bash
|
||||||
echo "Updating to ${EXT_RELEASE_CLEAN}" > releasebody.json
|
echo "Updating external repo packages to ${EXT_RELEASE_CLEAN}" > releasebody.json
|
||||||
echo '{"tag_name":"'${META_TAG}'",\
|
echo '{"tag_name":"'${META_TAG}'",\
|
||||||
"target_commitish": "unstable",\
|
"target_commitish": "master",\
|
||||||
"name": "'${META_TAG}'",\
|
"name": "'${META_TAG}'",\
|
||||||
"body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start
|
"body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Repo Changes:**\\n\\n' > start
|
||||||
printf '","draft": false,"prerelease": true}' >> releasebody.json
|
printf '","draft": false,"prerelease": false}' >> releasebody.json
|
||||||
paste -d'\\0' start releasebody.json > releasebody.json.done
|
paste -d'\\0' start releasebody.json > releasebody.json.done
|
||||||
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''
|
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''
|
||||||
}
|
}
|
||||||
|
|||||||
68
README.md
68
README.md
@@ -1,5 +1,5 @@
|
|||||||
<!-- DO NOT EDIT THIS FILE MANUALLY -->
|
<!-- DO NOT EDIT THIS FILE MANUALLY -->
|
||||||
<!-- Please read the https://github.com/linuxserver/docker-qbittorrent/blob/unstable/.github/CONTRIBUTING.md -->
|
<!-- Please read the https://github.com/linuxserver/docker-qbittorrent/blob/master/.github/CONTRIBUTING.md -->
|
||||||
|
|
||||||
[](https://linuxserver.io)
|
[](https://linuxserver.io)
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ Find us at:
|
|||||||
[](https://quay.io/repository/linuxserver.io/qbittorrent)
|
[](https://quay.io/repository/linuxserver.io/qbittorrent)
|
||||||
[](https://hub.docker.com/r/linuxserver/qbittorrent)
|
[](https://hub.docker.com/r/linuxserver/qbittorrent)
|
||||||
[](https://hub.docker.com/r/linuxserver/qbittorrent)
|
[](https://hub.docker.com/r/linuxserver/qbittorrent)
|
||||||
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-qbittorrent/job/unstable/)
|
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-qbittorrent/job/master/)
|
||||||
[](https://ci-tests.linuxserver.io/linuxserver/qbittorrent/latest/index.html)
|
[](https://ci-tests.linuxserver.io/linuxserver/qbittorrent/latest/index.html)
|
||||||
|
|
||||||
The [Qbittorrent](https://www.qbittorrent.org/) project aims to provide an open-source software alternative to µTorrent. qBittorrent is based on the Qt toolkit and libtorrent-rasterbar library.
|
The [Qbittorrent](https://www.qbittorrent.org/) project aims to provide an open-source software alternative to µTorrent. qBittorrent is based on the Qt toolkit and libtorrent-rasterbar library.
|
||||||
@@ -46,25 +46,26 @@ The [Qbittorrent](https://www.qbittorrent.org/) project aims to provide an open-
|
|||||||
|
|
||||||
## Supported Architectures
|
## Supported Architectures
|
||||||
|
|
||||||
Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
|
We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
|
||||||
|
|
||||||
Simply pulling `lscr.io/linuxserver/qbittorrent` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
|
Simply pulling `lscr.io/linuxserver/qbittorrent:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
|
||||||
|
|
||||||
The architectures supported by this image are:
|
The architectures supported by this image are:
|
||||||
|
|
||||||
| Architecture | Tag |
|
| Architecture | Available | Tag |
|
||||||
| :----: | --- |
|
| :----: | :----: | ---- |
|
||||||
| x86-64 | amd64-latest |
|
| x86-64 | ✅ | amd64-\<version tag\> |
|
||||||
| arm64 | arm64v8-latest |
|
| arm64 | ✅ | arm64v8-\<version tag\> |
|
||||||
| armhf | arm32v7-latest |
|
| armhf| ✅ | arm32v7-\<version tag\> |
|
||||||
|
|
||||||
## Version Tags
|
## Version Tags
|
||||||
|
|
||||||
This image provides various versions that are available via tags. `latest` tag usually provides the latest stable version. Others are considered under development and caution must be exercised when using them.
|
This image provides various versions that are available via tags. Please read the descriptions carefully and exercise caution when using unstable or development tags.
|
||||||
|
|
||||||
| Tag | Description |
|
| Tag | Available | Description |
|
||||||
| :----: | --- |
|
| :----: | :----: |--- |
|
||||||
| latest | Stable qbittorrent releases |
|
| latest | ✅ | Stable qbittorrent releases |
|
||||||
|
| libtorrentv1 | ✅ | Static qbittorrent builds using libtorrent v1 |
|
||||||
|
|
||||||
## Application Setup
|
## Application Setup
|
||||||
|
|
||||||
@@ -72,7 +73,6 @@ The webui is at `<your-ip>:8080` and the default username/password is `admin/adm
|
|||||||
|
|
||||||
Change username/password via the webui in the webui section of settings.
|
Change username/password via the webui in the webui section of settings.
|
||||||
|
|
||||||
|
|
||||||
### WEBUI_PORT variable
|
### WEBUI_PORT variable
|
||||||
|
|
||||||
Due to issues with CSRF and port mapping, should you require to alter the port for the webui you need to change both sides of the -p 8080 switch AND set the WEBUI_PORT variable to the new port.
|
Due to issues with CSRF and port mapping, should you require to alter the port for the webui you need to change both sides of the -p 8080 switch AND set the WEBUI_PORT variable to the new port.
|
||||||
@@ -85,7 +85,7 @@ If you have no webui , check the file /config/qBittorrent/qBittorrent.conf
|
|||||||
|
|
||||||
edit or add the following lines
|
edit or add the following lines
|
||||||
|
|
||||||
```
|
```text
|
||||||
WebUI\Address=*
|
WebUI\Address=*
|
||||||
|
|
||||||
WebUI\ServerDomains=*
|
WebUI\ServerDomains=*
|
||||||
@@ -104,7 +104,7 @@ Here are some example snippets to help you get started creating a container.
|
|||||||
version: "2.1"
|
version: "2.1"
|
||||||
services:
|
services:
|
||||||
qbittorrent:
|
qbittorrent:
|
||||||
image: lscr.io/linuxserver/qbittorrent
|
image: lscr.io/linuxserver/qbittorrent:latest
|
||||||
container_name: qbittorrent
|
container_name: qbittorrent
|
||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
@@ -112,12 +112,12 @@ services:
|
|||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
- WEBUI_PORT=8080
|
- WEBUI_PORT=8080
|
||||||
volumes:
|
volumes:
|
||||||
- </path/to/appdata/config>:/config
|
- /path/to/appdata/config:/config
|
||||||
- </path/to/downloads>:/downloads
|
- /path/to/downloads:/downloads
|
||||||
ports:
|
ports:
|
||||||
|
- 8080:8080
|
||||||
- 6881:6881
|
- 6881:6881
|
||||||
- 6881:6881/udp
|
- 6881:6881/udp
|
||||||
- 8080:8080
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -130,13 +130,13 @@ docker run -d \
|
|||||||
-e PGID=1000 \
|
-e PGID=1000 \
|
||||||
-e TZ=Europe/London \
|
-e TZ=Europe/London \
|
||||||
-e WEBUI_PORT=8080 \
|
-e WEBUI_PORT=8080 \
|
||||||
|
-p 8080:8080 \
|
||||||
-p 6881:6881 \
|
-p 6881:6881 \
|
||||||
-p 6881:6881/udp \
|
-p 6881:6881/udp \
|
||||||
-p 8080:8080 \
|
-v /path/to/appdata/config:/config \
|
||||||
-v </path/to/appdata/config>:/config \
|
-v /path/to/downloads:/downloads \
|
||||||
-v </path/to/downloads>:/downloads \
|
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
lscr.io/linuxserver/qbittorrent
|
lscr.io/linuxserver/qbittorrent:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
@@ -145,9 +145,9 @@ Container images are configured using parameters passed at runtime (such as thos
|
|||||||
|
|
||||||
| Parameter | Function |
|
| Parameter | Function |
|
||||||
| :----: | --- |
|
| :----: | --- |
|
||||||
|
| `-p 8080` | WebUI |
|
||||||
| `-p 6881` | tcp connection port |
|
| `-p 6881` | tcp connection port |
|
||||||
| `-p 6881/udp` | udp connection port |
|
| `-p 6881/udp` | udp connection port |
|
||||||
| `-p 8080` | http gui |
|
|
||||||
| `-e PUID=1000` | for UserID - see below for explanation |
|
| `-e PUID=1000` | for UserID - see below for explanation |
|
||||||
| `-e PGID=1000` | for GroupID - see below for explanation |
|
| `-e PGID=1000` | for GroupID - see below for explanation |
|
||||||
| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London |
|
| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London |
|
||||||
@@ -198,7 +198,7 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
|
|||||||
* container version number
|
* container version number
|
||||||
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' qbittorrent`
|
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' qbittorrent`
|
||||||
* image version number
|
* image version number
|
||||||
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/qbittorrent`
|
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/qbittorrent:latest`
|
||||||
|
|
||||||
## Updating Info
|
## Updating Info
|
||||||
|
|
||||||
@@ -216,7 +216,7 @@ Below are the instructions for updating containers:
|
|||||||
|
|
||||||
### Via Docker Run
|
### Via Docker Run
|
||||||
|
|
||||||
* Update the image: `docker pull lscr.io/linuxserver/qbittorrent`
|
* Update the image: `docker pull lscr.io/linuxserver/qbittorrent:latest`
|
||||||
* Stop the running container: `docker stop qbittorrent`
|
* Stop the running container: `docker stop qbittorrent`
|
||||||
* Delete the container: `docker rm qbittorrent`
|
* Delete the container: `docker rm qbittorrent`
|
||||||
* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
|
* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
|
||||||
@@ -264,11 +264,21 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **31.10.22:** - Add libtorrentv1 branch.
|
||||||
|
* **31.08.22:** - Rebase to Alpine Edge again to follow latest releases.
|
||||||
|
* **12.08.22:** - Bump unrar to 6.1.7.
|
||||||
|
* **16.06.22:** - Rebase to Alpine 3.16 from edge.
|
||||||
|
* **25.05.22:** - Fetch qbitorrent-cli from upstream repo.
|
||||||
|
* **02.03.22:** - Add unrar, 7zip, and qbitorrent-cli.
|
||||||
|
* **01.03.22:** - Add python for search plugin support.
|
||||||
|
* **23.02.22:** - Rebase to Alpine Edge, install from Alpine repos.
|
||||||
|
* **19.02.22:** - Add jq to build-stage
|
||||||
|
* **07.01.22:** - Rebase to Alpine, build from source.
|
||||||
* **06.01.22:** - Deprecate unstable branch.
|
* **06.01.22:** - Deprecate unstable branch.
|
||||||
* **24.03.21:** - Rebase to focal.
|
* **10.02.21:** - Rebase to focal.
|
||||||
* **20.01.21:** - Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information.
|
* **20.01.21:** - Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information.
|
||||||
* **05.07.20:** - Shift to Python3
|
* **12.11.20:** - Stop creating /config/data directory on startup
|
||||||
* **31.10.19:** - Adding unstable tag.
|
* **03.04.20:** - Fix adding search engine plugin
|
||||||
* **02.08.19:** - Add qbitorrent-cli for processing scripts.
|
* **02.08.19:** - Add qbitorrent-cli for processing scripts.
|
||||||
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
||||||
* **14.01.19:** - Rebase to Ubuntu, add multi arch and pipeline logic.
|
* **14.01.19:** - Rebase to Ubuntu, add multi arch and pipeline logic.
|
||||||
|
|||||||
@@ -2,12 +2,10 @@
|
|||||||
|
|
||||||
# jenkins variables
|
# jenkins variables
|
||||||
project_name: docker-qbittorrent
|
project_name: docker-qbittorrent
|
||||||
external_type: na
|
external_type: alpine_repo
|
||||||
custom_version_command: "curl -sX GET http://ppa.launchpad.net/qbittorrent-team/qbittorrent-unstable/ubuntu/dists/focal/main/binary-amd64/Packages.gz | gunzip -c |grep -A 7 -m 1 'Package: qbittorrent-nox' | awk -F ': ' '/Version/{print $2;exit}'"
|
release_type: stable
|
||||||
release_type: prerelease
|
release_tag: latest
|
||||||
release_tag: unstable
|
ls_branch: master
|
||||||
ls_branch: unstable
|
|
||||||
custom_external_trigger: true
|
|
||||||
repo_vars:
|
repo_vars:
|
||||||
- CONTAINER_NAME = 'qbittorrent'
|
- CONTAINER_NAME = 'qbittorrent'
|
||||||
- BUILD_VERSION_ARG = 'QBITTORRENT_VERSION'
|
- BUILD_VERSION_ARG = 'QBITTORRENT_VERSION'
|
||||||
@@ -16,7 +14,10 @@ repo_vars:
|
|||||||
- DOCKERHUB_IMAGE = 'linuxserver/qbittorrent'
|
- DOCKERHUB_IMAGE = 'linuxserver/qbittorrent'
|
||||||
- DEV_DOCKERHUB_IMAGE = 'lsiodev/qbittorrent'
|
- DEV_DOCKERHUB_IMAGE = 'lsiodev/qbittorrent'
|
||||||
- PR_DOCKERHUB_IMAGE = 'lspipepr/qbittorrent'
|
- PR_DOCKERHUB_IMAGE = 'lspipepr/qbittorrent'
|
||||||
- DIST_IMAGE = 'ubuntu'
|
- DIST_IMAGE = 'alpine'
|
||||||
|
- DIST_TAG = 'edge'
|
||||||
|
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/edge/community/'
|
||||||
|
- DIST_REPO_PACKAGES = 'qbittorrent-nox'
|
||||||
- MULTIARCH='true'
|
- MULTIARCH='true'
|
||||||
- CI='true'
|
- CI='true'
|
||||||
- CI_WEB='true'
|
- CI_WEB='true'
|
||||||
|
|||||||
@@ -1,193 +1,64 @@
|
|||||||
adduser3.118ubuntu2
|
alpine-baselayout-3.4.0-r0
|
||||||
apt2.0.6
|
alpine-baselayout-data-3.4.0-r0
|
||||||
apt-utils2.0.6
|
alpine-keys-2.4-r1
|
||||||
base-files11ubuntu5.4
|
apk-tools-2.12.10-r1
|
||||||
base-passwd3.5.47
|
bash-5.2.2-r1
|
||||||
bash5.0-6ubuntu1.1
|
brotli-libs-1.0.9-r9
|
||||||
bsdutils1:2.34-0.1ubuntu9.1
|
busybox-1.35.0-r27
|
||||||
bzip21.0.8-2
|
busybox-binsh-1.35.0-r27
|
||||||
ca-certificates20210119~20.04.2
|
ca-certificates-20220614-r2
|
||||||
coreutils8.30-3ubuntu2
|
ca-certificates-bundle-20220614-r2
|
||||||
curl7.68.0-1ubuntu2.7
|
coreutils-9.1-r0
|
||||||
dash0.5.10.2-6
|
curl-7.86.0-r1
|
||||||
dbus1.12.16-2ubuntu2.1
|
dbus-libs-1.14.4-r0
|
||||||
debconf1.5.73
|
double-conversion-3.2.1-r0
|
||||||
debianutils4.9.1
|
gdbm-1.23-r0
|
||||||
diffutils1:3.7-3
|
glib-2.74.1-r2
|
||||||
dirmngr2.2.19-3ubuntu2.1
|
icu-data-en-72.1-r1
|
||||||
dpkg1.19.7ubuntu3
|
icu-libs-72.1-r1
|
||||||
e2fsprogs1.45.5-2ubuntu1
|
jq-1.6-r2
|
||||||
fdisk2.34-0.1ubuntu9.1
|
libacl-2.3.1-r1
|
||||||
file1:5.38-4
|
libattr-2.5.1-r1
|
||||||
findutils4.7.0-1ubuntu1
|
libb2-0.98.1-r2
|
||||||
gcc-10-base10.3.0-1ubuntu1~20.04
|
libblkid-2.38.1-r0
|
||||||
geoip-bin1.6.12-6build1
|
libbz2-1.0.8-r3
|
||||||
geoip-database20191224-2
|
libc-utils-0.7.2-r3
|
||||||
gnupg2.2.19-3ubuntu2.1
|
libcrypto3-3.0.7-r0
|
||||||
gnupg-l10n2.2.19-3ubuntu2.1
|
libcurl-7.86.0-r1
|
||||||
gnupg-utils2.2.19-3ubuntu2.1
|
libexpat-2.5.0-r0
|
||||||
gpg2.2.19-3ubuntu2.1
|
libffi-3.4.4-r0
|
||||||
gpg-agent2.2.19-3ubuntu2.1
|
libgcc-12.2.1_git20220924-r4
|
||||||
gpgconf2.2.19-3ubuntu2.1
|
libgomp-12.2.1_git20220924-r4
|
||||||
gpgsm2.2.19-3ubuntu2.1
|
libintl-0.21.1-r1
|
||||||
gpgv2.2.19-3ubuntu2.1
|
libmount-2.38.1-r0
|
||||||
gpg-wks-client2.2.19-3ubuntu2.1
|
libpcre2-16-10.40-r0
|
||||||
gpg-wks-server2.2.19-3ubuntu2.1
|
libproc-3.3.17-r2
|
||||||
grep3.4-1
|
libssl3-3.0.7-r0
|
||||||
gzip1.10-0ubuntu4
|
libstdc++-12.2.1_git20220924-r4
|
||||||
hostname3.23
|
libtorrent-rasterbar-2.0.8-r0
|
||||||
init-system-helpers1.57
|
linux-pam-1.5.2-r1
|
||||||
krb5-locales1.17-6ubuntu4.1
|
mpdecimal-2.5.1-r1
|
||||||
libacl12.2.53-6
|
musl-1.2.3-r4
|
||||||
libapparmor12.13.3-7ubuntu5.1
|
musl-utils-1.2.3-r2
|
||||||
libapt-pkg6.02.0.6
|
ncurses-libs-6.3_p20221029-r0
|
||||||
libasn1-8-heimdal7.7.0+dfsg-1ubuntu1
|
ncurses-terminfo-base-6.3_p20221029-r0
|
||||||
libassuan02.5.3-7ubuntu2
|
nghttp2-libs-1.50.0-r0
|
||||||
libattr11:2.4.48-5
|
oniguruma-6.9.8-r0
|
||||||
libaudit11:2.8.5-2ubuntu6
|
openssl-3.0.7-r0
|
||||||
libaudit-common1:2.8.5-2ubuntu6
|
p7zip-17.04-r3
|
||||||
libblkid12.34-0.1ubuntu9.1
|
pcre2-10.40-r0
|
||||||
libbrotli11.0.7-6ubuntu0.1
|
procps-3.3.17-r2
|
||||||
libbz2-1.01.0.8-2
|
python3-3.10.8-r3
|
||||||
libc62.31-0ubuntu9.2
|
qbittorrent-nox-4.4.5-r3
|
||||||
libcap-ng00.7.9-2.1build1
|
qt6-qtbase-6.4.0-r1
|
||||||
libc-bin2.31-0ubuntu9.2
|
readline-8.2.0-r0
|
||||||
libcom-err21.45.5-2ubuntu1
|
scanelf-1.3.5-r1
|
||||||
libcrypt11:4.4.10-10ubuntu4
|
shadow-4.10-r3
|
||||||
libcurl47.68.0-1ubuntu2.7
|
skalibs-2.12.0.1-r0
|
||||||
libdb5.35.3.28+dfsg1-0.6ubuntu2
|
sqlite-libs-3.39.4-r0
|
||||||
libdbus-1-31.12.16-2ubuntu2.1
|
ssl_client-1.35.0-r27
|
||||||
libdebconfclient00.251ubuntu1
|
tzdata-2022f-r1
|
||||||
libdouble-conversion33.1.5-4ubuntu1
|
utmps-libs-0.1.2.0-r1
|
||||||
libexpat12.2.9-1build1
|
xz-5.2.7-r0
|
||||||
libext2fs21.45.5-2ubuntu1
|
xz-libs-5.2.7-r0
|
||||||
libfdisk12.34-0.1ubuntu9.1
|
zlib-1.2.13-r0
|
||||||
libffi73.3-4
|
|
||||||
libgcc-s110.3.0-1ubuntu1~20.04
|
|
||||||
libgcrypt201.8.5-5ubuntu1.1
|
|
||||||
libgdbm61.18.1-5
|
|
||||||
libgdbm-compat41.18.1-5
|
|
||||||
libgeoip11.6.12-6build1
|
|
||||||
libglib2.0-02.64.6-1~ubuntu20.04.4
|
|
||||||
libglib2.0-data2.64.6-1~ubuntu20.04.4
|
|
||||||
libgmp102:6.2.0+dfsg-4
|
|
||||||
libgnutls303.6.13-2ubuntu1.6
|
|
||||||
libgpg-error01.37-1
|
|
||||||
libgssapi3-heimdal7.7.0+dfsg-1ubuntu1
|
|
||||||
libgssapi-krb5-21.17-6ubuntu4.1
|
|
||||||
libhcrypto4-heimdal7.7.0+dfsg-1ubuntu1
|
|
||||||
libheimbase1-heimdal7.7.0+dfsg-1ubuntu1
|
|
||||||
libheimntlm0-heimdal7.7.0+dfsg-1ubuntu1
|
|
||||||
libhogweed53.5.1+really3.5.1-2ubuntu0.2
|
|
||||||
libhx509-5-heimdal7.7.0+dfsg-1ubuntu1
|
|
||||||
libicu6666.1-2ubuntu2
|
|
||||||
libidn2-02.2.0-2
|
|
||||||
libk5crypto31.17-6ubuntu4.1
|
|
||||||
libkeyutils11.6-6ubuntu1
|
|
||||||
libkrb5-26-heimdal7.7.0+dfsg-1ubuntu1
|
|
||||||
libkrb5-31.17-6ubuntu4.1
|
|
||||||
libkrb5support01.17-6ubuntu4.1
|
|
||||||
libksba81.3.5-2
|
|
||||||
libldap-2.4-22.4.49+dfsg-2ubuntu1.8
|
|
||||||
libldap-common2.4.49+dfsg-2ubuntu1.8
|
|
||||||
liblz4-11.9.2-2ubuntu0.20.04.1
|
|
||||||
liblzma55.2.4-1ubuntu1
|
|
||||||
libmagic11:5.38-4
|
|
||||||
libmagic-mgc1:5.38-4
|
|
||||||
libmount12.34-0.1ubuntu9.1
|
|
||||||
libmpdec22.4.2-3
|
|
||||||
libncurses66.2-0ubuntu2
|
|
||||||
libncursesw66.2-0ubuntu2
|
|
||||||
libnetaddr-ip-perl4.079+dfsg-1build4
|
|
||||||
libnettle73.5.1+really3.5.1-2ubuntu0.2
|
|
||||||
libnghttp2-141.40.0-1build1
|
|
||||||
libnpth01.6-1
|
|
||||||
libp11-kit00.23.20-1ubuntu0.1
|
|
||||||
libpam0g1.3.1-5ubuntu4.2
|
|
||||||
libpam-modules1.3.1-5ubuntu4.2
|
|
||||||
libpam-modules-bin1.3.1-5ubuntu4.2
|
|
||||||
libpam-runtime1.3.1-5ubuntu4.2
|
|
||||||
libpcre2-16-010.34-7
|
|
||||||
libpcre2-8-010.34-7
|
|
||||||
libpcre32:8.39-12build1
|
|
||||||
libperl5.305.30.0-9ubuntu0.2
|
|
||||||
libprocps82:3.3.16-1ubuntu2.3
|
|
||||||
libpsl50.21.0-1ubuntu1
|
|
||||||
libpython3.8-minimal3.8.10-0ubuntu1~20.04.1
|
|
||||||
libpython3.8-stdlib3.8.10-0ubuntu1~20.04.1
|
|
||||||
libpython3-stdlib3.8.2-0ubuntu2
|
|
||||||
libqt5core5a5.12.8+dfsg-0ubuntu1
|
|
||||||
libqt5dbus55.12.8+dfsg-0ubuntu1
|
|
||||||
libqt5network55.12.8+dfsg-0ubuntu1
|
|
||||||
libqt5sql55.12.8+dfsg-0ubuntu1
|
|
||||||
libqt5sql5-sqlite5.12.8+dfsg-0ubuntu1
|
|
||||||
libqt5xml55.12.8+dfsg-0ubuntu1
|
|
||||||
libreadline88.0-4
|
|
||||||
libroken18-heimdal7.7.0+dfsg-1ubuntu1
|
|
||||||
librtmp12.4+20151223.gitfa8646d.1-2build1
|
|
||||||
libsasl2-22.1.27+dfsg-2
|
|
||||||
libsasl2-modules2.1.27+dfsg-2
|
|
||||||
libsasl2-modules-db2.1.27+dfsg-2
|
|
||||||
libseccomp22.5.1-1ubuntu1~20.04.1
|
|
||||||
libselinux13.0-1build2
|
|
||||||
libsemanage13.0-1build2
|
|
||||||
libsemanage-common3.0-1build2
|
|
||||||
libsepol13.0-1
|
|
||||||
libsmartcols12.34-0.1ubuntu9.1
|
|
||||||
libsocket6-perl0.29-1build1
|
|
||||||
libsqlite3-03.31.1-4ubuntu0.2
|
|
||||||
libss21.45.5-2ubuntu1
|
|
||||||
libssh-40.9.3-2ubuntu2.2
|
|
||||||
libssl1.11.1.1f-1ubuntu2.8
|
|
||||||
libstdc++610.3.0-1ubuntu1~20.04
|
|
||||||
libsystemd0245.4-4ubuntu3.13
|
|
||||||
libtasn1-64.16.0-2
|
|
||||||
libtinfo66.2-0ubuntu2
|
|
||||||
libtorrent-rasterbar101.2.14+git20210623.c996ed7ef7-1ppa1~20.04
|
|
||||||
libudev1245.4-4ubuntu3.13
|
|
||||||
libunistring20.9.10-2
|
|
||||||
libuuid12.34-0.1ubuntu9.1
|
|
||||||
libwind0-heimdal7.7.0+dfsg-1ubuntu1
|
|
||||||
libxml22.9.10+dfsg-5ubuntu0.20.04.1
|
|
||||||
libzstd11.4.4+dfsg-3ubuntu0.1
|
|
||||||
locales2.31-0ubuntu9.2
|
|
||||||
login1:4.8.1-1ubuntu5.20.04.1
|
|
||||||
logsave1.45.5-2ubuntu1
|
|
||||||
lsb-base11.1.0ubuntu2
|
|
||||||
mawk1.3.4.20200120-2
|
|
||||||
mime-support3.64ubuntu1
|
|
||||||
mount2.34-0.1ubuntu9.1
|
|
||||||
ncurses-base6.2-0ubuntu2
|
|
||||||
ncurses-bin6.2-0ubuntu2
|
|
||||||
netbase6.1
|
|
||||||
openssl1.1.1f-1ubuntu2.8
|
|
||||||
p7zip16.02+dfsg-7build1
|
|
||||||
p7zip-full16.02+dfsg-7build1
|
|
||||||
passwd1:4.8.1-1ubuntu5.20.04.1
|
|
||||||
perl5.30.0-9ubuntu0.2
|
|
||||||
perl-base5.30.0-9ubuntu0.2
|
|
||||||
perl-modules-5.305.30.0-9ubuntu0.2
|
|
||||||
pinentry-curses1.1.0-3build1
|
|
||||||
procps2:3.3.16-1ubuntu2.3
|
|
||||||
publicsuffix20200303.0012-1
|
|
||||||
python33.8.2-0ubuntu2
|
|
||||||
python3.83.8.10-0ubuntu1~20.04.1
|
|
||||||
python3.8-minimal3.8.10-0ubuntu1~20.04.1
|
|
||||||
python3-minimal3.8.2-0ubuntu2
|
|
||||||
qbittorrent-cli1.7.21116-1
|
|
||||||
qbittorrent-nox4.4.0~202106140855-7320-2bd5aca3a~ubuntu20.04.1
|
|
||||||
qttranslations5-l10n5.12.8-0ubuntu1
|
|
||||||
readline-common8.0-4
|
|
||||||
sed4.7-1
|
|
||||||
sensible-utils0.0.12+nmu1
|
|
||||||
shared-mime-info1.15-1
|
|
||||||
sysvinit-utils2.96-2.1ubuntu1
|
|
||||||
tar1.30+dfsg-7ubuntu0.20.04.1
|
|
||||||
tzdata2021a-2ubuntu0.20.04
|
|
||||||
ubuntu-keyring2020.02.11.4
|
|
||||||
unrar1:5.6.6-2build1
|
|
||||||
unzip6.0-25ubuntu1
|
|
||||||
util-linux2.34-0.1ubuntu9.1
|
|
||||||
xdg-user-dirs0.17-2ubuntu1
|
|
||||||
xz-utils5.2.4-1ubuntu1
|
|
||||||
zlib1g1:1.2.11.dfsg-2ubuntu1.2
|
|
||||||
|
|||||||
@@ -17,19 +17,20 @@ available_architectures:
|
|||||||
development_versions: true
|
development_versions: true
|
||||||
development_versions_items:
|
development_versions_items:
|
||||||
- { tag: "latest", desc: "Stable qbittorrent releases" }
|
- { tag: "latest", desc: "Stable qbittorrent releases" }
|
||||||
|
- { tag: "libtorrentv1", desc: "Static qbittorrent builds using libtorrent v1" }
|
||||||
|
|
||||||
# container parameters
|
# container parameters
|
||||||
common_param_env_vars_enabled: true
|
common_param_env_vars_enabled: true
|
||||||
param_container_name: "{{ project_name }}"
|
param_container_name: "{{ project_name }}"
|
||||||
param_usage_include_vols: true
|
param_usage_include_vols: true
|
||||||
param_volumes:
|
param_volumes:
|
||||||
- { vol_path: "/config", vol_host_path: "</path/to/appdata/config>", desc: "Contains all relevant configuration files." }
|
- { vol_path: "/config", vol_host_path: "/path/to/appdata/config", desc: "Contains all relevant configuration files." }
|
||||||
- { vol_path: "/downloads", vol_host_path: "</path/to/downloads>", desc: "Location of downloads on disk." }
|
- { vol_path: "/downloads", vol_host_path: "/path/to/downloads", desc: "Location of downloads on disk." }
|
||||||
param_usage_include_ports: true
|
param_usage_include_ports: true
|
||||||
param_ports:
|
param_ports:
|
||||||
|
- { external_port: "8080", internal_port: "8080", port_desc: "WebUI" }
|
||||||
- { external_port: "6881", internal_port: "6881", port_desc: "tcp connection port" }
|
- { external_port: "6881", internal_port: "6881", port_desc: "tcp connection port" }
|
||||||
- { external_port: "6881", internal_port: "6881/udp", port_desc: "udp connection port" }
|
- { external_port: "6881", internal_port: "6881/udp", port_desc: "udp connection port" }
|
||||||
- { external_port: "8080", internal_port: "8080", port_desc: "http gui" }
|
|
||||||
param_usage_include_env: true
|
param_usage_include_env: true
|
||||||
param_env_vars:
|
param_env_vars:
|
||||||
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London"}
|
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London"}
|
||||||
@@ -46,7 +47,6 @@ app_setup_block: |
|
|||||||
|
|
||||||
Change username/password via the webui in the webui section of settings.
|
Change username/password via the webui in the webui section of settings.
|
||||||
|
|
||||||
|
|
||||||
### WEBUI_PORT variable
|
### WEBUI_PORT variable
|
||||||
|
|
||||||
Due to issues with CSRF and port mapping, should you require to alter the port for the webui you need to change both sides of the -p 8080 switch AND set the WEBUI_PORT variable to the new port.
|
Due to issues with CSRF and port mapping, should you require to alter the port for the webui you need to change both sides of the -p 8080 switch AND set the WEBUI_PORT variable to the new port.
|
||||||
@@ -59,7 +59,7 @@ app_setup_block: |
|
|||||||
|
|
||||||
edit or add the following lines
|
edit or add the following lines
|
||||||
|
|
||||||
```
|
```text
|
||||||
WebUI\Address=*
|
WebUI\Address=*
|
||||||
|
|
||||||
WebUI\ServerDomains=*
|
WebUI\ServerDomains=*
|
||||||
@@ -69,11 +69,21 @@ app_setup_block: |
|
|||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "31.10.22:", desc: "Add libtorrentv1 branch." }
|
||||||
|
- { date: "31.08.22:", desc: "Rebase to Alpine Edge again to follow latest releases." }
|
||||||
|
- { date: "12.08.22:", desc: "Bump unrar to 6.1.7." }
|
||||||
|
- { date: "16.06.22:", desc: "Rebase to Alpine 3.16 from edge." }
|
||||||
|
- { date: "25.05.22:", desc: "Fetch qbitorrent-cli from upstream repo." }
|
||||||
|
- { date: "02.03.22:", desc: "Add unrar, 7zip, and qbitorrent-cli." }
|
||||||
|
- { date: "01.03.22:", desc: "Add python for search plugin support." }
|
||||||
|
- { date: "23.02.22:", desc: "Rebase to Alpine Edge, install from Alpine repos." }
|
||||||
|
- { date: "19.02.22:", desc: "Add jq to build-stage" }
|
||||||
|
- { date: "07.01.22:", desc: "Rebase to Alpine, build from source." }
|
||||||
- { date: "06.01.22:", desc: "Deprecate unstable branch." }
|
- { date: "06.01.22:", desc: "Deprecate unstable branch." }
|
||||||
- { date: "24.03.21:", desc: "Rebase to focal." }
|
- { date: "10.02.21:", desc: "Rebase to focal." }
|
||||||
- { date: "20.01.21:", desc: "Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information." }
|
- { date: "20.01.21:", desc: "Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information." }
|
||||||
- { date: "05.07.20:", desc: "Shift to Python3" }
|
- { date: "12.11.20:", desc: "Stop creating /config/data directory on startup" }
|
||||||
- { date: "31.10.19:", desc: "Adding unstable tag." }
|
- { date: "03.04.20:", desc: "Fix adding search engine plugin" }
|
||||||
- { date: "02.08.19:", desc: "Add qbitorrent-cli for processing scripts." }
|
- { date: "02.08.19:", desc: "Add qbitorrent-cli for processing scripts." }
|
||||||
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
||||||
- { date: "14.01.19:", desc: "Rebase to Ubuntu, add multi arch and pipeline logic." }
|
- { date: "14.01.19:", desc: "Rebase to Ubuntu, add multi arch and pipeline logic." }
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
# make our folders
|
|
||||||
mkdir -p \
|
|
||||||
/config/qBittorrent \
|
|
||||||
/config/data
|
|
||||||
|
|
||||||
# copy config
|
|
||||||
[[ ! -e /config/qBittorrent/qBittorrent.conf ]] && \
|
|
||||||
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
|
|
||||||
|
|
||||||
# chown download directory if currently set to root
|
|
||||||
if [[ -d /downloads ]]; then
|
|
||||||
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
|
|
||||||
chown -R abc:abc /downloads
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# permissions
|
|
||||||
chown -R abc:abc \
|
|
||||||
/config
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
#! /usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
echo '
|
|
||||||
******************************************************
|
|
||||||
******************************************************
|
|
||||||
* *
|
|
||||||
* *
|
|
||||||
* This image is deprecated. *
|
|
||||||
* We will not offer support for this image *
|
|
||||||
* and it will not be updated. *
|
|
||||||
* *
|
|
||||||
* *
|
|
||||||
******************************************************
|
|
||||||
******************************************************
|
|
||||||
|
|
||||||
We recommend our stable qbittorrent branch instead:
|
|
||||||
https://github.com/linuxserver/docker-qbittorrent
|
|
||||||
|
|
||||||
|
|
||||||
******************************************************
|
|
||||||
******************************************************'
|
|
||||||
20
root/etc/s6-overlay/s6-rc.d/init-qbittorrent-config/run
Executable file
20
root/etc/s6-overlay/s6-rc.d/init-qbittorrent-config/run
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
# make our folder
|
||||||
|
mkdir -p /config/qBittorrent
|
||||||
|
|
||||||
|
# copy default config
|
||||||
|
if [[ ! -f /config/qBittorrent/qBittorrent.conf ]]; then
|
||||||
|
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
# chown download directory if currently not set to abc
|
||||||
|
if [[ -d /downloads ]]; then
|
||||||
|
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
|
||||||
|
lsiown -R abc:abc /downloads
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# permissions
|
||||||
|
lsiown -R abc:abc \
|
||||||
|
/config
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-qbittorrent-config/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-qbittorrent-config/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-qbittorrent-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-qbittorrent-config/up
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/etc/s6-overlay/s6-rc.d/init-qbittorrent-config/run
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
3
|
||||||
7
root/etc/s6-overlay/s6-rc.d/svc-qbittorrent/run
Executable file
7
root/etc/s6-overlay/s6-rc.d/svc-qbittorrent/run
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
WEBUI_PORT=${WEBUI_PORT:-8080}
|
||||||
|
|
||||||
|
exec \
|
||||||
|
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
|
||||||
|
s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}"
|
||||||
1
root/etc/s6-overlay/s6-rc.d/svc-qbittorrent/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-qbittorrent/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
WEBUI_PORT=${WEBUI_PORT:-8080}
|
|
||||||
|
|
||||||
if [ -n "${UMASK_SET}" ] && [ -z "${UMASK}" ]; then
|
|
||||||
echo -e "You are using a legacy method of defining umask\nplease update your environment variable from UMASK_SET to UMASK\nto keep the functionality after July 2021"
|
|
||||||
umask ${UMASK_SET}
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec \
|
|
||||||
s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}"
|
|
||||||
14
root/usr/bin/qbt
Executable file
14
root/usr/bin/qbt
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
# qbt bash wrapper to prompt user when trying to save password
|
||||||
|
if [[ "$@" == "settings set password" ]]; then
|
||||||
|
echo "Setting password is not supported"
|
||||||
|
echo "Please use --ask-for-password or --password"
|
||||||
|
elif [[ "$@" == "settings set"* ]]; then
|
||||||
|
/qbt/qbt "$@"
|
||||||
|
elif [[ "$@" != *"--ask-for-password"* ]] && [[ "$@" != *"--password"* ]];then
|
||||||
|
echo "Please use --ask-for-password or --password and ensure username/url are set"
|
||||||
|
/qbt/qbt "$@"
|
||||||
|
else
|
||||||
|
/qbt/qbt "$@"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user