mirror of
https://github.com/linuxserver/docker-pyload-ng.git
synced 2026-03-09 00:08:04 +08:00
Compare commits
319 Commits
develop-49
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95f69de4c7 | ||
|
|
092f60a2f6 | ||
|
|
88bc398d90 | ||
|
|
4d3da03084 | ||
|
|
335dc7204c | ||
|
|
286c86faac | ||
|
|
a4654f492c | ||
|
|
dba0a658f5 | ||
|
|
bc70316e36 | ||
|
|
2570db87c6 | ||
|
|
482e4d294a | ||
|
|
abfef865c2 | ||
|
|
279742c659 | ||
|
|
15cc5b94bc | ||
|
|
5090abcfc2 | ||
|
|
990d25043d | ||
|
|
06003eaf30 | ||
|
|
b858e98a35 | ||
|
|
4b2e592880 | ||
|
|
0338309ad4 | ||
|
|
47fe8e0276 | ||
|
|
760deb3935 | ||
|
|
bfc01ea58e | ||
|
|
38ee050492 | ||
|
|
5f7689e9c1 | ||
|
|
ecc6bfd7e4 | ||
|
|
de0f300cf7 | ||
|
|
03cb2710d3 | ||
|
|
267a7a9c5d | ||
|
|
52f6b687ca | ||
|
|
abbce2bf8f | ||
|
|
c7da815bc1 | ||
|
|
9a51c30e33 | ||
|
|
b3a7b99ce1 | ||
|
|
eabfc47bc5 | ||
|
|
6388d7e4b3 | ||
|
|
63d753a73e | ||
|
|
fd27e80e80 | ||
|
|
283d768dca | ||
|
|
fc5924af13 | ||
|
|
d3fde41d7f | ||
|
|
14cb4daf6e | ||
|
|
bfa200aedc | ||
|
|
7407a61aff | ||
|
|
97f9f40efa | ||
|
|
828523a98b | ||
|
|
a13ad99c7b | ||
|
|
fa7e5784ec | ||
|
|
f928209d8f | ||
|
|
db9974b7ef | ||
|
|
5ab8117606 | ||
|
|
0d1086b673 | ||
|
|
4a36179f34 | ||
|
|
9644de3625 | ||
|
|
a1d260878d | ||
|
|
3ff1965400 | ||
|
|
c97131b0b2 | ||
|
|
9a81d0641d | ||
|
|
dee4a2292c | ||
|
|
ee726da009 | ||
|
|
00d06e9320 | ||
|
|
1514e66bd5 | ||
|
|
9c202c8f74 | ||
|
|
9387a8789f | ||
|
|
487cac2b60 | ||
|
|
71a7f8d76a | ||
|
|
87a7b4b67b | ||
|
|
17abbacf96 | ||
|
|
44267d4ab1 | ||
|
|
b1c904127a | ||
|
|
3ba2a19704 | ||
|
|
95008730e4 | ||
|
|
e3730c1b46 | ||
|
|
cba8dba0e2 | ||
|
|
9147cb0738 | ||
|
|
89ba78f145 | ||
|
|
10b903a2e2 | ||
|
|
2a418998ca | ||
|
|
3a8fe923ff | ||
|
|
25efcf0cc5 | ||
|
|
fa29193222 | ||
|
|
b36bba60be | ||
|
|
b8f410fc8d | ||
|
|
b27af7ffbb | ||
|
|
df17a78ad5 | ||
|
|
fe25f6d59e | ||
|
|
1bbdc8b85f | ||
|
|
591b576238 | ||
|
|
419c0f7a65 | ||
|
|
1b2650a9d6 | ||
|
|
1559076810 | ||
|
|
79ddd37d01 | ||
|
|
308ffa6332 | ||
|
|
52360d1b85 | ||
|
|
589f63f8ba | ||
|
|
5b372fb35e | ||
|
|
3797bf4291 | ||
|
|
79f6c5d648 | ||
|
|
b469142299 | ||
|
|
bb150e98b2 | ||
|
|
e2db8aa0e8 | ||
|
|
9273ff5d4a | ||
|
|
7d3430a679 | ||
|
|
13d5b5cea1 | ||
|
|
b890e155e9 | ||
|
|
c9cbfd185e | ||
|
|
b550919318 | ||
|
|
c73cc56c90 | ||
|
|
7f03356f1e | ||
|
|
4b6efac4bd | ||
|
|
a438a35e31 | ||
|
|
47d8b35061 | ||
|
|
3ce515b55b | ||
|
|
ccccdf8f09 | ||
|
|
c4bd9257d8 | ||
|
|
37fac01b1c | ||
|
|
2829fe6dc4 | ||
|
|
f98aefdf61 | ||
|
|
9e1073e1f4 | ||
|
|
5ed8ab3c60 | ||
|
|
98008dd636 | ||
|
|
bcba689bbf | ||
|
|
ec38bc8a5c | ||
|
|
f6ccb8ef19 | ||
|
|
09af257152 | ||
|
|
4611a434da | ||
|
|
bee23a6016 | ||
|
|
96b9026541 | ||
|
|
a518fd5fb3 | ||
|
|
fcf0163413 | ||
|
|
42339f0bfa | ||
|
|
d5157f1c99 | ||
|
|
f971365d73 | ||
|
|
dad32e5a8b | ||
|
|
656e133eb5 | ||
|
|
89f60af311 | ||
|
|
b635de0c31 | ||
|
|
dbe4fc31de | ||
|
|
f827516f45 | ||
|
|
49cb1b7363 | ||
|
|
5c78b91ead | ||
|
|
c7755b565d | ||
|
|
14216bd63b | ||
|
|
8d574bbaff | ||
|
|
a2827085b1 | ||
|
|
5a8da70147 | ||
|
|
06311a99e0 | ||
|
|
cede98832f | ||
|
|
9879d35848 | ||
|
|
abd068fe06 | ||
|
|
7076d26456 | ||
|
|
7c073a7d3b | ||
|
|
b231ae040c | ||
|
|
c748b69402 | ||
|
|
e52cf2ecb4 | ||
|
|
987793fa93 | ||
|
|
16ba362f77 | ||
|
|
9e5f372869 | ||
|
|
9a3b7ac395 | ||
|
|
999f8835f6 | ||
|
|
715b00a9c3 | ||
|
|
14eec4bffc | ||
|
|
d382c22f1c | ||
|
|
422f3e8fb1 | ||
|
|
f1510cffc2 | ||
|
|
77513105f3 | ||
|
|
af09f70a49 | ||
|
|
d50bf12048 | ||
|
|
75768b54fb | ||
|
|
ab26c3b5f1 | ||
|
|
de26856e5e | ||
|
|
baea2216a5 | ||
|
|
f4628df32d | ||
|
|
5a31ee3068 | ||
|
|
9dc08f324e | ||
|
|
d7b359198b | ||
|
|
289dc16750 | ||
|
|
5996862554 | ||
|
|
1fccac8e8c | ||
|
|
e48c1f29c3 | ||
|
|
9b5c69368d | ||
|
|
356d5dde8d | ||
|
|
b28dc6de57 | ||
|
|
266ec782c0 | ||
|
|
bf93b92dd0 | ||
|
|
a98d39ae4b | ||
|
|
734881d38c | ||
|
|
cf1e4b792e | ||
|
|
291f4ec429 | ||
|
|
b4349593e9 | ||
|
|
307a174be9 | ||
|
|
798119ed2f | ||
|
|
a4391d3fad | ||
|
|
8787b07d59 | ||
|
|
28e6ad531b | ||
|
|
57c1115747 | ||
|
|
ff93af383a | ||
|
|
bcab078b4c | ||
|
|
51ec27fbb4 | ||
|
|
e9ccc78aa9 | ||
|
|
9b382d6654 | ||
|
|
ac3796c667 | ||
|
|
dc8b7b640e | ||
|
|
a3ff29f8ca | ||
|
|
4e67fe41a7 | ||
|
|
e6d83cbb17 | ||
|
|
3edebe1857 | ||
|
|
1497b8fbcf | ||
|
|
333cdfc0e1 | ||
|
|
dbb5153061 | ||
|
|
f21fdc7c5e | ||
|
|
e2fb3160e3 | ||
|
|
05e6c41b29 | ||
|
|
c0b1c74a58 | ||
|
|
b0522d2794 | ||
|
|
188b401f23 | ||
|
|
834d23b77e | ||
|
|
d5d6a9ecf1 | ||
|
|
3c64384bc8 | ||
|
|
7440bf6625 | ||
|
|
0717bc9334 | ||
|
|
64a2e72564 | ||
|
|
2a81956404 | ||
|
|
97a11a3d0b | ||
|
|
c6bfb2be2e | ||
|
|
1bc72feeb1 | ||
|
|
12ff69a099 | ||
|
|
f57a9a0cc6 | ||
|
|
da7a58abf2 | ||
|
|
1e37eda6e9 | ||
|
|
1d4fe720f5 | ||
|
|
fc79982de0 | ||
|
|
82663542cb | ||
|
|
d411630f49 | ||
|
|
5e5ea62abc | ||
|
|
3b02e1c213 | ||
|
|
a8edc031fd | ||
|
|
db91d47028 | ||
|
|
4aa712aabe | ||
|
|
a9adca31bd | ||
|
|
e15c515132 | ||
|
|
c649f7f65b | ||
|
|
0cbef04d95 | ||
|
|
48e399f8a0 | ||
|
|
9ccafb9957 | ||
|
|
5dfccf8e24 | ||
|
|
1fc01c6185 | ||
|
|
da930d559e | ||
|
|
9174082c42 | ||
|
|
8d1f0f48dd | ||
|
|
efc99ca1f3 | ||
|
|
800b3e91f6 | ||
|
|
f18bfa020e | ||
|
|
ec18f63efc | ||
|
|
80a5e5780e | ||
|
|
6a84c62b26 | ||
|
|
78061ecb70 | ||
|
|
947e05fc0f | ||
|
|
c255090ad2 | ||
|
|
7b33698159 | ||
|
|
170a5e8eac | ||
|
|
879d986ec1 | ||
|
|
6e57774ada | ||
|
|
9f8285648f | ||
|
|
ff04536d4a | ||
|
|
47e190c868 | ||
|
|
16b76158c9 | ||
|
|
92e4bad90e | ||
|
|
96d358d81f | ||
|
|
4312144c63 | ||
|
|
0bfddc9828 | ||
|
|
42f223e526 | ||
|
|
7d63ca1ae4 | ||
|
|
29e9f862aa | ||
|
|
041a09bc07 | ||
|
|
30f05d4825 | ||
|
|
3aedf5e729 | ||
|
|
0504913416 | ||
|
|
9ad948fd0e | ||
|
|
b12cea9d6c | ||
|
|
48204ee1bb | ||
|
|
f404a4b3ee | ||
|
|
973b25a6f9 | ||
|
|
d33564ef54 | ||
|
|
f0bf8e2f4c | ||
|
|
df53dda285 | ||
|
|
fda6e164ac | ||
|
|
611b648ddf | ||
|
|
2c9a2057db | ||
|
|
c0d69638fe | ||
|
|
6dbd039151 | ||
|
|
3445c37e5f | ||
|
|
2d845567ef | ||
|
|
53a3b93cab | ||
|
|
3daca376ed | ||
|
|
f25d7fdcc5 | ||
|
|
69b69d6463 | ||
|
|
453e6890cd | ||
|
|
fe5ff7960a | ||
|
|
e26e428588 | ||
|
|
fabf70b6f1 | ||
|
|
af8cb4e3dc | ||
|
|
566b788fa7 | ||
|
|
7b81d430f8 | ||
|
|
d60b433f6c | ||
|
|
834bbd32b8 | ||
|
|
390581557c | ||
|
|
677287ab57 | ||
|
|
b6c885104a | ||
|
|
9710151041 | ||
|
|
bbdd23aa11 | ||
|
|
9439c21a52 | ||
|
|
58325c00f9 | ||
|
|
cafcc7fe19 | ||
|
|
942a01a074 | ||
|
|
2bbdd6c2c5 | ||
|
|
b306349a65 | ||
|
|
be18a646e9 | ||
|
|
19229f83a7 |
0
.editorconfig
Executable file → Normal file
0
.editorconfig
Executable file → Normal file
6
.github/CONTRIBUTING.md
vendored
Executable file → Normal file
6
.github/CONTRIBUTING.md
vendored
Executable file → Normal file
@ -6,7 +6,7 @@
|
|||||||
* Read, and fill the Pull Request template
|
* Read, and fill the Pull Request template
|
||||||
* If this is a fix for a typo (in code, documentation, or the README) please file an issue and let us sort it out. We do not need a PR
|
* If this is a fix for a typo (in code, documentation, or the README) please file an issue and let us sort it out. We do not need a PR
|
||||||
* If the PR is addressing an existing issue include, closes #\<issue number>, in the body of the PR commit message
|
* If the PR is addressing an existing issue include, closes #\<issue number>, in the body of the PR commit message
|
||||||
* If you want to discuss changes, you can also bring it up in [#dev-talk](https://discordapp.com/channels/354974912613449730/757585807061155840) in our [Discord server](https://discord.gg/YWrKVTn)
|
* If you want to discuss changes, you can also bring it up in [#dev-talk](https://discordapp.com/channels/354974912613449730/757585807061155840) in our [Discord server](https://linuxserver.io/discord)
|
||||||
|
|
||||||
## Common files
|
## Common files
|
||||||
|
|
||||||
@ -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-pyload-ng/edit/develop/readme-vars.yml).
|
Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-pyload-ng/edit/main/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-pyload-ng)
|
Most of these variables are also carried over to [docs.linuxserver.io](https://docs.linuxserver.io/images/docker-pyload-ng)
|
||||||
@ -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-pyload-ng/tree/develop/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-pyload-ng/tree/main/root), add an entry to the changelog
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
changelogs:
|
changelogs:
|
||||||
|
|||||||
0
.github/FUNDING.yml
vendored
Executable file → Normal file
0
.github/FUNDING.yml
vendored
Executable file → Normal file
2
.github/ISSUE_TEMPLATE/config.yml
vendored
Executable file → Normal file
2
.github/ISSUE_TEMPLATE/config.yml
vendored
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
blank_issues_enabled: false
|
blank_issues_enabled: false
|
||||||
contact_links:
|
contact_links:
|
||||||
- name: Discord chat support
|
- name: Discord chat support
|
||||||
url: https://discord.gg/YWrKVTn
|
url: https://linuxserver.io/discord
|
||||||
about: Realtime support / chat with the community and the team.
|
about: Realtime support / chat with the community and the team.
|
||||||
|
|
||||||
- name: Discourse discussion forum
|
- name: Discourse discussion forum
|
||||||
|
|||||||
0
.github/ISSUE_TEMPLATE/issue.bug.yml
vendored
Executable file → Normal file
0
.github/ISSUE_TEMPLATE/issue.bug.yml
vendored
Executable file → Normal file
0
.github/ISSUE_TEMPLATE/issue.feature.yml
vendored
Executable file → Normal file
0
.github/ISSUE_TEMPLATE/issue.feature.yml
vendored
Executable file → Normal file
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
Executable file → Normal file
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
Executable file → Normal file
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
- [ ] I have read the [contributing](https://github.com/linuxserver/docker-pyload-ng/blob/develop/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
|
- [ ] I have read the [contributing](https://github.com/linuxserver/docker-pyload-ng/blob/main/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
|
||||||
|
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
|
|||||||
3
.github/workflows/call_issue_pr_tracker.yml
vendored
Executable file → Normal file
3
.github/workflows/call_issue_pr_tracker.yml
vendored
Executable file → Normal file
@ -8,6 +8,9 @@ on:
|
|||||||
pull_request_review:
|
pull_request_review:
|
||||||
types: [submitted,edited,dismissed]
|
types: [submitted,edited,dismissed]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
manage-project:
|
manage-project:
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
3
.github/workflows/call_issues_cron.yml
vendored
Executable file → Normal file
3
.github/workflows/call_issues_cron.yml
vendored
Executable file → Normal file
@ -4,6 +4,9 @@ on:
|
|||||||
- cron: '23 14 * * *'
|
- cron: '23 14 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
49
.github/workflows/external_trigger.yml
vendored
Executable file → Normal file
49
.github/workflows/external_trigger.yml
vendored
Executable file → Normal file
@ -3,43 +3,54 @@ name: External Trigger Main
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
external-trigger-develop:
|
external-trigger-main:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.1
|
- uses: actions/checkout@v4.1.1
|
||||||
|
|
||||||
- name: External Trigger
|
- name: External Trigger
|
||||||
if: github.ref == 'refs/heads/develop'
|
if: github.ref == 'refs/heads/main'
|
||||||
env:
|
env:
|
||||||
SKIP_EXTERNAL_TRIGGER: ${{ vars.SKIP_EXTERNAL_TRIGGER }}
|
SKIP_EXTERNAL_TRIGGER: ${{ vars.SKIP_EXTERNAL_TRIGGER }}
|
||||||
run: |
|
run: |
|
||||||
printf "# External trigger for docker-pyload-ng\n\n" >> $GITHUB_STEP_SUMMARY
|
printf "# External trigger for docker-pyload-ng\n\n" >> $GITHUB_STEP_SUMMARY
|
||||||
if grep -q "^pyload-ng_develop" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
|
if grep -q "^pyload-ng_main_" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
|
||||||
|
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`pyload-ng_main_\`; will skip trigger if version matches." >> $GITHUB_STEP_SUMMARY
|
||||||
|
elif grep -q "^pyload-ng_main" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
|
||||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`pyload-ng_develop\`; skipping trigger." >> $GITHUB_STEP_SUMMARY
|
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`pyload-ng_main\`; skipping trigger." >> $GITHUB_STEP_SUMMARY
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
|
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "> External trigger running off of develop branch. To disable this trigger, add \`pyload-ng_develop\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
|
echo "> External trigger running off of main branch. To disable this trigger, add \`pyload-ng_main\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
|
||||||
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
|
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
|
||||||
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/pyload/pyload/commits/develop" | jq -r '. | .sha' | cut -c1-8)
|
EXT_RELEASE=$(curl -sL "https://pypi.python.org/pypi/pyload-ng/json" |jq -r '. | .info.version')
|
||||||
echo "Type is \`github_commit\`" >> $GITHUB_STEP_SUMMARY
|
echo "Type is \`pip_version\`" >> $GITHUB_STEP_SUMMARY
|
||||||
|
if grep -q "^pyload-ng_main_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
|
||||||
|
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` matches current external release; skipping trigger." >> $GITHUB_STEP_SUMMARY
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
|
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
|
||||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "> Can't retrieve external version, exiting" >> $GITHUB_STEP_SUMMARY
|
echo "> Can't retrieve external version, exiting" >> $GITHUB_STEP_SUMMARY
|
||||||
FAILURE_REASON="Can't retrieve external version for pyload-ng branch develop"
|
FAILURE_REASON="Can't retrieve external version for pyload-ng branch main"
|
||||||
GHA_TRIGGER_URL="https://github.com/linuxserver/docker-pyload-ng/actions/runs/${{ github.run_id }}"
|
GHA_TRIGGER_URL="https://github.com/linuxserver/docker-pyload-ng/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=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
|
EXT_RELEASE_SANITIZED=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
|
||||||
echo "External version: \`${EXT_RELEASE}\`" >> $GITHUB_STEP_SUMMARY
|
echo "Sanitized external version: \`${EXT_RELEASE_SANITIZED}\`" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "Retrieving last pushed version" >> $GITHUB_STEP_SUMMARY
|
echo "Retrieving last pushed version" >> $GITHUB_STEP_SUMMARY
|
||||||
image="linuxserver/pyload-ng"
|
image="linuxserver/pyload-ng"
|
||||||
tag="develop"
|
tag="latest"
|
||||||
token=$(curl -sX GET \
|
token=$(curl -sX GET \
|
||||||
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Fpyload-ng%3Apull" \
|
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Fpyload-ng%3Apull" \
|
||||||
| jq -r '.token')
|
| jq -r '.token')
|
||||||
@ -85,35 +96,35 @@ jobs:
|
|||||||
if [ -z "${IMAGE_VERSION}" ]; then
|
if [ -z "${IMAGE_VERSION}" ]; then
|
||||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "Can't retrieve last pushed version, exiting" >> $GITHUB_STEP_SUMMARY
|
echo "Can't retrieve last pushed version, exiting" >> $GITHUB_STEP_SUMMARY
|
||||||
FAILURE_REASON="Can't retrieve last pushed version for pyload-ng tag develop"
|
FAILURE_REASON="Can't retrieve last pushed version for pyload-ng 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}\`" >> $GITHUB_STEP_SUMMARY
|
echo "Last pushed version: \`${IMAGE_VERSION}\`" >> $GITHUB_STEP_SUMMARY
|
||||||
if [ "${EXT_RELEASE}" == "${IMAGE_VERSION}" ]; then
|
if [ "${EXT_RELEASE_SANITIZED}" == "${IMAGE_VERSION}" ]; then
|
||||||
echo "Version \`${EXT_RELEASE}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY
|
echo "Sanitized version \`${EXT_RELEASE_SANITIZED}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY
|
||||||
exit 0
|
exit 0
|
||||||
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/develop/lastBuild/api/json | jq -r '.building') == "true" ]; then
|
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/main/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" >> $GITHUB_STEP_SUMMARY
|
echo "New version \`${EXT_RELEASE}\` found; but there already seems to be an active build on Jenkins; exiting" >> $GITHUB_STEP_SUMMARY
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
if [[ "${artifacts_found}" == "false" ]]; then
|
if [[ "${artifacts_found}" == "false" ]]; then
|
||||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "> New version detected, but not all artifacts are published yet; skipping trigger" >> $GITHUB_STEP_SUMMARY
|
echo "> New version detected, but not all artifacts are published yet; skipping trigger" >> $GITHUB_STEP_SUMMARY
|
||||||
FAILURE_REASON="New version ${EXT_RELEASE} for pyload-ng tag develop is detected, however not all artifacts are uploaded to upstream release yet. Will try again later."
|
FAILURE_REASON="New version ${EXT_RELEASE} for pyload-ng tag latest is detected, however not all artifacts are uploaded to upstream release yet. Will try again later."
|
||||||
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
|
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"}],
|
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
|
||||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
else
|
else
|
||||||
printf "\n## Trigger new build\n\n" >> $GITHUB_STEP_SUMMARY
|
printf "\n## Trigger new build\n\n" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "New version \`${EXT_RELEASE}\` found; old version was \`${IMAGE_VERSION}\`. Triggering new build" >> $GITHUB_STEP_SUMMARY
|
echo "New sanitized version \`${EXT_RELEASE_SANITIZED}\` found; old version was \`${IMAGE_VERSION}\`. Triggering new build" >> $GITHUB_STEP_SUMMARY
|
||||||
if [[ "${artifacts_found}" == "true" ]]; then
|
if [[ "${artifacts_found}" == "true" ]]; then
|
||||||
echo "All artifacts seem to be uploaded." >> $GITHUB_STEP_SUMMARY
|
echo "All artifacts seem to be uploaded." >> $GITHUB_STEP_SUMMARY
|
||||||
fi
|
fi
|
||||||
response=$(curl -iX POST \
|
response=$(curl -iX POST \
|
||||||
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/develop/buildWithParameters?PACKAGE_CHECK=false \
|
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/main/buildWithParameters?PACKAGE_CHECK=false \
|
||||||
--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'})" >> $GITHUB_STEP_SUMMARY
|
echo "Jenkins [job queue url](${response%$'\r'})" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "Sleeping 10 seconds until job starts" >> $GITHUB_STEP_SUMMARY
|
echo "Sleeping 10 seconds until job starts" >> $GITHUB_STEP_SUMMARY
|
||||||
@ -128,7 +139,7 @@ jobs:
|
|||||||
--data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
--data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
||||||
--data-urlencode "Submit=Submit"
|
--data-urlencode "Submit=Submit"
|
||||||
echo "**** Notifying Discord ****"
|
echo "**** Notifying Discord ****"
|
||||||
TRIGGER_REASON="A version change was detected for pyload-ng tag develop. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}"
|
TRIGGER_REASON="A version change was detected for pyload-ng tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE_SANITIZED}"
|
||||||
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
|
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"}],
|
"description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}],
|
||||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
|||||||
3
.github/workflows/external_trigger_scheduler.yml
vendored
Executable file → Normal file
3
.github/workflows/external_trigger_scheduler.yml
vendored
Executable file → Normal file
@ -5,6 +5,9 @@ on:
|
|||||||
- cron: '59 * * * *'
|
- cron: '59 * * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
external-trigger-scheduler:
|
external-trigger-scheduler:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
8
.github/workflows/greetings.yml
vendored
Executable file → Normal file
8
.github/workflows/greetings.yml
vendored
Executable file → Normal file
@ -2,12 +2,18 @@ name: Greetings
|
|||||||
|
|
||||||
on: [pull_request_target, issues]
|
on: [pull_request_target, issues]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
greeting:
|
greeting:
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
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 relevant issue templates, or risk having this issue marked as invalid.'
|
issue-message: 'Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.'
|
||||||
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-pyload-ng/blob/develop/.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-pyload-ng/blob/main/.github/PULL_REQUEST_TEMPLATE.md)!'
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
3
.github/workflows/package_trigger_scheduler.yml
vendored
Executable file → Normal file
3
.github/workflows/package_trigger_scheduler.yml
vendored
Executable file → Normal file
@ -5,6 +5,9 @@ on:
|
|||||||
- cron: '9 19 * * 5'
|
- cron: '9 19 * * 5'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
package-trigger-scheduler:
|
package-trigger-scheduler:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
0
.github/workflows/permissions.yml
vendored
Executable file → Normal file
0
.github/workflows/permissions.yml
vendored
Executable file → Normal file
18
Dockerfile
18
Dockerfile
@ -1,13 +1,13 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
FROM ghcr.io/linuxserver/unrar:latest as unrar
|
FROM ghcr.io/linuxserver/unrar:latest AS unrar
|
||||||
|
|
||||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.19
|
FROM ghcr.io/linuxserver/baseimage-alpine:3.22
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG PYLOAD_COMMIT
|
ARG PYLOAD_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="aptalca"
|
LABEL maintainer="aptalca"
|
||||||
|
|
||||||
@ -19,7 +19,6 @@ RUN \
|
|||||||
build-base \
|
build-base \
|
||||||
cargo \
|
cargo \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
git \
|
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libjpeg-turbo-dev \
|
libjpeg-turbo-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
@ -28,22 +27,23 @@ RUN \
|
|||||||
echo "**** install packages ****" && \
|
echo "**** install packages ****" && \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
|
gcompat \
|
||||||
|
libatomic \
|
||||||
libjpeg-turbo \
|
libjpeg-turbo \
|
||||||
7zip \
|
7zip \
|
||||||
python3 \
|
python3 \
|
||||||
sqlite \
|
sqlite \
|
||||||
tesseract-ocr && \
|
tesseract-ocr && \
|
||||||
echo "**** install pyload ****" && \
|
echo "**** install pyload ****" && \
|
||||||
if [ -z ${PYLOAD_COMMIT+x} ]; then \
|
if [ -z ${PYLOAD_VERSION+x} ]; then \
|
||||||
PYLOAD_COMMIT=$(curl -sX GET "https://api.github.com/repos/pyload/pyload/branches/develop" \
|
PYLOAD_VERSION=$(curl -sL https://pypi.python.org/pypi/pyload-ng/json |jq -r '. | .info.version'); \
|
||||||
| awk '/sha/{print $4;exit}' FS='[""]'); \
|
|
||||||
fi && \
|
fi && \
|
||||||
python3 -m venv /lsiopy && \
|
python3 -m venv /lsiopy && \
|
||||||
pip install -U --no-cache-dir \
|
pip install -U --no-cache-dir \
|
||||||
pip \
|
pip \
|
||||||
wheel && \
|
wheel && \
|
||||||
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.19/ \
|
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.22/ \
|
||||||
"git+https://github.com/pyload/pyload.git@${PYLOAD_COMMIT}" && \
|
pyload-ng[all]=="${PYLOAD_VERSION}" && \
|
||||||
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apk del --purge \
|
apk del --purge \
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
FROM ghcr.io/linuxserver/unrar:arm64v8-latest as unrar
|
FROM ghcr.io/linuxserver/unrar:arm64v8-latest AS unrar
|
||||||
|
|
||||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19
|
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.22
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG PYLOAD_COMMIT
|
ARG PYLOAD_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="aptalca"
|
LABEL maintainer="aptalca"
|
||||||
|
|
||||||
@ -19,7 +19,6 @@ RUN \
|
|||||||
build-base \
|
build-base \
|
||||||
cargo \
|
cargo \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
git \
|
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libjpeg-turbo-dev \
|
libjpeg-turbo-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
@ -28,22 +27,23 @@ RUN \
|
|||||||
echo "**** install packages ****" && \
|
echo "**** install packages ****" && \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
|
gcompat \
|
||||||
|
libatomic \
|
||||||
libjpeg-turbo \
|
libjpeg-turbo \
|
||||||
7zip \
|
7zip \
|
||||||
python3 \
|
python3 \
|
||||||
sqlite \
|
sqlite \
|
||||||
tesseract-ocr && \
|
tesseract-ocr && \
|
||||||
echo "**** install pyload ****" && \
|
echo "**** install pyload ****" && \
|
||||||
if [ -z ${PYLOAD_COMMIT+x} ]; then \
|
if [ -z ${PYLOAD_VERSION+x} ]; then \
|
||||||
PYLOAD_COMMIT=$(curl -sX GET "https://api.github.com/repos/pyload/pyload/branches/develop" \
|
PYLOAD_VERSION=$(curl -sL https://pypi.python.org/pypi/pyload-ng/json |jq -r '. | .info.version'); \
|
||||||
| awk '/sha/{print $4;exit}' FS='[""]'); \
|
|
||||||
fi && \
|
fi && \
|
||||||
python3 -m venv /lsiopy && \
|
python3 -m venv /lsiopy && \
|
||||||
pip install -U --no-cache-dir \
|
pip install -U --no-cache-dir \
|
||||||
pip \
|
pip \
|
||||||
wheel && \
|
wheel && \
|
||||||
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.19/ \
|
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.22/ \
|
||||||
"git+https://github.com/pyload/pyload.git@${PYLOAD_COMMIT}" && \
|
pyload-ng[all]=="${PYLOAD_VERSION}" && \
|
||||||
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apk del --purge \
|
apk del --purge \
|
||||||
|
|||||||
292
Jenkinsfile
vendored
292
Jenkinsfile
vendored
@ -19,10 +19,8 @@ pipeline {
|
|||||||
DOCKERHUB_TOKEN=credentials('docker-hub-ci-pat')
|
DOCKERHUB_TOKEN=credentials('docker-hub-ci-pat')
|
||||||
QUAYIO_API_TOKEN=credentials('quayio-repo-api-token')
|
QUAYIO_API_TOKEN=credentials('quayio-repo-api-token')
|
||||||
GIT_SIGNING_KEY=credentials('484fbca6-9a4f-455e-b9e3-97ac98785f5f')
|
GIT_SIGNING_KEY=credentials('484fbca6-9a4f-455e-b9e3-97ac98785f5f')
|
||||||
EXT_GIT_BRANCH = 'develop'
|
EXT_PIP = 'pyload-ng'
|
||||||
EXT_USER = 'pyload'
|
BUILD_VERSION_ARG = 'PYLOAD_VERSION'
|
||||||
EXT_REPO = 'pyload'
|
|
||||||
BUILD_VERSION_ARG = 'PYLOAD_COMMIT'
|
|
||||||
LS_USER = 'linuxserver'
|
LS_USER = 'linuxserver'
|
||||||
LS_REPO = 'docker-pyload-ng'
|
LS_REPO = 'docker-pyload-ng'
|
||||||
CONTAINER_NAME = 'pyload-ng'
|
CONTAINER_NAME = 'pyload-ng'
|
||||||
@ -59,15 +57,27 @@ pipeline {
|
|||||||
steps{
|
steps{
|
||||||
echo "Running on node: ${NODE_NAME}"
|
echo "Running on node: ${NODE_NAME}"
|
||||||
sh '''#! /bin/bash
|
sh '''#! /bin/bash
|
||||||
containers=$(docker ps -aq)
|
echo "Pruning builder"
|
||||||
|
docker builder prune -f --builder container || :
|
||||||
|
containers=$(docker ps -q)
|
||||||
if [[ -n "${containers}" ]]; then
|
if [[ -n "${containers}" ]]; then
|
||||||
docker stop ${containers}
|
BUILDX_CONTAINER_ID=$(docker ps -qf 'name=buildx_buildkit')
|
||||||
|
for container in ${containers}; do
|
||||||
|
if [[ "${container}" == "${BUILDX_CONTAINER_ID}" ]]; then
|
||||||
|
echo "skipping buildx container in docker stop"
|
||||||
|
else
|
||||||
|
echo "Stopping container ${container}"
|
||||||
|
docker stop ${container}
|
||||||
|
fi
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
docker system prune -af --volumes || : '''
|
docker system prune -f --volumes || :
|
||||||
|
docker image prune -af || :
|
||||||
|
'''
|
||||||
script{
|
script{
|
||||||
env.EXIT_STATUS = ''
|
env.EXIT_STATUS = ''
|
||||||
env.LS_RELEASE = sh(
|
env.LS_RELEASE = sh(
|
||||||
script: '''docker run --rm quay.io/skopeo/stable:v1 inspect docker://ghcr.io/${LS_USER}/${CONTAINER_NAME}:develop 2>/dev/null | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''',
|
script: '''docker run --rm quay.io/skopeo/stable:v1 inspect docker://ghcr.io/${LS_USER}/${CONTAINER_NAME}: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' ''',
|
||||||
@ -85,7 +95,11 @@ pipeline {
|
|||||||
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.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/call_issue_pr_tracker.yml ./.github/workflows/call_issues_cron.yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml ./root/donate.txt'
|
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/call_issue_pr_tracker.yml ./.github/workflows/call_issues_cron.yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml ./root/donate.txt'
|
||||||
|
if ( env.SYFT_IMAGE_TAG == null ) {
|
||||||
|
env.SYFT_IMAGE_TAG = 'latest'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
echo "Using syft image tag ${SYFT_IMAGE_TAG}"
|
||||||
sh '''#! /bin/bash
|
sh '''#! /bin/bash
|
||||||
echo "The default github branch detected as ${GH_DEFAULT_BRANCH}" '''
|
echo "The default github branch detected as ${GH_DEFAULT_BRANCH}" '''
|
||||||
script{
|
script{
|
||||||
@ -96,7 +110,7 @@ pipeline {
|
|||||||
script{
|
script{
|
||||||
env.LS_TAG_NUMBER = sh(
|
env.LS_TAG_NUMBER = sh(
|
||||||
script: '''#! /bin/bash
|
script: '''#! /bin/bash
|
||||||
tagsha=$(git rev-list -n 1 develop-${LS_RELEASE} 2>/dev/null)
|
tagsha=$(git rev-list -n 1 ${LS_RELEASE} 2>/dev/null)
|
||||||
if [ "${tagsha}" == "${COMMIT_SHA}" ]; then
|
if [ "${tagsha}" == "${COMMIT_SHA}" ]; then
|
||||||
echo ${LS_RELEASE_NUMBER}
|
echo ${LS_RELEASE_NUMBER}
|
||||||
elif [ -z "${GIT_COMMIT}" ]; then
|
elif [ -z "${GIT_COMMIT}" ]; then
|
||||||
@ -129,25 +143,17 @@ pipeline {
|
|||||||
/* ########################
|
/* ########################
|
||||||
External Release Tagging
|
External Release Tagging
|
||||||
######################## */
|
######################## */
|
||||||
// If this is a github commit trigger determine the current commit at head
|
// If this is a pip release set the external tag to the pip version
|
||||||
stage("Set ENV github_commit"){
|
stage("Set ENV pip_version"){
|
||||||
steps{
|
steps{
|
||||||
script{
|
script{
|
||||||
env.EXT_RELEASE = sh(
|
env.EXT_RELEASE = sh(
|
||||||
script: '''curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_GIT_BRANCH} | jq -r '. | .sha' | cut -c1-8 ''',
|
script: '''curl -sL https://pypi.python.org/pypi/${EXT_PIP}/json |jq -r '. | .info.version' ''',
|
||||||
returnStdout: true).trim()
|
returnStdout: true).trim()
|
||||||
}
|
env.RELEASE_LINK = 'https://pypi.python.org/pypi/' + env.EXT_PIP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If this is a github commit trigger Set the external release link
|
} // Sanitize the release tag and strip illegal docker or github characters
|
||||||
stage("Set ENV commit_link"){
|
|
||||||
steps{
|
|
||||||
script{
|
|
||||||
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/commit/' + env.EXT_RELEASE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Sanitize the release tag and strip illegal docker or github characters
|
|
||||||
stage("Sanitize tag"){
|
stage("Sanitize tag"){
|
||||||
steps{
|
steps{
|
||||||
script{
|
script{
|
||||||
@ -181,10 +187,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If this is a develop build use live docker endpoints
|
// If this is a main build use live docker endpoints
|
||||||
stage("Set ENV live build"){
|
stage("Set ENV live build"){
|
||||||
when {
|
when {
|
||||||
branch "develop"
|
branch "main"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
@ -194,21 +200,22 @@ 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-develop-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm64v8-develop-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
||||||
} else {
|
} else {
|
||||||
env.CI_TAGS = 'develop-' + 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 = 'develop-' + 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 = 'develop-version-' + env.EXT_RELEASE_CLEAN
|
env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN
|
||||||
env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache'
|
env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache'
|
||||||
|
env.CITEST_IMAGETAG = 'latest'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 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 "develop"}
|
not {branch "main"}
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
@ -218,15 +225,16 @@ 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-develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm64v8-develop-' + 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 + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
||||||
} else {
|
} else {
|
||||||
env.CI_TAGS = 'develop-' + 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 = 'develop-' + 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 = 'develop-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/'
|
||||||
env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache'
|
env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache'
|
||||||
|
env.CITEST_IMAGETAG = 'develop'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -242,16 +250,17 @@ 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-develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST + '|arm64v8-develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
|
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
|
||||||
} else {
|
} else {
|
||||||
env.CI_TAGS = 'develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
|
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
|
||||||
}
|
}
|
||||||
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
|
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
|
||||||
env.META_TAG = 'develop-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
|
env.META_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST
|
||||||
env.EXT_RELEASE_TAG = 'develop-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/'
|
||||||
env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache'
|
env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache'
|
||||||
|
env.CITEST_IMAGETAG = 'develop'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -274,7 +283,7 @@ pipeline {
|
|||||||
-v ${WORKSPACE}:/mnt \
|
-v ${WORKSPACE}:/mnt \
|
||||||
-e AWS_ACCESS_KEY_ID=\"${S3_KEY}\" \
|
-e AWS_ACCESS_KEY_ID=\"${S3_KEY}\" \
|
||||||
-e AWS_SECRET_ACCESS_KEY=\"${S3_SECRET}\" \
|
-e AWS_SECRET_ACCESS_KEY=\"${S3_SECRET}\" \
|
||||||
ghcr.io/linuxserver/baseimage-alpine:3.20 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\
|
ghcr.io/linuxserver/baseimage-alpine:3.23 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\
|
||||||
apk add --no-cache python3 && \
|
apk add --no-cache python3 && \
|
||||||
python3 -m venv /lsiopy && \
|
python3 -m venv /lsiopy && \
|
||||||
pip install --no-cache-dir -U pip && \
|
pip install --no-cache-dir -U pip && \
|
||||||
@ -286,7 +295,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 "develop"
|
branch "main"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
expression {
|
expression {
|
||||||
env.CONTAINER_NAME != null
|
env.CONTAINER_NAME != null
|
||||||
@ -298,24 +307,24 @@ pipeline {
|
|||||||
TEMPDIR=$(mktemp -d)
|
TEMPDIR=$(mktemp -d)
|
||||||
docker pull ghcr.io/linuxserver/jenkins-builder:latest
|
docker pull ghcr.io/linuxserver/jenkins-builder:latest
|
||||||
# Cloned repo paths for templating:
|
# Cloned repo paths for templating:
|
||||||
# ${TEMPDIR}/docker-${CONTAINER_NAME}: Cloned branch develop of ${LS_USER}/${LS_REPO} for running the jenkins builder on
|
# ${TEMPDIR}/docker-${CONTAINER_NAME}: Cloned branch main of ${LS_USER}/${LS_REPO} for running the jenkins builder on
|
||||||
# ${TEMPDIR}/repo/${LS_REPO}: Cloned branch develop of ${LS_USER}/${LS_REPO} for commiting various templated file changes and pushing back to Github
|
# ${TEMPDIR}/repo/${LS_REPO}: Cloned branch main of ${LS_USER}/${LS_REPO} for commiting various templated file changes and pushing back to Github
|
||||||
# ${TEMPDIR}/docs/docker-documentation: Cloned docs repo for pushing docs updates to Github
|
# ${TEMPDIR}/docs/docker-documentation: Cloned docs repo for pushing docs updates to Github
|
||||||
# ${TEMPDIR}/unraid/docker-templates: Cloned docker-templates repo to check for logos
|
# ${TEMPDIR}/unraid/docker-templates: Cloned docker-templates repo to check for logos
|
||||||
# ${TEMPDIR}/unraid/templates: Cloned templates repo for commiting unraid template changes and pushing back to Github
|
# ${TEMPDIR}/unraid/templates: Cloned templates repo for commiting unraid template changes and pushing back to Github
|
||||||
git clone --branch develop --depth 1 https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/docker-${CONTAINER_NAME}
|
git clone --branch main --depth 1 https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/docker-${CONTAINER_NAME}
|
||||||
docker run --rm -v ${TEMPDIR}/docker-${CONTAINER_NAME}:/tmp -e LOCAL=true -e PUID=$(id -u) -e PGID=$(id -g) ghcr.io/linuxserver/jenkins-builder:latest
|
docker run --rm -v ${TEMPDIR}/docker-${CONTAINER_NAME}:/tmp -e LOCAL=true -e PUID=$(id -u) -e PGID=$(id -g) ghcr.io/linuxserver/jenkins-builder:latest
|
||||||
echo "Starting Stage 1 - Jenkinsfile update"
|
echo "Starting 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 develop
|
git checkout -f main
|
||||||
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'
|
||||||
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
|
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
|
||||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
|
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
|
||||||
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
||||||
echo "Updating Jenkinsfile and exiting build, new one will trigger based on commit"
|
echo "Updating Jenkinsfile and exiting build, new one will trigger based on commit"
|
||||||
rm -Rf ${TEMPDIR}
|
rm -Rf ${TEMPDIR}
|
||||||
@ -334,13 +343,13 @@ 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 develop
|
git checkout -f main
|
||||||
for i in ${TEMPLATES_TO_DELETE}; do
|
for i in ${TEMPLATES_TO_DELETE}; do
|
||||||
git rm "${i}"
|
git rm "${i}"
|
||||||
done
|
done
|
||||||
git commit -m 'Bot Updating Templated Files'
|
git commit -m 'Bot Updating Templated Files'
|
||||||
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
|
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
|
||||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
|
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
|
||||||
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
||||||
echo "Deleting old/deprecated templates and exiting build, new one will trigger based on commit"
|
echo "Deleting old/deprecated templates and exiting build, new one will trigger based on commit"
|
||||||
rm -Rf ${TEMPDIR}
|
rm -Rf ${TEMPDIR}
|
||||||
@ -355,20 +364,20 @@ pipeline {
|
|||||||
sed -i 's|^changelogs:|# init diagram\\ninit_diagram:\\n\\n# changelog\\nchangelogs:|' readme-vars.yml
|
sed -i 's|^changelogs:|# init diagram\\ninit_diagram:\\n\\n# changelog\\nchangelogs:|' readme-vars.yml
|
||||||
fi
|
fi
|
||||||
mkdir -p ${TEMPDIR}/d2
|
mkdir -p ${TEMPDIR}/d2
|
||||||
docker run --rm -v ${TEMPDIR}/d2:/output -e PUID=$(id -u) -e PGID=$(id -g) -e RAW="true" ghcr.io/linuxserver/d2-builder:latest ${CONTAINER_NAME}:develop
|
docker run --rm -v ${TEMPDIR}/d2:/output -e PUID=$(id -u) -e PGID=$(id -g) -e RAW="true" ghcr.io/linuxserver/d2-builder:latest ${CONTAINER_NAME}:latest
|
||||||
ls -al ${TEMPDIR}/d2
|
ls -al ${TEMPDIR}/d2
|
||||||
yq -ei ".init_diagram |= load_str(\\"${TEMPDIR}/d2/${CONTAINER_NAME}-develop.d2\\")" readme-vars.yml
|
yq -ei ".init_diagram |= load_str(\\"${TEMPDIR}/d2/${CONTAINER_NAME}-latest.d2\\")" readme-vars.yml
|
||||||
if [[ $(md5sum readme-vars.yml | cut -c1-8) != $(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/readme-vars.yml | cut -c1-8) ]]; then
|
if [[ $(md5sum readme-vars.yml | cut -c1-8) != $(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/readme-vars.yml | cut -c1-8) ]]; then
|
||||||
echo "'init_diagram' has been updated. Updating repo and exiting build, new one will trigger based on commit."
|
echo "'init_diagram' has been updated. Updating repo and exiting build, new one will trigger based on commit."
|
||||||
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 develop
|
git checkout -f main
|
||||||
cp ${WORKSPACE}/readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/readme-vars.yml
|
cp ${WORKSPACE}/readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/readme-vars.yml
|
||||||
git add readme-vars.yml
|
git add readme-vars.yml
|
||||||
git commit -m 'Bot Updating Templated Files'
|
git commit -m 'Bot Updating Templated Files'
|
||||||
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
|
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
|
||||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
|
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
|
||||||
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
||||||
echo "Updating templates and exiting build, new one will trigger based on commit"
|
echo "Updating templates and exiting build, new one will trigger based on commit"
|
||||||
rm -Rf ${TEMPDIR}
|
rm -Rf ${TEMPDIR}
|
||||||
@ -385,7 +394,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 develop
|
git checkout -f main
|
||||||
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
|
||||||
@ -398,8 +407,8 @@ pipeline {
|
|||||||
fi
|
fi
|
||||||
git add readme-vars.yml ${TEMPLATED_FILES}
|
git add readme-vars.yml ${TEMPLATED_FILES}
|
||||||
git commit -m 'Bot Updating Templated Files'
|
git commit -m 'Bot Updating Templated Files'
|
||||||
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
|
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
|
||||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
|
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
|
||||||
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
||||||
echo "Updating templates and exiting build, new one will trigger based on commit"
|
echo "Updating templates and exiting build, new one will trigger based on commit"
|
||||||
rm -Rf ${TEMPDIR}
|
rm -Rf ${TEMPDIR}
|
||||||
@ -500,7 +509,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 "develop"
|
branch "main"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
environment name: 'FILES_UPDATED', value: 'true'
|
environment name: 'FILES_UPDATED', value: 'true'
|
||||||
expression {
|
expression {
|
||||||
@ -513,10 +522,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If this is a develop build check the S6 service file perms
|
// If this is a main build check the S6 service file perms
|
||||||
stage("Check S6 Service file Permissions"){
|
stage("Check S6 Service file Permissions"){
|
||||||
when {
|
when {
|
||||||
branch "develop"
|
branch "main"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
environment name: 'EXIT_STATUS', value: ''
|
||||||
}
|
}
|
||||||
@ -609,13 +618,16 @@ pipeline {
|
|||||||
echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin
|
echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin
|
||||||
echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin
|
echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin
|
||||||
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
|
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
|
||||||
|
|
||||||
if [[ "${PACKAGE_CHECK}" != "true" ]]; then
|
if [[ "${PACKAGE_CHECK}" != "true" ]]; then
|
||||||
|
declare -A pids
|
||||||
IFS=',' read -ra CACHE <<< "$BUILDCACHE"
|
IFS=',' read -ra CACHE <<< "$BUILDCACHE"
|
||||||
for i in "${CACHE[@]}"; do
|
for i in "${CACHE[@]}"; do
|
||||||
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
|
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
|
||||||
|
pids[$!]="$i"
|
||||||
done
|
done
|
||||||
for p in $(jobs -p); do
|
for p in "${!pids[@]}"; do
|
||||||
wait "$p" || { echo "job $p failed" >&2; exit 1; }
|
wait "$p" || { [[ "${pids[$p]}" != *"quay.io"* ]] && exit 1; }
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
'''
|
'''
|
||||||
@ -675,13 +687,16 @@ pipeline {
|
|||||||
echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin
|
echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin
|
||||||
echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin
|
echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin
|
||||||
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
|
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
|
||||||
|
|
||||||
if [[ "${PACKAGE_CHECK}" != "true" ]]; then
|
if [[ "${PACKAGE_CHECK}" != "true" ]]; then
|
||||||
|
declare -A pids
|
||||||
IFS=',' read -ra CACHE <<< "$BUILDCACHE"
|
IFS=',' read -ra CACHE <<< "$BUILDCACHE"
|
||||||
for i in "${CACHE[@]}"; do
|
for i in "${CACHE[@]}"; do
|
||||||
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
|
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
|
||||||
|
pids[$!]="$i"
|
||||||
done
|
done
|
||||||
for p in $(jobs -p); do
|
for p in "${!pids[@]}"; do
|
||||||
wait "$p" || { echo "job $p failed" >&2; exit 1; }
|
wait "$p" || { [[ "${pids[$p]}" != *"quay.io"* ]] && exit 1; }
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
'''
|
'''
|
||||||
@ -735,12 +750,14 @@ pipeline {
|
|||||||
echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin
|
echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin
|
||||||
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
|
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
|
||||||
if [[ "${PACKAGE_CHECK}" != "true" ]]; then
|
if [[ "${PACKAGE_CHECK}" != "true" ]]; then
|
||||||
|
declare -A pids
|
||||||
IFS=',' read -ra CACHE <<< "$BUILDCACHE"
|
IFS=',' read -ra CACHE <<< "$BUILDCACHE"
|
||||||
for i in "${CACHE[@]}"; do
|
for i in "${CACHE[@]}"; do
|
||||||
docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} &
|
docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} &
|
||||||
|
pids[$!]="$i"
|
||||||
done
|
done
|
||||||
for p in $(jobs -p); do
|
for p in "${!pids[@]}"; do
|
||||||
wait "$p" || { echo "job $p failed" >&2; exit 1; }
|
wait "$p" || { [[ "${pids[$p]}" != *"quay.io"* ]] && exit 1; }
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
'''
|
'''
|
||||||
@ -751,7 +768,8 @@ pipeline {
|
|||||||
if [[ -n "${containers}" ]]; then
|
if [[ -n "${containers}" ]]; then
|
||||||
docker stop ${containers}
|
docker stop ${containers}
|
||||||
fi
|
fi
|
||||||
docker system prune -af --volumes || :
|
docker system prune -f --volumes || :
|
||||||
|
docker image prune -af || :
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -760,7 +778,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 "develop"
|
branch "main"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
environment name: 'EXIT_STATUS', value: ''
|
||||||
}
|
}
|
||||||
@ -777,20 +795,20 @@ pipeline {
|
|||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock:ro \
|
-v /var/run/docker.sock:/var/run/docker.sock:ro \
|
||||||
-v ${TEMPDIR}:/tmp \
|
-v ${TEMPDIR}:/tmp \
|
||||||
ghcr.io/anchore/syft:latest \
|
ghcr.io/anchore/syft:${SYFT_IMAGE_TAG} \
|
||||||
${LOCAL_CONTAINER} -o table=/tmp/package_versions.txt
|
${LOCAL_CONTAINER} -o table=/tmp/package_versions.txt
|
||||||
NEW_PACKAGE_TAG=$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )
|
NEW_PACKAGE_TAG=$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )
|
||||||
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 develop
|
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f main
|
||||||
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
|
||||||
git add package_versions.txt
|
git add package_versions.txt
|
||||||
git commit -m 'Bot Updating Package Versions'
|
git commit -m 'Bot Updating Package Versions'
|
||||||
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
|
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
|
||||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
|
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main
|
||||||
echo "true" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
echo "true" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
||||||
echo "Package tag updated, stopping build process"
|
echo "Package tag updated, stopping build process"
|
||||||
else
|
else
|
||||||
@ -808,7 +826,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 "develop"
|
branch "main"
|
||||||
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: ''
|
||||||
@ -822,7 +840,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 "develop"
|
branch "main"
|
||||||
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: ''
|
||||||
@ -864,7 +882,7 @@ pipeline {
|
|||||||
CI_DOCKERENV="LSIO_FIRST_PARTY=true"
|
CI_DOCKERENV="LSIO_FIRST_PARTY=true"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
docker pull ghcr.io/linuxserver/ci:latest
|
docker pull ghcr.io/linuxserver/ci:${CITEST_IMAGETAG}
|
||||||
if [ "${MULTIARCH}" == "true" ]; then
|
if [ "${MULTIARCH}" == "true" ]; then
|
||||||
docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} --platform=arm64
|
docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} --platform=arm64
|
||||||
docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm64v8-${META_TAG}
|
docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm64v8-${META_TAG}
|
||||||
@ -876,7 +894,7 @@ pipeline {
|
|||||||
-e DOCKER_LOGS_TIMEOUT=\"${CI_DELAY}\" \
|
-e DOCKER_LOGS_TIMEOUT=\"${CI_DELAY}\" \
|
||||||
-e TAGS=\"${CI_TAGS}\" \
|
-e TAGS=\"${CI_TAGS}\" \
|
||||||
-e META_TAG=\"${META_TAG}\" \
|
-e META_TAG=\"${META_TAG}\" \
|
||||||
-e RELEASE_TAG=\"develop\" \
|
-e RELEASE_TAG=\"latest\" \
|
||||||
-e PORT=\"${CI_PORT}\" \
|
-e PORT=\"${CI_PORT}\" \
|
||||||
-e SSL=\"${CI_SSL}\" \
|
-e SSL=\"${CI_SSL}\" \
|
||||||
-e BASE=\"${DIST_IMAGE}\" \
|
-e BASE=\"${DIST_IMAGE}\" \
|
||||||
@ -887,7 +905,10 @@ pipeline {
|
|||||||
-e WEB_AUTH=\"${CI_AUTH}\" \
|
-e WEB_AUTH=\"${CI_AUTH}\" \
|
||||||
-e WEB_PATH=\"${CI_WEBPATH}\" \
|
-e WEB_PATH=\"${CI_WEBPATH}\" \
|
||||||
-e NODE_NAME=\"${NODE_NAME}\" \
|
-e NODE_NAME=\"${NODE_NAME}\" \
|
||||||
-t ghcr.io/linuxserver/ci:latest \
|
-e SYFT_IMAGE_TAG=\"${CI_SYFT_IMAGE_TAG:-${SYFT_IMAGE_TAG}}\" \
|
||||||
|
-e COMMIT_SHA=\"${COMMIT_SHA}\" \
|
||||||
|
-e BUILD_NUMBER=\"${BUILD_NUMBER}\" \
|
||||||
|
-t ghcr.io/linuxserver/ci:${CITEST_IMAGETAG} \
|
||||||
python3 test_build.py'''
|
python3 test_build.py'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -913,9 +934,11 @@ pipeline {
|
|||||||
CACHEIMAGE=${i}
|
CACHEIMAGE=${i}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${META_TAG} -t ${PUSHIMAGE}:develop -t ${PUSHIMAGE}:${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER}
|
docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${META_TAG} -t ${PUSHIMAGE}:latest -t ${PUSHIMAGE}:${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \
|
||||||
|
{ if [[ "${PUSHIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
|
||||||
if [ -n "${SEMVER}" ]; then
|
if [ -n "${SEMVER}" ]; then
|
||||||
docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER}
|
docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \
|
||||||
|
{ if [[ "${PUSHIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
'''
|
'''
|
||||||
@ -940,20 +963,27 @@ pipeline {
|
|||||||
CACHEIMAGE=${i}
|
CACHEIMAGE=${i}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${META_TAG} -t ${MANIFESTIMAGE}:amd64-develop -t ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER}
|
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${META_TAG} -t ${MANIFESTIMAGE}:amd64-latest -t ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \
|
||||||
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${META_TAG} -t ${MANIFESTIMAGE}:arm64v8-develop -t ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}
|
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
|
||||||
|
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${META_TAG} -t ${MANIFESTIMAGE}:arm64v8-latest -t ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || \
|
||||||
|
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
|
||||||
if [ -n "${SEMVER}" ]; then
|
if [ -n "${SEMVER}" ]; then
|
||||||
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER}
|
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \
|
||||||
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${SEMVER} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}
|
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
|
||||||
|
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${SEMVER} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || \
|
||||||
|
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do
|
for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do
|
||||||
docker buildx imagetools create -t ${MANIFESTIMAGE}:develop ${MANIFESTIMAGE}:amd64-develop ${MANIFESTIMAGE}:arm64v8-develop
|
docker buildx imagetools create -t ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm64v8-latest || \
|
||||||
docker buildx imagetools create -t ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
|
||||||
|
docker buildx imagetools create -t ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} || \
|
||||||
docker buildx imagetools create -t ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
|
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
|
||||||
|
docker buildx imagetools create -t ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} || \
|
||||||
|
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
|
||||||
if [ -n "${SEMVER}" ]; then
|
if [ -n "${SEMVER}" ]; then
|
||||||
docker buildx imagetools create -t ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:amd64-${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER}
|
docker buildx imagetools create -t ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:amd64-${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER} || \
|
||||||
|
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
'''
|
'''
|
||||||
@ -963,7 +993,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 "develop"
|
branch "main"
|
||||||
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
|
||||||
}
|
}
|
||||||
@ -971,36 +1001,54 @@ pipeline {
|
|||||||
environment name: 'EXIT_STATUS', value: ''
|
environment name: 'EXIT_STATUS', value: ''
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo "Pushing New tag for current commit ${META_TAG}"
|
|
||||||
sh '''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
|
|
||||||
-d '{"tag":"'${META_TAG}'",\
|
|
||||||
"object": "'${COMMIT_SHA}'",\
|
|
||||||
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to develop",\
|
|
||||||
"type": "commit",\
|
|
||||||
"tagger": {"name": "LinuxServer-CI","email": "ci@linuxserver.io","date": "'${GITHUB_DATE}'"}}' '''
|
|
||||||
echo "Pushing New release for Tag"
|
|
||||||
sh '''#! /bin/bash
|
sh '''#! /bin/bash
|
||||||
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_RELEASE_CLEAN} | jq '.commit.message' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
|
echo "Auto-generating release notes"
|
||||||
echo '{"tag_name":"'${META_TAG}'",\
|
if [ "$(git tag --points-at HEAD)" != "" ]; then
|
||||||
"target_commitish": "develop",\
|
echo "Existing tag points to current commit, suggesting no new LS changes"
|
||||||
"name": "'${META_TAG}'",\
|
AUTO_RELEASE_NOTES="No changes"
|
||||||
"body": "**CI Report:**\\n\\n'${CI_URL:-N/A}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start
|
else
|
||||||
printf '","draft": false,"prerelease": true}' >> releasebody.json
|
AUTO_RELEASE_NOTES=$(curl -fsL -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github+json" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases/generate-notes \
|
||||||
paste -d'\\0' start releasebody.json > releasebody.json.done
|
-d '{"tag_name":"'${META_TAG}'",\
|
||||||
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''
|
"target_commitish": "main"}' \
|
||||||
|
| jq -r '.body' | sed 's|## What.s Changed||')
|
||||||
|
fi
|
||||||
|
echo "Pushing New tag for current commit ${META_TAG}"
|
||||||
|
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
|
||||||
|
-d '{"tag":"'${META_TAG}'",\
|
||||||
|
"object": "'${COMMIT_SHA}'",\
|
||||||
|
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to main",\
|
||||||
|
"type": "commit",\
|
||||||
|
"tagger": {"name": "LinuxServer-CI","email": "ci@linuxserver.io","date": "'${GITHUB_DATE}'"}}'
|
||||||
|
echo "Pushing New release for Tag"
|
||||||
|
echo "Updating PIP version of ${EXT_PIP} to ${EXT_RELEASE_CLEAN}" > releasebody.json
|
||||||
|
jq -n \
|
||||||
|
--arg tag_name "$META_TAG" \
|
||||||
|
--arg target_commitish "main" \
|
||||||
|
--arg ci_url "${CI_URL:-N/A}" \
|
||||||
|
--arg ls_notes "$AUTO_RELEASE_NOTES" \
|
||||||
|
--arg remote_notes "$(cat releasebody.json)" \
|
||||||
|
'{
|
||||||
|
"tag_name": $tag_name,
|
||||||
|
"target_commitish": $target_commitish,
|
||||||
|
"name": $tag_name,
|
||||||
|
"body": ("**CI Report:**\\n\\n" + $ci_url + "\\n\\n**LinuxServer Changes:**\\n\\n" + $ls_notes + "\\n\\n**Remote Changes:**\\n\\n" + $remote_notes),
|
||||||
|
"draft": false,
|
||||||
|
"prerelease": false }' > 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
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Add protection to the release branch
|
// Add protection to the release branch
|
||||||
stage('Github-Release-Branch-Protection') {
|
stage('Github-Release-Branch-Protection') {
|
||||||
when {
|
when {
|
||||||
branch "develop"
|
branch "main"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
environment name: 'EXIT_STATUS', value: ''
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo "Setting up protection for release branch develop"
|
echo "Setting up protection for release branch main"
|
||||||
sh '''#! /bin/bash
|
sh '''#! /bin/bash
|
||||||
curl -H "Authorization: token ${GITHUB_TOKEN}" -X PUT https://api.github.com/repos/${LS_USER}/${LS_REPO}/branches/develop/protection \
|
curl -H "Authorization: token ${GITHUB_TOKEN}" -X PUT https://api.github.com/repos/${LS_USER}/${LS_REPO}/branches/main/protection \
|
||||||
-d $(jq -c . << EOF
|
-d $(jq -c . << EOF
|
||||||
{
|
{
|
||||||
"required_status_checks": null,
|
"required_status_checks": null,
|
||||||
@ -1162,12 +1210,22 @@ EOF
|
|||||||
}
|
}
|
||||||
cleanup {
|
cleanup {
|
||||||
sh '''#! /bin/bash
|
sh '''#! /bin/bash
|
||||||
echo "Performing docker system prune!!"
|
echo "Pruning builder!!"
|
||||||
containers=$(docker ps -aq)
|
docker builder prune -f --builder container || :
|
||||||
|
containers=$(docker ps -q)
|
||||||
if [[ -n "${containers}" ]]; then
|
if [[ -n "${containers}" ]]; then
|
||||||
docker stop ${containers}
|
BUILDX_CONTAINER_ID=$(docker ps -qf 'name=buildx_buildkit')
|
||||||
|
for container in ${containers}; do
|
||||||
|
if [[ "${container}" == "${BUILDX_CONTAINER_ID}" ]]; then
|
||||||
|
echo "skipping buildx container in docker stop"
|
||||||
|
else
|
||||||
|
echo "Stopping container ${container}"
|
||||||
|
docker stop ${container}
|
||||||
|
fi
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
docker system prune -af --volumes || :
|
docker system prune -f --volumes || :
|
||||||
|
docker image prune -af || :
|
||||||
'''
|
'''
|
||||||
cleanWs()
|
cleanWs()
|
||||||
}
|
}
|
||||||
|
|||||||
32
README.md
32
README.md
@ -1,11 +1,10 @@
|
|||||||
<!-- DO NOT EDIT THIS FILE MANUALLY -->
|
<!-- DO NOT EDIT THIS FILE MANUALLY -->
|
||||||
<!-- Please read https://github.com/linuxserver/docker-pyload-ng/blob/develop/.github/CONTRIBUTING.md -->
|
<!-- Please read https://github.com/linuxserver/docker-pyload-ng/blob/main/.github/CONTRIBUTING.md -->
|
||||||
[](https://linuxserver.io)
|
[](https://linuxserver.io)
|
||||||
|
|
||||||
[](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
|
[](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
|
||||||
[](https://discord.gg/YWrKVTn "realtime support / chat with the community and the team.")
|
[](https://linuxserver.io/discord "realtime support / chat with the community and the team.")
|
||||||
[](https://discourse.linuxserver.io "post on our community forum.")
|
[](https://discourse.linuxserver.io "post on our community forum.")
|
||||||
[](https://fleet.linuxserver.io "an online web interface which displays all of our maintained images.")
|
|
||||||
[](https://github.com/linuxserver "view the source for all of our repositories.")
|
[](https://github.com/linuxserver "view the source for all of our repositories.")
|
||||||
[](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
|
[](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
|
||||||
|
|
||||||
@ -20,9 +19,8 @@ The [LinuxServer.io](https://linuxserver.io) team brings you another container r
|
|||||||
Find us at:
|
Find us at:
|
||||||
|
|
||||||
* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
|
* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
|
||||||
* [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team.
|
* [Discord](https://linuxserver.io/discord) - realtime support / chat with the community and the team.
|
||||||
* [Discourse](https://discourse.linuxserver.io) - post on our community forum.
|
* [Discourse](https://discourse.linuxserver.io) - post on our community forum.
|
||||||
* [Fleet](https://fleet.linuxserver.io) - an online web interface which displays all of our maintained images.
|
|
||||||
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
|
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
|
||||||
* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget
|
* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget
|
||||||
|
|
||||||
@ -36,8 +34,8 @@ Find us at:
|
|||||||
[](https://quay.io/repository/linuxserver.io/pyload-ng)
|
[](https://quay.io/repository/linuxserver.io/pyload-ng)
|
||||||
[](https://hub.docker.com/r/linuxserver/pyload-ng)
|
[](https://hub.docker.com/r/linuxserver/pyload-ng)
|
||||||
[](https://hub.docker.com/r/linuxserver/pyload-ng)
|
[](https://hub.docker.com/r/linuxserver/pyload-ng)
|
||||||
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/develop/)
|
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/main/)
|
||||||
[](https://ci-tests.linuxserver.io/linuxserver/pyload-ng/develop/index.html)
|
[](https://ci-tests.linuxserver.io/linuxserver/pyload-ng/latest/index.html)
|
||||||
|
|
||||||
[pyLoad](https://pyload.net/) is a Free and Open Source download manager written in Python and designed to be extremely lightweight, easily extensible and fully manageable via web.
|
[pyLoad](https://pyload.net/) is a Free and Open Source download manager written in Python and designed to be extremely lightweight, easily extensible and fully manageable via web.
|
||||||
|
|
||||||
@ -47,7 +45,7 @@ Find us at:
|
|||||||
|
|
||||||
We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://distribution.github.io/distribution/spec/manifest-v2-2/#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://distribution.github.io/distribution/spec/manifest-v2-2/#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
|
||||||
|
|
||||||
Simply pulling `lscr.io/linuxserver/pyload-ng:develop` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
|
Simply pulling `lscr.io/linuxserver/pyload-ng: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:
|
||||||
|
|
||||||
@ -55,7 +53,6 @@ The architectures supported by this image are:
|
|||||||
| :----: | :----: | ---- |
|
| :----: | :----: | ---- |
|
||||||
| x86-64 | ✅ | amd64-\<version tag\> |
|
| x86-64 | ✅ | amd64-\<version tag\> |
|
||||||
| arm64 | ✅ | arm64v8-\<version tag\> |
|
| arm64 | ✅ | arm64v8-\<version tag\> |
|
||||||
| armhf | ❌ | |
|
|
||||||
|
|
||||||
## Version Tags
|
## Version Tags
|
||||||
|
|
||||||
@ -79,7 +76,7 @@ For general usage please see the pyLoad wiki [here](https://github.com/pyload/py
|
|||||||
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
|
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
|
||||||
|
|
||||||
>[!NOTE]
|
>[!NOTE]
|
||||||
>Unless a parameter is flaged as 'optional', it is *mandatory* and a value must be provided.
|
>Unless a parameter is flagged as 'optional', it is *mandatory* and a value must be provided.
|
||||||
|
|
||||||
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
|
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
|
||||||
|
|
||||||
@ -87,7 +84,7 @@ To help you get started creating a container from this image you can either use
|
|||||||
---
|
---
|
||||||
services:
|
services:
|
||||||
pyload-ng:
|
pyload-ng:
|
||||||
image: lscr.io/linuxserver/pyload-ng:develop
|
image: lscr.io/linuxserver/pyload-ng:latest
|
||||||
container_name: pyload-ng
|
container_name: pyload-ng
|
||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
@ -115,7 +112,7 @@ docker run -d \
|
|||||||
-v /path/to/pyload-ng/config:/config \
|
-v /path/to/pyload-ng/config:/config \
|
||||||
-v /path/to/downloads:/downloads \
|
-v /path/to/downloads:/downloads \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
lscr.io/linuxserver/pyload-ng:develop
|
lscr.io/linuxserver/pyload-ng:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
@ -196,7 +193,7 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
|
|||||||
* Image version number:
|
* Image version number:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/pyload-ng:develop
|
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/pyload-ng:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
## Updating Info
|
## Updating Info
|
||||||
@ -244,7 +241,7 @@ Below are the instructions for updating containers:
|
|||||||
* Update the image:
|
* Update the image:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull lscr.io/linuxserver/pyload-ng:develop
|
docker pull lscr.io/linuxserver/pyload-ng:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
* Stop the running container:
|
* Stop the running container:
|
||||||
@ -281,7 +278,7 @@ cd docker-pyload-ng
|
|||||||
docker build \
|
docker build \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--pull \
|
--pull \
|
||||||
-t lscr.io/linuxserver/pyload-ng:develop .
|
-t lscr.io/linuxserver/pyload-ng:latest .
|
||||||
```
|
```
|
||||||
|
|
||||||
The ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static`
|
The ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static`
|
||||||
@ -294,6 +291,9 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **09.01.26:** - Add gcompat for mini-racer.
|
||||||
|
* **01.09.25:** - Add new dep, libatomic.
|
||||||
|
* **09.06.25:** - Rebase to Alpine 3.22.
|
||||||
* **20.07.24:** - Revert to Alpine 3.19 due to inconsistent upstream addon support for Python 3.12.
|
* **20.07.24:** - Revert to Alpine 3.19 due to inconsistent upstream addon support for Python 3.12.
|
||||||
* **27.06.24:** - Rebase to Alpine 3.20.
|
* **27.06.24:** - Rebase to Alpine 3.20.
|
||||||
* **23.12.23:** - Rebase to Alpine 3.19.
|
* **23.12.23:** - Rebase to Alpine 3.19.
|
||||||
@ -301,7 +301,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
* **10.08.23:** - Bump unrar to 6.2.10.
|
* **10.08.23:** - Bump unrar to 6.2.10.
|
||||||
* **01.06.23:** - Replace p7zip with 7zip, add unrar.
|
* **01.06.23:** - Replace p7zip with 7zip, add unrar.
|
||||||
* **25.05.23:** - Rebase to Alpine 3.18, deprecate armhf.
|
* **25.05.23:** - Rebase to Alpine 3.18, deprecate armhf.
|
||||||
* **02.02.22:** - Rebase to Alpine 3.17.
|
* **02.02.22:** - Rebase master to alpine 3.17.
|
||||||
* **02.02.22:** - Add ffmpeg for the Youtube plugin.
|
* **02.02.22:** - Add ffmpeg for the Youtube plugin.
|
||||||
* **24.01.22:** - Replace unrar with p7zip.
|
* **24.01.22:** - Replace unrar with p7zip.
|
||||||
* **24.01.22:** - Initial release.
|
* **24.01.22:** - Initial release.
|
||||||
|
|||||||
@ -2,15 +2,13 @@
|
|||||||
|
|
||||||
# jenkins variables
|
# jenkins variables
|
||||||
project_name: docker-pyload-ng
|
project_name: docker-pyload-ng
|
||||||
external_type: github_commit
|
external_type: pip_version
|
||||||
release_type: prerelease
|
release_type: stable
|
||||||
release_tag: develop
|
release_tag: latest
|
||||||
ls_branch: develop
|
ls_branch: main
|
||||||
repo_vars:
|
repo_vars:
|
||||||
- EXT_GIT_BRANCH = 'develop'
|
- EXT_PIP = 'pyload-ng'
|
||||||
- EXT_USER = 'pyload'
|
- BUILD_VERSION_ARG = 'PYLOAD_VERSION'
|
||||||
- EXT_REPO = 'pyload'
|
|
||||||
- BUILD_VERSION_ARG = 'PYLOAD_COMMIT'
|
|
||||||
- LS_USER = 'linuxserver'
|
- LS_USER = 'linuxserver'
|
||||||
- LS_REPO = 'docker-pyload-ng'
|
- LS_REPO = 'docker-pyload-ng'
|
||||||
- CONTAINER_NAME = 'pyload-ng'
|
- CONTAINER_NAME = 'pyload-ng'
|
||||||
|
|||||||
@ -1,302 +1,347 @@
|
|||||||
NAME VERSION TYPE
|
NAME VERSION TYPE
|
||||||
7zip 23.01-r0 apk
|
7zip 24.09-r0 apk
|
||||||
Simple Launcher 1.1.0.14 dotnet (+5 duplicates)
|
Simple Launcher 1.1.0.14 binary (+5 duplicates)
|
||||||
alpine-baselayout 3.4.3-r2 apk
|
acl-libs 2.3.2-r1 apk
|
||||||
alpine-baselayout-data 3.4.3-r2 apk
|
aia-chaser 3.4.0 python
|
||||||
alpine-keys 2.4-r1 apk
|
aiodns 4.0.0 python
|
||||||
alpine-release 3.19.4-r0 apk
|
alpine-baselayout 3.7.0-r0 apk
|
||||||
alsa-lib 1.2.10-r0 apk
|
alpine-baselayout-data 3.7.0-r0 apk
|
||||||
anyhow 1.0.71 rust-crate
|
alpine-keys 2.5-r0 apk
|
||||||
anyhow 1.0.75 rust-crate
|
alpine-release 3.22.3-r0 apk
|
||||||
aom-libs 3.7.1-r0 apk
|
alsa-lib 1.2.14-r0 apk
|
||||||
apk-tools 2.14.4-r0 apk
|
annotated-types 0.7.0 python
|
||||||
arg_enum_proc_macro 0.3.2 rust-crate
|
anstream 0.6.8 rust-crate
|
||||||
arrayvec 0.7.2 rust-crate
|
anstyle 1.0.4 rust-crate
|
||||||
av-metrics 0.9.0 rust-crate
|
anstyle-parse 0.2.3 rust-crate
|
||||||
av1-grain 0.2.2 rust-crate
|
anstyle-query 1.0.2 rust-crate
|
||||||
babel 2.16.0 python
|
anyhow 1.0.79 rust-crate
|
||||||
bash 5.2.21-r0 apk
|
anyhow 1.0.98 rust-crate
|
||||||
bitflags 1.3.2 rust-crate
|
aom-libs 3.12.1-r0 apk
|
||||||
bitmath 1.3.3.1 python
|
apk-tools 2.14.9-r3 apk
|
||||||
bitstream-io 1.6.0 rust-crate
|
arg_enum_proc_macro 0.3.4 rust-crate
|
||||||
bitstream-io 1.7.0 rust-crate
|
arrayvec 0.7.4 rust-crate
|
||||||
bitvec 1.0.1 rust-crate
|
autocommand 2.2.2 python
|
||||||
bitvec_helpers 3.1.2 rust-crate
|
av-metrics 0.9.1 rust-crate
|
||||||
blinker 1.9.0 python
|
av1-grain 0.2.3 rust-crate
|
||||||
brotli 1.1.0 python
|
babel 2.18.0 python
|
||||||
brotli-libs 1.1.0-r1 apk
|
backports-tarfile 1.2.0 python
|
||||||
busybox 1.36.1-r19 apk
|
backports-zstd 1.3.0 python
|
||||||
busybox-binsh 1.36.1-r19 apk
|
bash 5.2.37-r0 apk
|
||||||
c-ares 1.27.0-r0 apk
|
beautifulsoup4 4.14.3 python
|
||||||
ca-certificates 20240226-r0 apk
|
bitflags 2.4.1 rust-crate
|
||||||
ca-certificates-bundle 20240226-r0 apk
|
bitmath 1.3.3.1 python
|
||||||
cachelib 0.13.0 python
|
bitstream-io 2.2.0 rust-crate
|
||||||
cairo 1.18.0-r0 apk
|
bitstream-io 2.6.0 rust-crate
|
||||||
catatonit 0.2.0-r0 apk
|
bitvec 1.0.1 rust-crate
|
||||||
certifi 2024.12.14 python
|
bitvec_helpers 3.1.6 rust-crate
|
||||||
cffi 1.17.1 python
|
blinker 1.9.0 python
|
||||||
cfg-if 1.0.0 rust-crate
|
brotli 1.2.0 python
|
||||||
cheroot 10.0.1 python
|
brotli-libs 1.1.0-r2 apk
|
||||||
cjson 1.7.17-r0 apk
|
busybox 1.37.0-r20 apk
|
||||||
clap 4.0.32 rust-crate
|
busybox-binsh 1.37.0-r20 apk
|
||||||
clap_complete 4.0.7 rust-crate
|
c-ares 1.34.6-r0 apk
|
||||||
clap_derive 4.0.21 rust-crate
|
ca-certificates 20250911-r0 apk
|
||||||
clap_lex 0.3.0 rust-crate
|
ca-certificates-bundle 20250911-r0 apk
|
||||||
click 8.1.8 python
|
cachelib 0.13.0 python
|
||||||
console 0.15.5 rust-crate
|
cairo 1.18.4-r0 apk
|
||||||
coreutils 9.4-r2 apk
|
catatonit 0.2.1-r0 apk
|
||||||
coreutils-env 9.4-r2 apk
|
certifi 2026.2.25 python
|
||||||
coreutils-fmt 9.4-r2 apk
|
cffi 2.0.0 python
|
||||||
coreutils-sha512sum 9.4-r2 apk
|
cfg-if 1.0.0 rust-crate
|
||||||
crc 3.0.1 rust-crate
|
cheroot 11.1.2 python
|
||||||
crc-catalog 2.2.0 rust-crate
|
cjson 1.7.19-r0 apk
|
||||||
crossbeam 0.8.2 rust-crate
|
clap 4.4.14 rust-crate
|
||||||
crossbeam-channel 0.5.8 rust-crate
|
clap_builder 4.4.14 rust-crate
|
||||||
crossbeam-deque 0.8.3 rust-crate
|
clap_complete 4.4.6 rust-crate
|
||||||
crossbeam-epoch 0.9.14 rust-crate
|
clap_derive 4.4.7 rust-crate
|
||||||
crossbeam-queue 0.3.8 rust-crate
|
clap_lex 0.6.0 rust-crate
|
||||||
crossbeam-utils 0.8.15 rust-crate
|
cli UNKNOWN binary
|
||||||
cryptography 44.0.0 python
|
cli-32 UNKNOWN binary
|
||||||
curl 8.9.1-r1 apk
|
cli-64 UNKNOWN binary
|
||||||
dbus-libs 1.14.10-r0 apk
|
cli-arm64 UNKNOWN binary
|
||||||
dolby_vision 3.2.0 rust-crate
|
click 8.3.1 python
|
||||||
either 1.8.1 rust-crate
|
colorchoice 1.0.0 rust-crate
|
||||||
fern 0.6.2 rust-crate
|
colorlog 6.10.1 python
|
||||||
ffmpeg 6.1.1-r0 apk
|
console 0.15.8 rust-crate
|
||||||
ffmpeg-libavcodec 6.1.1-r0 apk
|
coreutils 9.7-r1 apk
|
||||||
ffmpeg-libavdevice 6.1.1-r0 apk
|
coreutils-env 9.7-r1 apk
|
||||||
ffmpeg-libavfilter 6.1.1-r0 apk
|
coreutils-fmt 9.7-r1 apk
|
||||||
ffmpeg-libavformat 6.1.1-r0 apk
|
coreutils-sha512sum 9.7-r1 apk
|
||||||
ffmpeg-libavutil 6.1.1-r0 apk
|
crc 3.3.0 rust-crate
|
||||||
ffmpeg-libpostproc 6.1.1-r0 apk
|
crc-catalog 2.4.0 rust-crate
|
||||||
ffmpeg-libswresample 6.1.1-r0 apk
|
crossbeam 0.8.4 rust-crate
|
||||||
ffmpeg-libswscale 6.1.1-r0 apk
|
crossbeam-channel 0.5.14 rust-crate
|
||||||
filetype 1.2.0 python
|
crossbeam-deque 0.8.5 rust-crate
|
||||||
findutils 4.9.0-r5 apk
|
crossbeam-epoch 0.9.18 rust-crate
|
||||||
flask 3.1.0 python
|
crossbeam-queue 0.3.11 rust-crate
|
||||||
flask-babel 4.0.0 python
|
crossbeam-utils 0.8.19 rust-crate
|
||||||
flask-caching 1.11.1 python
|
cryptography 46.0.5 python
|
||||||
flask-compress 1.17 python
|
curl 8.14.1-r2 apk
|
||||||
flask-session 0.8.0 python
|
dbus-libs 1.16.2-r1 apk
|
||||||
flask-themes2 1.0.1 python
|
defusedxml 0.7.1 python
|
||||||
fontconfig 2.14.2-r4 apk
|
dolby_vision 3.3.1 rust-crate
|
||||||
freetype 2.13.2-r0 apk
|
either 1.9.0 rust-crate
|
||||||
fribidi 1.0.13-r0 apk
|
errno 0.3.8 rust-crate
|
||||||
funty 2.0.0 rust-crate
|
fern 0.6.2 rust-crate
|
||||||
gdbm 1.23-r1 apk
|
ffmpeg 6.1.2-r2 apk
|
||||||
getrandom 0.2.9 rust-crate
|
ffmpeg-libavcodec 6.1.2-r2 apk
|
||||||
giflib 5.2.2-r0 apk
|
ffmpeg-libavdevice 6.1.2-r2 apk
|
||||||
glib 2.78.6-r0 apk
|
ffmpeg-libavfilter 6.1.2-r2 apk
|
||||||
glslang-libs 1.3.261.1-r0 apk
|
ffmpeg-libavformat 6.1.2-r2 apk
|
||||||
graphite2 1.3.14-r6 apk
|
ffmpeg-libavutil 6.1.2-r2 apk
|
||||||
harfbuzz 8.3.0-r0 apk
|
ffmpeg-libpostproc 6.1.2-r2 apk
|
||||||
heck 0.4.1 rust-crate
|
ffmpeg-libswresample 6.1.2-r2 apk
|
||||||
hwdata-pci 0.377.2-r0 apk
|
ffmpeg-libswscale 6.1.2-r2 apk
|
||||||
icu-data-en 74.1-r0 apk
|
filetype 1.2.0 python
|
||||||
icu-libs 74.1-r0 apk
|
findutils 4.10.0-r0 apk
|
||||||
interpolate_name 0.2.3 rust-crate
|
flask 3.1.3 python
|
||||||
io-lifetimes 1.0.10 rust-crate
|
flask-babel 4.0.0 python
|
||||||
is-terminal 0.4.7 rust-crate
|
flask-caching 1.11.1 python
|
||||||
itertools 0.10.5 rust-crate
|
flask-compress 1.23 python
|
||||||
itsdangerous 2.2.0 python
|
flask-session 0.8.0 python
|
||||||
ivf 0.1.2 rust-crate
|
flask-themes2 1.0.1 python
|
||||||
jaraco-functools 4.1.0 python
|
flask-wtf 1.2.2 python
|
||||||
jinja2 3.1.5 python
|
fontconfig 2.15.0-r3 apk
|
||||||
jq 1.7.1-r0 apk
|
freetype 2.13.3-r0 apk
|
||||||
js2py 0.74 python
|
fribidi 1.0.16-r1 apk
|
||||||
lab 0.11.0 rust-crate
|
funty 2.0.0 rust-crate
|
||||||
lame-libs 3.100-r5 apk
|
gcompat 1.1.0-r4 apk
|
||||||
lazy_static 1.4.0 rust-crate
|
gdbm 1.24-r0 apk
|
||||||
lcms2 2.15-r4 apk
|
getrandom 0.2.12 rust-crate
|
||||||
leptonica 1.83.1-r0 apk
|
giflib 5.2.2-r1 apk
|
||||||
libSvtAv1Enc 1.7.0-r0 apk
|
glib 2.84.4-r0 apk
|
||||||
libacl 2.3.1-r4 apk
|
glslang-libs 1.4.309.0-r0 apk
|
||||||
libass 0.17.1-r1 apk
|
graphite2 1.3.14-r6 apk
|
||||||
libasyncns 0.8-r2 apk
|
gui UNKNOWN binary
|
||||||
libattr 2.5.1-r5 apk
|
gui-32 UNKNOWN binary
|
||||||
libblkid 2.39.3-r0 apk
|
gui-64 UNKNOWN binary
|
||||||
libbluray 1.3.4-r1 apk
|
gui-arm64 UNKNOWN binary
|
||||||
libbsd 0.11.7-r3 apk
|
harfbuzz 11.2.1-r0 apk
|
||||||
libbz2 1.0.8-r6 apk
|
heck 0.4.1 rust-crate
|
||||||
libc 0.2.144 rust-crate
|
hwdata-pci 0.395-r0 apk
|
||||||
libc 0.2.149 rust-crate
|
icu-data-en 76.1-r1 apk
|
||||||
libc-utils 0.7.2-r5 apk
|
icu-libs 76.1-r1 apk
|
||||||
libcrypto3 3.1.7-r1 apk
|
imath 3.1.12-r0 apk
|
||||||
libcurl 8.9.1-r1 apk
|
importlib-metadata 8.7.1 python
|
||||||
libdav1d 1.3.0-r1 apk
|
interpolate_name 0.2.4 rust-crate
|
||||||
libdovi 3.2.0-r1 apk
|
itertools 0.10.5 rust-crate
|
||||||
libdrm 2.4.118-r0 apk
|
itertools 0.12.0 rust-crate
|
||||||
libexpat 2.6.4-r0 apk
|
itsdangerous 2.2.0 python
|
||||||
libffi 3.4.4-r3 apk
|
ivf 0.1.3 rust-crate
|
||||||
libflac 1.4.3-r1 apk
|
jaraco-context 6.1.0 python
|
||||||
libgcc 13.2.1_git20231014-r0 apk
|
jaraco-functools 4.4.0 python (+1 duplicate)
|
||||||
libgomp 13.2.1_git20231014-r0 apk
|
jaraco-text 4.0.0 python
|
||||||
libhwy 1.0.7-r0 apk
|
jinja2 3.1.6 python
|
||||||
libidn2 2.3.4-r4 apk
|
jq 1.8.1-r0 apk
|
||||||
libintl 0.22.3-r0 apk
|
lab 0.11.0 rust-crate
|
||||||
libjpeg-turbo 3.0.1-r0 apk
|
lame-libs 3.100-r5 apk
|
||||||
libjxl 0.8.2-r0 apk
|
lazy_static 1.4.0 rust-crate
|
||||||
libltdl 2.4.7-r3 apk
|
lcms2 2.16-r0 apk
|
||||||
libmd 1.1.0-r0 apk
|
leptonica 1.85.0-r0 apk
|
||||||
libmount 2.39.3-r0 apk
|
libSvtAv1Enc 2.3.0-r0 apk
|
||||||
libncursesw 6.4_p20231125-r0 apk
|
libapk2 2.14.9-r3 apk
|
||||||
libogg 1.3.5-r5 apk
|
libass 0.17.3-r0 apk
|
||||||
libopenmpt 0.7.3-r1 apk
|
libasyncns 0.8-r4 apk
|
||||||
libpanelw 6.4_p20231125-r0 apk
|
libatomic 14.2.0-r6 apk
|
||||||
libpciaccess 0.17-r2 apk
|
libattr 2.5.2-r2 apk
|
||||||
libplacebo 6.338.1-r0 apk
|
libblkid 2.41-r9 apk
|
||||||
libpng 1.6.44-r0 apk
|
libbluray 1.3.4-r1 apk
|
||||||
libproc2 4.0.4-r0 apk
|
libbsd 0.12.2-r0 apk
|
||||||
libpulse 16.1-r11 apk
|
libbz2 1.0.8-r6 apk
|
||||||
librist 0.2.10-r0 apk
|
libc 0.2.155 rust-crate
|
||||||
libsharpyuv 1.3.2-r0 apk
|
libc 0.2.172 rust-crate
|
||||||
libsndfile 1.2.2-r0 apk
|
libcrypto3 3.5.5-r0 apk
|
||||||
libsodium 1.0.19-r0 apk
|
libcurl 8.14.1-r2 apk
|
||||||
libsrt 1.5.3-r0 apk
|
libdav1d 1.5.1-r0 apk
|
||||||
libssh 0.10.6-r0 apk
|
libdeflate 1.23-r0 apk
|
||||||
libssl3 3.1.7-r1 apk
|
libdovi 3.3.1-r1 apk
|
||||||
libstdc++ 13.2.1_git20231014-r0 apk
|
libdrm 2.4.124-r0 apk
|
||||||
libtheora 1.1.1-r18 apk
|
libeconf 0.6.3-r0 apk
|
||||||
libunibreak 5.1-r3 apk
|
libexpat 2.7.4-r0 apk
|
||||||
libunistring 1.1-r2 apk
|
libffi 3.4.8-r0 apk
|
||||||
libva 2.20.0-r0 apk
|
libflac 1.4.3-r1 apk
|
||||||
libvdpau 1.5-r2 apk
|
libgcc 14.2.0-r6 apk
|
||||||
libvorbis 1.3.7-r2 apk
|
libgomp 14.2.0-r6 apk
|
||||||
libvpx 1.13.1-r0 apk
|
libhwy 1.0.7-r1 apk
|
||||||
libwebp 1.3.2-r0 apk
|
libidn2 2.3.7-r0 apk
|
||||||
libwebpmux 1.3.2-r0 apk
|
libintl 0.24.1-r0 apk
|
||||||
libx11 1.8.7-r0 apk
|
libjpeg-turbo 3.1.0-r0 apk
|
||||||
libxau 1.0.11-r3 apk
|
libjxl 0.10.3-r2 apk
|
||||||
libxcb 1.16-r0 apk
|
libltdl 2.5.4-r1 apk
|
||||||
libxdmcp 1.1.4-r3 apk
|
libmd 1.1.0-r0 apk
|
||||||
libxext 1.3.5-r3 apk
|
libmount 2.41-r9 apk
|
||||||
libxfixes 6.0.1-r3 apk
|
libncursesw 6.5_p20250503-r0 apk
|
||||||
libxft 2.3.8-r2 apk
|
libogg 1.3.5-r5 apk
|
||||||
libxml2 2.11.8-r0 apk
|
libopenmpt 0.7.15-r0 apk
|
||||||
libxrender 0.9.11-r4 apk
|
libpanelw 6.5_p20250503-r0 apk
|
||||||
libzmq 4.3.5-r2 apk
|
libpciaccess 0.18.1-r0 apk
|
||||||
lilv-libs 0.24.22-r0 apk
|
libplacebo 6.338.2-r3 apk
|
||||||
linux-pam 1.5.3-r7 apk
|
libpng 1.6.55-r0 apk
|
||||||
linux-raw-sys 0.3.7 rust-crate
|
libproc2 4.0.4-r3 apk
|
||||||
log 0.4.17 rust-crate
|
libpsl 0.21.5-r3 apk
|
||||||
markupsafe 3.0.2 python
|
libpulse 17.0-r5 apk
|
||||||
maybe-rayon 0.1.1 rust-crate
|
librist 0.2.10-r1 apk
|
||||||
mbedtls 2.28.9-r0 apk
|
libsharpyuv 1.5.0-r0 apk
|
||||||
memchr 2.5.0 rust-crate
|
libsndfile 1.2.2-r2 apk
|
||||||
memoffset 0.8.0 rust-crate
|
libsodium 1.0.20-r1 apk
|
||||||
minimal-lexical 0.2.1 rust-crate
|
libsrt 1.5.3-r1 apk
|
||||||
more-itertools 10.5.0 python
|
libssh 0.11.2-r0 apk
|
||||||
mpdecimal 2.5.1-r2 apk
|
libssl3 3.5.5-r0 apk
|
||||||
mpg123-libs 1.32.8-r0 apk
|
libstdc++ 14.2.0-r6 apk
|
||||||
msgspec 0.19.0 python
|
libtheora 1.1.1-r18 apk
|
||||||
musl 1.2.4_git20230717-r4 apk
|
libucontext 1.3.2-r0 apk
|
||||||
musl-utils 1.2.4_git20230717-r4 apk
|
libunibreak 6.1-r0 apk
|
||||||
ncurses-terminfo-base 6.4_p20231125-r0 apk
|
libunistring 1.3-r0 apk
|
||||||
netcat-openbsd 1.226-r0 apk
|
libva 2.22.0-r1 apk
|
||||||
new_debug_unreachable 1.0.4 rust-crate
|
libvdpau 1.5-r4 apk
|
||||||
nghttp2-libs 1.58.0-r0 apk
|
libvorbis 1.3.7-r2 apk
|
||||||
nom 7.1.3 rust-crate
|
libvpx 1.15.0-r0 apk
|
||||||
noop_proc_macro 0.3.0 rust-crate
|
libwebp 1.5.0-r0 apk
|
||||||
num-bigint 0.4.3 rust-crate
|
libwebpmux 1.5.0-r0 apk
|
||||||
num-derive 0.3.3 rust-crate
|
libx11 1.8.11-r0 apk
|
||||||
num-integer 0.1.45 rust-crate
|
libxau 1.0.12-r0 apk
|
||||||
num-rational 0.4.1 rust-crate
|
libxcb 1.17.0-r0 apk
|
||||||
num-traits 0.2.15 rust-crate
|
libxdmcp 1.1.5-r1 apk
|
||||||
num_cpus 1.15.0 rust-crate
|
libxext 1.3.6-r2 apk
|
||||||
numactl 2.0.16-r4 apk
|
libxfixes 6.0.1-r4 apk
|
||||||
once_cell 1.17.1 rust-crate
|
libxft 2.3.8-r3 apk
|
||||||
onevpl-libs 2023.3.1-r2 apk
|
libxml2 2.13.9-r0 apk
|
||||||
oniguruma 6.9.9-r0 apk
|
libxrender 0.9.12-r0 apk
|
||||||
opus 1.4-r0 apk
|
libzmq 4.3.5-r2 apk
|
||||||
orc 0.4.39-r0 apk
|
lilv-libs 0.24.26-r0 apk
|
||||||
os_str_bytes 6.5.0 rust-crate
|
linux-pam 1.7.0-r4 apk
|
||||||
pango 1.51.0-r0 apk
|
linux-raw-sys 0.4.12 rust-crate
|
||||||
paste 1.0.12 rust-crate
|
log 0.4.20 rust-crate
|
||||||
pcre2 10.42-r2 apk
|
markupsafe 3.0.3 python
|
||||||
pip 24.3.1 python
|
maybe-rayon 0.1.1 rust-crate
|
||||||
pixman 0.42.2-r2 apk
|
mbedtls 3.6.5-r0 apk
|
||||||
ppv-lite86 0.2.17 rust-crate
|
memchr 2.7.1 rust-crate
|
||||||
proc-macro-error 1.0.4 rust-crate
|
mini-racer 0.14.1 python
|
||||||
proc-macro-error-attr 1.0.4 rust-crate
|
minimal-lexical 0.2.1 rust-crate
|
||||||
proc-macro2 1.0.57 rust-crate
|
more-itertools 10.8.0 python (+1 duplicate)
|
||||||
procps-ng 4.0.4-r0 apk
|
mpdecimal 4.0.1-r0 apk
|
||||||
pyc 3.11.11-r0 apk
|
mpg123-libs 1.32.10-r0 apk
|
||||||
pycparser 2.22 python
|
msgspec 0.20.0 python
|
||||||
pycurl 7.45.4 python
|
musl 1.2.5-r10 apk
|
||||||
pyjsparser 2.7.1 python
|
musl-obstack 1.2.3-r2 apk
|
||||||
pyload-ng 0.5.0b3 python
|
musl-utils 1.2.5-r10 apk
|
||||||
python3 3.11.11-r0 apk
|
ncurses-terminfo-base 6.5_p20250503-r0 apk
|
||||||
python3-pyc 3.11.11-r0 apk
|
netcat-openbsd 1.229.1-r0 apk
|
||||||
python3-pycache-pyc0 3.11.11-r0 apk
|
new_debug_unreachable 1.0.4 rust-crate
|
||||||
pytz 2024.2 python
|
nghttp2-libs 1.65.0-r0 apk
|
||||||
quote 1.0.27 rust-crate
|
nom 7.1.3 rust-crate
|
||||||
radium 0.7.0 rust-crate
|
noop_proc_macro 0.3.0 rust-crate
|
||||||
rand 0.8.5 rust-crate
|
num-bigint 0.4.4 rust-crate
|
||||||
rand_chacha 0.3.1 rust-crate
|
num-derive 0.4.1 rust-crate
|
||||||
rand_core 0.6.4 rust-crate
|
num-integer 0.1.45 rust-crate
|
||||||
rav1e 0.6.6 rust-crate
|
num-rational 0.4.1 rust-crate
|
||||||
rav1e-libs 0.6.6-r2 apk
|
num-traits 0.2.17 rust-crate
|
||||||
rayon 1.7.0 rust-crate
|
numactl 2.0.18-r0 apk
|
||||||
rayon-core 1.11.0 rust-crate
|
once_cell 1.19.0 rust-crate
|
||||||
readline 8.2.1-r2 apk
|
onevpl-libs 2023.3.1-r2 apk
|
||||||
rust_hawktracer 0.7.0 rust-crate
|
oniguruma 6.9.10-r0 apk
|
||||||
rust_hawktracer_normal_macro 0.4.1 rust-crate
|
openexr-libiex 3.3.2-r0 apk
|
||||||
rust_hawktracer_proc_macro 0.4.1 rust-crate
|
openexr-libilmthread 3.3.2-r0 apk
|
||||||
rustix 0.37.19 rust-crate
|
openexr-libopenexr 3.3.2-r0 apk
|
||||||
scan_fmt 0.2.6 rust-crate
|
openexr-libopenexrcore 3.3.2-r0 apk
|
||||||
scanelf 1.3.7-r2 apk
|
opus 1.5.2-r1 apk
|
||||||
scopeguard 1.1.0 rust-crate
|
orc 0.4.40-r1 apk
|
||||||
sdl2 2.28.5-r0 apk
|
packaging 26.0 python (+1 duplicate)
|
||||||
semver 2.13.0 python
|
pango 1.56.3-r0 apk
|
||||||
serd-libs 0.32.0-r0 apk
|
paste 1.0.14 rust-crate
|
||||||
serde 1.0.163 rust-crate
|
pcre2 10.46-r0 apk
|
||||||
serde_derive 1.0.163 rust-crate
|
pillow 12.1.1 python
|
||||||
setuptools 65.5.0 python
|
pip 26.0.1 python
|
||||||
shaderc 2023.7-r0 apk
|
pixman 0.46.4-r0 apk
|
||||||
shadow 4.14.2-r0 apk
|
platformdirs 4.4.0 python
|
||||||
signal-hook 0.3.15 rust-crate
|
ppv-lite86 0.2.17 rust-crate
|
||||||
signal-hook-registry 1.4.1 rust-crate
|
proc-macro2 1.0.76 rust-crate
|
||||||
simd_helpers 0.1.0 rust-crate
|
procps-ng 4.0.4-r3 apk
|
||||||
six 1.17.0 python
|
profiling 1.0.13 rust-crate
|
||||||
skalibs 2.14.0.1-r0 apk
|
profiling-procmacros 1.0.13 rust-crate
|
||||||
sord-libs 0.16.16-r0 apk
|
pyasn1 0.6.2 python
|
||||||
soxr 0.1.3-r7 apk
|
pyasn1-modules 0.4.2 python
|
||||||
speexdsp 1.2.1-r2 apk
|
pyc 3.12.12-r0 apk
|
||||||
spirv-tools 1.3.261.1-r0 apk
|
pycares 5.0.1 python
|
||||||
sqlite 3.44.2-r0 apk
|
pycparser 3.0 python
|
||||||
sqlite-libs 3.44.2-r0 apk
|
pycurl 7.45.7 python
|
||||||
sratom 0.6.16-r0 apk
|
pydantic 2.12.5 python
|
||||||
ssl_client 1.36.1-r19 apk
|
pydantic-core 2.41.5 python
|
||||||
syn 1.0.109 rust-crate
|
pyload-ng 0.5.0b3.dev96 python
|
||||||
syn 2.0.16 rust-crate
|
pyopenssl 25.3.0 python
|
||||||
tap 1.0.1 rust-crate
|
python3 3.12.12-r0 apk
|
||||||
tdb-libs 1.4.9-r0 apk
|
python3-pyc 3.12.12-r0 apk
|
||||||
termcolor 1.2.0 rust-crate
|
python3-pycache-pyc0 3.12.12-r0 apk
|
||||||
terminal_size 0.2.6 rust-crate
|
pytz 2026.1.post1 python
|
||||||
tesseract-ocr 5.3.3-r1 apk
|
quote 1.0.35 rust-crate
|
||||||
thiserror 1.0.40 rust-crate
|
radium 0.7.0 rust-crate
|
||||||
thiserror-impl 1.0.40 rust-crate
|
rand 0.8.5 rust-crate
|
||||||
tiff 4.6.0-r0 apk
|
rand_chacha 0.3.1 rust-crate
|
||||||
tzdata 2024a-r0 apk
|
rand_core 0.6.4 rust-crate
|
||||||
tzlocal 5.2 python
|
rav1e 0.7.1 rust-crate
|
||||||
unicode-ident 1.0.8 rust-crate
|
rav1e-libs 0.7.1-r2 apk
|
||||||
unicode-width 0.1.10 rust-crate
|
rayon 1.8.0 rust-crate
|
||||||
utmps-libs 0.1.2.2-r0 apk
|
rayon-core 1.12.0 rust-crate
|
||||||
v4l-utils-libs 1.24.1-r1 apk
|
readline 8.2.13-r1 apk
|
||||||
v_frame 0.3.3 rust-crate
|
rustix 0.38.28 rust-crate
|
||||||
vidstab 1.1.1-r0 apk
|
scan_fmt 0.2.6 rust-crate
|
||||||
vulkan-loader 1.3.261.1-r0 apk
|
scanelf 1.3.8-r1 apk
|
||||||
wayland-libs-client 1.22.0-r4 apk
|
sdl2-compat 2.32.56-r0 apk
|
||||||
werkzeug 3.1.3 python
|
sdl3 3.2.16-r0 apk
|
||||||
wheel 0.45.1 python
|
semver 2.13.0 python
|
||||||
wyz 0.5.1 rust-crate
|
send2trash 2.1.0 python
|
||||||
x264-libs 0.164_git20231001-r0 apk
|
serd-libs 0.32.4-r0 apk
|
||||||
x265-libs 3.5-r4 apk
|
setuptools 82.0.0 python
|
||||||
xvidcore 1.3.7-r2 apk
|
shaderc 2024.4-r0 apk
|
||||||
xz-libs 5.4.5-r0 apk
|
shadow 4.17.3-r0 apk
|
||||||
y4m 0.8.0 rust-crate
|
signal-hook 0.3.17 rust-crate
|
||||||
zimg 3.0.5-r2 apk
|
signal-hook-registry 1.4.1 rust-crate
|
||||||
zix-libs 0.4.2-r0 apk
|
simd_helpers 0.1.0 rust-crate
|
||||||
zlib 1.3.1-r0 apk
|
skalibs-libs 2.14.4.0-r0 apk
|
||||||
zstandard 0.23.0 python
|
slixmpp 1.13.2 python
|
||||||
zstd-libs 1.5.5-r8 apk
|
sord-libs 0.16.18-r0 apk
|
||||||
|
soupsieve 2.8.3 python
|
||||||
|
soxr 0.1.3-r7 apk
|
||||||
|
speexdsp 1.2.1-r2 apk
|
||||||
|
spirv-tools 1.4.313.0-r0 apk
|
||||||
|
sqlite 3.49.2-r1 apk
|
||||||
|
sqlite-libs 3.49.2-r1 apk
|
||||||
|
sratom 0.6.18-r0 apk
|
||||||
|
ssl_client 1.37.0-r20 apk
|
||||||
|
syn 2.0.48 rust-crate
|
||||||
|
tap 1.0.1 rust-crate
|
||||||
|
tdb-libs 1.4.12-r0 apk
|
||||||
|
tenacity 9.1.4 python
|
||||||
|
terminal_size 0.3.0 rust-crate
|
||||||
|
tesseract-ocr 5.5.0-r2 apk
|
||||||
|
thiserror 1.0.56 rust-crate
|
||||||
|
thiserror-impl 1.0.56 rust-crate
|
||||||
|
tiff 4.7.1-r0 apk
|
||||||
|
tinyvec 1.9.0 rust-crate
|
||||||
|
tomli 2.4.0 python
|
||||||
|
typing-extensions 4.15.0 python
|
||||||
|
typing-inspection 0.4.2 python
|
||||||
|
tzdata 2025c-r0 apk
|
||||||
|
unicode-ident 1.0.12 rust-crate
|
||||||
|
unicode-width 0.1.11 rust-crate
|
||||||
|
utf8parse 0.2.1 rust-crate
|
||||||
|
utmps-libs 0.1.3.1-r0 apk
|
||||||
|
v4l-utils-libs 1.28.1-r1 apk
|
||||||
|
v_frame 0.3.7 rust-crate
|
||||||
|
vidstab 1.1.1-r0 apk
|
||||||
|
vulkan-loader 1.4.313.0-r0 apk
|
||||||
|
wayland-libs-client 1.23.1-r3 apk
|
||||||
|
werkzeug 3.1.6 python
|
||||||
|
wheel 0.46.3 python (+1 duplicate)
|
||||||
|
wtforms 3.2.1 python
|
||||||
|
wyz 0.5.1 rust-crate
|
||||||
|
x264-libs 0.164.3108-r0 apk
|
||||||
|
x265-libs 3.6-r0 apk
|
||||||
|
xvidcore 1.3.7-r2 apk
|
||||||
|
xz-libs 5.8.1-r0 apk
|
||||||
|
y4m 0.8.0 rust-crate
|
||||||
|
zimg 3.0.5-r3 apk
|
||||||
|
zipp 3.23.0 python
|
||||||
|
zix-libs 0.6.2-r0 apk
|
||||||
|
zlib 1.3.1-r2 apk
|
||||||
|
zstd-libs 1.5.7-r0 apk
|
||||||
|
|||||||
@ -6,6 +6,7 @@ project_url: "https://pyload.net/"
|
|||||||
project_logo: "https://github.com/linuxserver/docker-templates/raw/master/linuxserver.io/img/pyload-logo.png"
|
project_logo: "https://github.com/linuxserver/docker-templates/raw/master/linuxserver.io/img/pyload-logo.png"
|
||||||
project_blurb: "[pyLoad]({{ project_url }}) is a Free and Open Source download manager written in Python and designed to be extremely lightweight, easily extensible and fully manageable via web."
|
project_blurb: "[pyLoad]({{ project_url }}) is a Free and Open Source download manager written in Python and designed to be extremely lightweight, easily extensible and fully manageable via web."
|
||||||
project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}"
|
project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}"
|
||||||
|
project_categories: "Downloaders"
|
||||||
# supported architectures
|
# supported architectures
|
||||||
available_architectures:
|
available_architectures:
|
||||||
- {arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
|
- {arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
|
||||||
@ -38,7 +39,7 @@ app_setup_block: |
|
|||||||
For general usage please see the pyLoad wiki [here](https://github.com/pyload/pyload/wiki) .
|
For general usage please see the pyLoad wiki [here](https://github.com/pyload/pyload/wiki) .
|
||||||
# init diagram
|
# init diagram
|
||||||
init_diagram: |
|
init_diagram: |
|
||||||
"pyload-ng:develop": {
|
"pyload-ng:latest": {
|
||||||
docker-mods
|
docker-mods
|
||||||
base {
|
base {
|
||||||
fix-attr +\nlegacy cont-init
|
fix-attr +\nlegacy cont-init
|
||||||
@ -53,34 +54,35 @@ init_diagram: |
|
|||||||
init-migrations -> init-adduser
|
init-migrations -> init-adduser
|
||||||
init-os-end -> init-config
|
init-os-end -> init-config
|
||||||
init-config -> init-config-end
|
init-config -> init-config-end
|
||||||
|
init-crontab-config -> init-config-end
|
||||||
init-pyload-config -> init-config-end
|
init-pyload-config -> init-config-end
|
||||||
init-os-end -> init-crontab-config
|
init-config -> init-crontab-config
|
||||||
init-mods-end -> init-custom-files
|
init-mods-end -> init-custom-files
|
||||||
|
init-adduser -> init-device-perms
|
||||||
base -> init-envfile
|
base -> init-envfile
|
||||||
base -> init-migrations
|
base -> init-migrations
|
||||||
base -> init-mods
|
|
||||||
init-config-end -> init-mods
|
init-config-end -> init-mods
|
||||||
init-mods -> init-mods-end
|
|
||||||
init-mods-package-install -> init-mods-end
|
init-mods-package-install -> init-mods-end
|
||||||
init-mods -> init-mods-package-install
|
init-mods -> init-mods-package-install
|
||||||
base -> init-os-end
|
|
||||||
init-adduser -> init-os-end
|
init-adduser -> init-os-end
|
||||||
|
init-device-perms -> init-os-end
|
||||||
init-envfile -> init-os-end
|
init-envfile -> init-os-end
|
||||||
init-migrations -> init-os-end
|
|
||||||
init-config -> init-pyload-config
|
init-config -> init-pyload-config
|
||||||
init-custom-files -> init-services
|
init-custom-files -> init-services
|
||||||
init-mods-end -> init-services
|
|
||||||
init-services -> svc-cron
|
init-services -> svc-cron
|
||||||
svc-cron -> legacy-services
|
svc-cron -> legacy-services
|
||||||
init-services -> svc-pyload
|
init-services -> svc-pyload
|
||||||
svc-pyload -> legacy-services
|
svc-pyload -> legacy-services
|
||||||
}
|
}
|
||||||
Base Images: {
|
Base Images: {
|
||||||
"baseimage-alpine:3.19"
|
"baseimage-alpine:3.22"
|
||||||
}
|
}
|
||||||
"pyload-ng:develop" <- Base Images
|
"pyload-ng:latest" <- Base Images
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- {date: "09.01.26:", desc: "Add gcompat for mini-racer."}
|
||||||
|
- {date: "01.09.25:", desc: "Add new dep, libatomic."}
|
||||||
|
- {date: "09.06.25:", desc: "Rebase to Alpine 3.22."}
|
||||||
- {date: "20.07.24:", desc: "Revert to Alpine 3.19 due to inconsistent upstream addon support for Python 3.12."}
|
- {date: "20.07.24:", desc: "Revert to Alpine 3.19 due to inconsistent upstream addon support for Python 3.12."}
|
||||||
- {date: "27.06.24:", desc: "Rebase to Alpine 3.20."}
|
- {date: "27.06.24:", desc: "Rebase to Alpine 3.20."}
|
||||||
- {date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
|
- {date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
|
||||||
@ -88,7 +90,7 @@ changelogs:
|
|||||||
- {date: "10.08.23:", desc: "Bump unrar to 6.2.10."}
|
- {date: "10.08.23:", desc: "Bump unrar to 6.2.10."}
|
||||||
- {date: "01.06.23:", desc: "Replace p7zip with 7zip, add unrar."}
|
- {date: "01.06.23:", desc: "Replace p7zip with 7zip, add unrar."}
|
||||||
- {date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf."}
|
- {date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf."}
|
||||||
- {date: "02.02.22:", desc: "Rebase to Alpine 3.17."}
|
- {date: "02.02.22:", desc: "Rebase master to alpine 3.17."}
|
||||||
- {date: "02.02.22:", desc: "Add ffmpeg for the Youtube plugin."}
|
- {date: "02.02.22:", desc: "Add ffmpeg for the Youtube plugin."}
|
||||||
- {date: "24.01.22:", desc: "Replace unrar with p7zip."}
|
- {date: "24.01.22:", desc: "Replace unrar with p7zip."}
|
||||||
- {date: "24.01.22:", desc: "Initial release."}
|
- {date: "24.01.22:", desc: "Initial release."}
|
||||||
|
|||||||
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
PORT=$(sed -n -e '/webui/,/proxy/p' /config/settings/pyload.cfg | grep "Port" | awk -F '=' '{print $2}' | tr -d ' ')
|
PORT=$(sed -n -e '/webui/,/proxy/p' /config/settings/pyload.cfg | grep "Port" | awk -F '=' '{print $2}' | tr -d ' ')
|
||||||
|
|
||||||
|
export LD_PRELOAD="/lib/libgcompat.so.0"
|
||||||
|
|
||||||
exec \
|
exec \
|
||||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${PORT:-8000}" \
|
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${PORT:-8000}" \
|
||||||
s6-setuidgid abc pyload --userdir /config --storagedir /downloads
|
s6-setuidgid abc pyload --userdir /config --storagedir /downloads
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user