Compare commits

..

243 Commits

Author SHA1 Message Date
LinuxServer-CI
9a3671c117 Bot Updating Package Versions 2024-06-20 23:22:59 +00:00
LinuxServer-CI
da7eb4df64 Bot Updating Package Versions 2024-06-19 20:22:19 +00:00
LinuxServer-CI
ea3a5a6297 Bot Updating Package Versions 2024-06-12 20:23:50 +00:00
LinuxServer-CI
0421375534 Bot Updating Package Versions 2024-06-07 19:21:57 +00:00
LinuxServer-CI
8dc027c677 Bot Updating Package Versions 2024-05-24 19:22:49 +00:00
LinuxServer-CI
6b9f6541c3 Bot Updating Templated Files 2024-05-24 19:19:37 +00:00
LinuxServer-CI
f216175559 Bot Updating Templated Files 2024-05-24 19:17:57 +00:00
LinuxServer-CI
927a5d28e6 Bot Updating Package Versions 2024-05-17 19:19:10 +00:00
LinuxServer-CI
fd8dd4f61c Bot Updating Package Versions 2024-05-10 19:23:39 +00:00
LinuxServer-CI
98b4f58237 Bot Updating Templated Files 2024-05-10 19:20:05 +00:00
LinuxServer-CI
c4955c220a Bot Updating Package Versions 2024-05-04 21:20:13 +00:00
LinuxServer-CI
d60feec7b1 Bot Updating Package Versions 2024-05-03 19:22:18 +00:00
LinuxServer-CI
e1849e014e Bot Updating Templated Files 2024-05-03 19:17:41 +00:00
LinuxServer-CI
c1948b1312 Bot Updating Package Versions 2024-04-27 23:20:18 +00:00
LinuxServer-CI
8a66bb58d0 Bot Updating Package Versions 2024-04-26 19:19:28 +00:00
LinuxServer-CI
7a7b0f725f Bot Updating Package Versions 2024-04-19 19:19:53 +00:00
LinuxServer-CI
79137f93da Bot Updating Package Versions 2024-04-14 22:13:02 +00:00
LinuxServer-CI
bce72dd16c Bot Updating Package Versions 2024-04-12 19:19:24 +00:00
LinuxServer-CI
0670aab6ad Bot Updating Package Versions 2024-04-05 19:19:47 +00:00
LinuxServer-CI
e064ffb32c Bot Updating Package Versions 2024-03-31 21:17:14 +00:00
LinuxServer-CI
88caacf3a4 Bot Updating Package Versions 2024-03-29 19:18:41 +00:00
LinuxServer-CI
b13fa13887 Bot Updating Package Versions 2024-03-22 19:24:47 +00:00
LinuxServer-CI
3da865f256 Bot Updating Package Versions 2024-03-15 19:21:09 +00:00
LinuxServer-CI
7a6f296d66 Bot Updating Templated Files 2024-03-15 19:17:39 +00:00
LinuxServer-CI
250dfc2d1f Bot Updating Package Versions 2024-02-29 22:18:48 +00:00
LinuxServer-CI
c6f2ecf411 Bot Updating Package Versions 2024-02-29 01:12:29 +00:00
LinuxServer-CI
98675fab0e Bot Updating Package Versions 2024-02-23 19:28:47 +00:00
LinuxServer-CI
b2172ec53a Bot Updating Templated Files 2024-02-23 19:25:05 +00:00
LinuxServer-CI
65c52b023a Bot Updating Templated Files 2024-02-23 19:23:27 +00:00
LinuxServer-CI
9a5937a039 Bot Updating Package Versions 2024-02-16 19:19:21 +00:00
LinuxServer-CI
4590947390 Bot Updating Package Versions 2024-02-05 23:20:35 +00:00
LinuxServer-CI
d854e1dfda Bot Updating Package Versions 2024-02-02 19:21:14 +00:00
LinuxServer-CI
347ef47712 Bot Updating Package Versions 2024-01-26 19:19:57 +00:00
LinuxServer-CI
49ce5f76cc Bot Updating Package Versions 2024-01-20 15:20:58 +00:00
LinuxServer-CI
802bc41678 Bot Updating Package Versions 2024-01-19 19:19:10 +00:00
LinuxServer-CI
549fbc022a Bot Updating Package Versions 2024-01-17 23:22:06 +00:00
LinuxServer-CI
105ad7b4fe Bot Updating Package Versions 2024-01-12 19:20:55 +00:00
LinuxServer-CI
662dd68415 Bot Updating Package Versions 2024-01-09 23:27:51 +00:00
LinuxServer-CI
1bef5090e2 Bot Updating Templated Files 2024-01-09 23:23:30 +00:00
LinuxServer-CI
87277a1dc9 Bot Updating Templated Files 2024-01-09 23:20:33 +00:00
LinuxServer-CI
599a91dfc8 Bot Updating Package Versions 2024-01-09 01:21:40 +00:00
LinuxServer-CI
8744c9ab91 Bot Updating Package Versions 2024-01-08 14:44:39 +00:00
LinuxServer-CI
9572c07517 Bot Updating Templated Files 2024-01-08 14:40:03 +00:00
aptalca
6ceaeadb84
Merge pull request #45 from linuxserver/3.19-develop
Rebase to Alpine 3.19
2024-01-08 09:37:48 -05:00
LinuxServer-CI
79aaae014d Bot Updating Package Versions 2024-01-05 19:22:26 +00:00
Eric Nemchik
4c1ac9607c
Rebase to Alpine 3.19
Signed-off-by: Eric Nemchik <eric@nemchik.com>
2023-12-23 19:08:23 -06:00
LinuxServer-CI
fd5f95a622 Bot Updating Package Versions 2023-12-21 19:16:07 +00:00
LinuxServer-CI
b1d76cd4b7 Bot Updating Package Versions 2023-12-18 22:20:22 +00:00
LinuxServer-CI
6557132cd9 Bot Updating Package Versions 2023-12-15 19:20:40 +00:00
LinuxServer-CI
48ccf20b5b Bot Updating Package Versions 2023-12-10 23:19:11 +00:00
LinuxServer-CI
597fd818d7 Bot Updating Package Versions 2023-12-08 19:20:22 +00:00
LinuxServer-CI
a448acb467 Bot Updating Package Versions 2023-12-02 18:23:51 +00:00
LinuxServer-CI
f08c943edb Bot Updating Package Versions 2023-12-01 19:20:01 +00:00
LinuxServer-CI
e88acfe1ca Bot Updating Package Versions 2023-11-21 21:21:18 +00:00
LinuxServer-CI
ed524ca0f3 Bot Updating Package Versions 2023-11-18 15:19:51 +00:00
LinuxServer-CI
b8d1028096 Bot Updating Package Versions 2023-11-17 19:22:05 +00:00
LinuxServer-CI
3a1699da61 Bot Updating Templated Files 2023-11-17 19:17:56 +00:00
LinuxServer-CI
8762a3b63e Bot Updating Package Versions 2023-11-10 19:19:52 +00:00
LinuxServer-CI
d89d4a3157 Bot Updating Package Versions 2023-11-02 08:25:49 +00:00
LinuxServer-CI
3723db9b92 Bot Updating Package Versions 2023-10-26 17:17:31 +00:00
LinuxServer-CI
d97a6b89f7 Bot Updating Package Versions 2023-10-21 20:20:14 +00:00
LinuxServer-CI
6f5eb1b082 Bot Updating Package Versions 2023-10-20 19:19:32 +00:00
LinuxServer-CI
58c461a80e Bot Updating Package Versions 2023-10-14 22:17:17 +00:00
LinuxServer-CI
83bffa905a Bot Updating Package Versions 2023-10-12 08:24:14 +00:00
LinuxServer-CI
1d0d56383c Bot Updating Package Versions 2023-10-10 22:18:00 +00:00
LinuxServer-CI
ac4237f6ae Bot Updating Package Versions 2023-10-10 03:42:38 +00:00
LinuxServer-CI
86759e01ab Bot Updating Templated Files 2023-10-10 03:38:04 +00:00
aptalca
fa24f602ce
Merge pull request #43 from linuxserver/develop-lsio-unrar
install unrar from lsio repo
2023-10-09 23:35:34 -04:00
aptalca
23c4630d7b
install unrar from lsio repo 2023-10-08 16:00:00 -04:00
LinuxServer-CI
465c5b419f Bot Updating Templated Files 2023-10-07 12:31:54 +00:00
LinuxServer-CI
f04eef0f05 Bot Updating Package Versions 2023-10-06 19:22:35 +00:00
LinuxServer-CI
4597753c51 Bot Updating Templated Files 2023-10-06 19:18:57 +00:00
LinuxServer-CI
bbaaaae41b Bot Updating Templated Files 2023-10-06 19:17:16 +00:00
LinuxServer-CI
9436e8cbb2 Bot Updating Package Versions 2023-10-06 12:37:53 +00:00
LinuxServer-CI
de60bddc3f Bot Updating Package Versions 2023-10-05 22:19:50 +00:00
LinuxServer-CI
b1b24769f0 Bot Updating Package Versions 2023-09-29 19:21:28 +00:00
LinuxServer-CI
1cc44cdc39 Bot Updating Package Versions 2023-09-22 19:20:35 +00:00
LinuxServer-CI
8f683ddc12 Bot Updating Package Versions 2023-09-15 19:18:03 +00:00
LinuxServer-CI
1efbe366b0 Bot Updating Package Versions 2023-09-11 21:17:41 +00:00
LinuxServer-CI
3f5416cfc8 Bot Updating Package Versions 2023-09-08 19:17:50 +00:00
LinuxServer-CI
5193e6880e Bot Updating Package Versions 2023-09-03 22:18:48 +00:00
LinuxServer-CI
43ede02456 Bot Updating Package Versions 2023-08-26 22:17:24 +00:00
LinuxServer-CI
839e39902f Bot Updating Package Versions 2023-08-25 19:17:47 +00:00
LinuxServer-CI
0eae77c7a7 Bot Updating Package Versions 2023-08-23 22:19:36 +00:00
LinuxServer-CI
5095789fd2 Bot Updating Package Versions 2023-08-18 19:20:09 +00:00
LinuxServer-CI
64650966f3 Bot Updating Templated Files 2023-08-10 21:06:55 +00:00
Adam
bfc8cc2908
Merge pull request #39 from linuxserver/develop-unrar 2023-08-10 22:04:37 +01:00
TheSpad
7d5cb47fad
Bump unrar to 6.2.10 2023-08-10 17:58:10 +01:00
LinuxServer-CI
c18c96f44a Bot Updating Package Versions 2023-08-08 20:21:10 +00:00
LinuxServer-CI
9b392fe5a9 Bot Updating Package Versions 2023-08-05 18:21:16 +00:00
LinuxServer-CI
546d20039d Bot Updating Package Versions 2023-08-04 19:17:41 +00:00
LinuxServer-CI
eff1f69ba9 Bot Updating Package Versions 2023-08-01 23:19:27 +00:00
LinuxServer-CI
a604bba084 Bot Updating Package Versions 2023-07-29 22:18:27 +00:00
LinuxServer-CI
3d79e61f4f Bot Updating Package Versions 2023-07-28 19:18:00 +00:00
LinuxServer-CI
292d6d4f75 Bot Updating Package Versions 2023-07-25 17:18:29 +00:00
LinuxServer-CI
6f19d8f916 Bot Updating Package Versions 2023-07-23 21:18:11 +00:00
LinuxServer-CI
8f6cfa1834 Bot Updating Package Versions 2023-07-21 19:18:05 +00:00
LinuxServer-CI
c4da6dad7a Bot Updating Package Versions 2023-07-14 19:24:20 +00:00
LinuxServer-CI
47dfc8fd46 Bot Updating Package Versions 2023-07-08 17:19:39 +00:00
LinuxServer-CI
f39447b6ee Bot Updating Package Versions 2023-07-07 19:19:03 +00:00
LinuxServer-CI
64c8cca21d Bot Updating Package Versions 2023-07-01 23:23:31 +00:00
LinuxServer-CI
5207b4f9d0 Bot Updating Templated Files 2023-07-01 23:18:38 +00:00
LinuxServer-CI
bbe558d9d4 Bot Updating Package Versions 2023-06-30 19:20:00 +00:00
LinuxServer-CI
bfacd874b1 Bot Updating Package Versions 2023-06-23 19:20:37 +00:00
LinuxServer-CI
d207695c27 Bot Updating Package Versions 2023-06-20 20:22:28 +00:00
LinuxServer-CI
7ef56f8874 Bot Updating Package Versions 2023-06-17 18:22:45 +00:00
LinuxServer-CI
c37fadb3d0 Bot Updating Package Versions 2023-06-16 19:20:10 +00:00
LinuxServer-CI
cabde22029 Bot Updating Package Versions 2023-06-09 19:18:15 +00:00
LinuxServer-CI
7d614e4322 Bot Updating Package Versions 2023-06-07 12:50:45 +00:00
Adam
752e712781
Merge pull request #36 from linuxserver/develop-port 2023-06-07 13:45:34 +01:00
TheSpad
c386926b2b
Support custom ports in readiness check 2023-06-07 13:22:27 +01:00
LinuxServer-CI
45c8e60670 Bot Updating Package Versions 2023-06-05 16:28:31 +00:00
LinuxServer-CI
41aed8c33b Bot Updating Package Versions 2023-06-03 02:10:35 +00:00
aptalca
d78bf490e5
Merge pull request #33 from linuxserver/develop-unrar
switch to 7zip, add unrar
2023-06-02 22:07:07 -04:00
LinuxServer-CI
50ee8069e7 Bot Updating Package Versions 2023-06-02 19:17:49 +00:00
aptalca
4f94522d09
switch to 7zip, add unrar 2023-06-02 12:57:44 -04:00
LinuxServer-CI
12c5b882c1 Bot Updating Package Versions 2023-05-31 12:22:42 +00:00
Eric Nemchik
05d667d951
Merge pull request #30 from linuxserver/3.18-develop
Rebase to Alpine 3.18, deprecate armhf
2023-05-31 07:18:17 -05:00
Eric Nemchik
79e528a115
Rebase to Alpine 3.18, deprecate armhf
Signed-off-by: Eric Nemchik <eric@nemchik.com>
2023-05-27 19:23:01 -05:00
LinuxServer-CI
da3bfcbba5 Bot Updating Package Versions 2023-05-27 20:20:00 +00:00
LinuxServer-CI
b508c2eaff Bot Updating Package Versions 2023-05-26 18:23:54 +00:00
LinuxServer-CI
9f9744c8c4 Bot Updating Package Versions 2023-05-23 19:19:20 +00:00
LinuxServer-CI
3a0dbfbb08 Bot Updating Templated Files 2023-05-22 20:18:18 +00:00
LinuxServer-CI
722b3d9a0f Bot Updating Package Versions 2023-05-22 18:23:37 +00:00
LinuxServer-CI
ec499e203f Bot Updating Package Versions 2023-05-19 19:20:24 +00:00
LinuxServer-CI
d1e25faac8 Bot Updating Package Versions 2023-05-17 23:20:59 +00:00
LinuxServer-CI
9f5f289da9 Bot Updating Package Versions 2023-05-12 19:17:45 +00:00
LinuxServer-CI
8dbac7b648 Bot Updating Package Versions 2023-05-05 19:19:53 +00:00
LinuxServer-CI
9c5220ce09 Bot Updating Package Versions 2023-04-28 19:18:04 +00:00
LinuxServer-CI
ed0f20525a Bot Updating Package Versions 2023-04-28 11:20:24 +02:00
LinuxServer-CI
05b1c9bf1b Bot Updating Package Versions 2023-04-27 01:29:59 +00:00
LinuxServer-CI
5b05d85cdf Bot Updating Package Versions 2023-04-26 16:00:12 -05:00
LinuxServer-CI
a856733aa0 Bot Updating Package Versions 2023-04-26 09:58:38 +00:00
LinuxServer-CI
8df0253045 Bot Updating Package Versions 2023-04-26 02:02:47 +02:00
LinuxServer-CI
c28eec4066 Bot Updating Templated Files 2023-04-26 01:58:41 +02:00
LinuxServer-CI
360ac1e7c2 Bot Updating Templated Files 2023-04-25 18:57:05 -05:00
LinuxServer-CI
5feb3a5eca Bot Updating Package Versions 2023-04-22 20:58:31 +00:00
LinuxServer-CI
03b70fd5ae Bot Updating Package Versions 2023-04-21 19:16:52 +00:00
LinuxServer-CI
1a2e650498 Bot Updating Package Versions 2023-04-15 14:59:42 -05:00
LinuxServer-CI
af30fd2972 Bot Updating Package Versions 2023-04-14 14:19:24 -05:00
LinuxServer-CI
865b9aabb7 Bot Updating Package Versions 2023-04-07 00:59:39 +02:00
LinuxServer-CI
fabb73eb8a Bot Updating Package Versions 2023-04-04 16:51:34 +02:00
LinuxServer-CI
3c39ba092b Bot Updating Package Versions 2023-04-01 14:04:28 +02:00
LinuxServer-CI
62f193293c Bot Updating Templated Files 2023-04-01 14:00:16 +02:00
LinuxServer-CI
59e5c27aa9 Bot Updating Templated Files 2023-04-01 13:58:39 +02:00
LinuxServer-CI
2e8d67443a Bot Updating Templated Files 2023-04-01 06:56:52 -05:00
LinuxServer-CI
bfced7d98c Bot Updating Package Versions 2023-03-28 09:51:42 -05:00
LinuxServer-CI
4898c968d8 Bot Updating Package Versions 2023-03-27 20:59:14 +00:00
LinuxServer-CI
a0c16fbb3b Bot Updating Package Versions 2023-03-22 23:02:38 +01:00
LinuxServer-CI
c96a00ad8e Bot Updating Package Versions 2023-03-21 09:51:47 -05:00
LinuxServer-CI
5dc7401afb Bot Updating Package Versions 2023-03-20 23:59:06 +01:00
LinuxServer-CI
da21b9f28d Bot Updating Package Versions 2023-03-19 17:02:41 -05:00
LinuxServer-CI
96eb0285fc Bot Updating Package Versions 2023-03-15 22:24:02 +01:00
LinuxServer-CI
d0dd079b63 Bot Updating Package Versions 2023-03-04 22:04:26 +01:00
LinuxServer-CI
de22bfdee5 Bot Updating Templated Files 2023-03-04 21:57:00 +01:00
LinuxServer-CI
cb600f8c8b Bot Updating Package Versions 2023-02-28 01:02:12 +01:00
LinuxServer-CI
1427eec17d Bot Updating Package Versions 2023-02-25 17:59:03 +01:00
LinuxServer-CI
c186897ad2 Bot Updating Package Versions 2023-02-21 08:51:16 -06:00
LinuxServer-CI
37f89838fb Bot Updating Package Versions 2023-02-18 14:59:16 -06:00
LinuxServer-CI
476a8a98f5 Bot Updating Package Versions 2023-02-14 15:51:29 +01:00
LinuxServer-CI
dd0de3f09d Bot Updating Package Versions 2023-02-12 03:18:52 +01:00
LinuxServer-CI
9ab82d98e9 Bot Updating Templated Files 2023-02-12 03:15:21 +01:00
LinuxServer-CI
8501987990 Bot Updating Templated Files 2023-02-12 03:14:03 +01:00
LinuxServer-CI
9f7749809d Bot Updating Package Versions 2023-02-07 22:03:56 +01:00
LinuxServer-CI
6c5b2fdb11 Bot Updating Package Versions 2023-02-06 20:12:29 -06:00
LinuxServer-CI
f26b16bbb3 Bot Updating Package Versions 2023-02-04 17:59:16 -06:00
LinuxServer-CI
b97035dc26 Bot Updating Package Versions 2023-01-28 16:58:55 +01:00
LinuxServer-CI
aefe2425ab Bot Updating Package Versions 2023-01-23 17:02:16 -06:00
LinuxServer-CI
801e85be2f Bot Updating Package Versions 2023-01-21 21:58:51 +01:00
Eric Nemchik
7b0f11d146
Merge pull request #23 from linuxserver/dependency-dev
Remove baseimage packages (dev branch)
2023-01-20 08:18:45 -06:00
Eric Nemchik
8595a7ff99 Remove baseimage packages 2023-01-19 21:02:38 -06:00
LinuxServer-CI
6f12035ae5 Bot Updating Package Versions 2023-01-17 15:51:19 +01:00
LinuxServer-CI
7a919206ed Bot Updating Package Versions 2023-01-10 15:52:50 +01:00
LinuxServer-CI
7ce23b6992 Bot Updating Package Versions 2023-01-04 20:11:03 -06:00
LinuxServer-CI
71d777c171 Bot Updating Package Versions 2023-01-04 21:59:20 +01:00
LinuxServer-CI
5a599c5c1d Bot Updating Package Versions 2023-01-03 23:58:46 +01:00
LinuxServer-CI
59729f5890 Bot Updating Package Versions 2022-12-30 23:34:15 +01:00
LinuxServer-CI
bedbb45375 Bot Updating Templated Files 2022-12-30 23:30:37 +01:00
Eric Nemchik
95a520c79b
Merge pull request #19 from linuxserver/3.17-develop
Rebase develop to alpine 3.17
2022-12-30 16:29:25 -06:00
Eric Nemchik
a15760c23c
Update run 2022-12-28 18:44:48 -06:00
Eric Nemchik
aee499798b Rebase develop to alpine 3.17 2022-12-27 17:05:07 -06:00
LinuxServer-CI
3fa5049563 Bot Updating Package Versions 2022-12-27 15:51:14 +01:00
LinuxServer-CI
9f631a1235 Bot Updating Package Versions 2022-12-20 15:51:25 +01:00
LinuxServer-CI
adaaefcb60 Bot Updating Package Versions 2022-12-11 13:59:04 -06:00
LinuxServer-CI
b6dae6cca0 Bot Updating Templated Files 2022-11-28 15:59:39 -06:00
LinuxServer-CI
db741fe766 Bot Updating Templated Files 2022-11-28 15:58:22 -06:00
LinuxServer-CI
3bd4cd4799 Bot Updating Templated Files 2022-11-28 22:57:01 +01:00
LinuxServer-CI
0cea5bdbbd Bot Updating Package Versions 2022-11-14 03:54:41 +01:00
LinuxServer-CI
de32b2cd89 Bot Updating Templated Files 2022-11-14 03:48:44 +01:00
LinuxServer-CI
f13b23aed4 Bot Updating Package Versions 2022-11-08 08:54:32 -06:00
LinuxServer-CI
d1781f4542 Bot Updating Package Versions 2022-11-06 13:01:18 -06:00
LinuxServer-CI
32ea7f2b70 Bot Updating Package Versions 2022-11-02 21:59:04 +01:00
LinuxServer-CI
94a7327114 Bot Updating Package Versions 2022-11-01 19:00:17 -05:00
LinuxServer-CI
f9348eb6e8 Bot Updating Package Versions 2022-10-30 15:01:33 -05:00
LinuxServer-CI
7673b2de3c Bot Updating Package Versions 2022-10-27 00:01:41 +02:00
LinuxServer-CI
880f051725 Bot Updating Package Versions 2022-10-11 17:01:39 +02:00
LinuxServer-CI
5530284c35 Bot Updating Package Versions 2022-10-08 02:08:14 +02:00
LinuxServer-CI
1277309e6a Bot Updating Package Versions 2022-09-26 11:04:12 -05:00
LinuxServer-CI
5f608766bf Bot Updating Templated Files 2022-09-20 16:57:44 +02:00
LinuxServer-CI
e93ec89a10 Bot Updating Package Versions 2022-09-03 18:59:12 -05:00
LinuxServer-CI
560aa28b60 Bot Updating Package Versions 2022-08-23 14:51:02 +00:00
LinuxServer-CI
3746a0faae Bot Updating Package Versions 2022-08-09 16:51:19 +02:00
LinuxServer-CI
87783064c9 Bot Updating Package Versions 2022-08-02 16:51:07 +02:00
LinuxServer-CI
8d607f1dc5 Bot Updating Package Versions 2022-07-30 16:02:44 +00:00
LinuxServer-CI
e51f1faa96 Bot Updating Package Versions 2022-07-26 16:51:30 +02:00
LinuxServer-CI
84f5a928c8 Bot Updating Package Versions 2022-07-24 23:58:56 +02:00
LinuxServer-CI
6cbc28b088 Bot Updating Package Versions 2022-07-19 17:01:04 +02:00
LinuxServer-CI
aa943418a2 Bot Updating Package Versions 2022-07-12 17:01:15 +02:00
LinuxServer-CI
7fc6527d1d Bot Updating Package Versions 2022-07-05 09:51:08 -05:00
LinuxServer-CI
2aead8e1a3 Bot Updating Package Versions 2022-05-24 09:55:40 -05:00
LinuxServer-CI
363c1cc01e Bot Updating Package Versions 2022-05-21 16:02:49 -05:00
LinuxServer-CI
d11fff1c16 Bot Updating Package Versions 2022-05-21 16:00:07 +00:00
LinuxServer-CI
a88c34c656 Bot Updating Package Versions 2022-05-15 14:59:33 -05:00
LinuxServer-CI
8f9c3b3602 Bot Updating Package Versions 2022-05-06 08:27:00 -05:00
LinuxServer-CI
d999fef2a3 Bot Updating Templated Files 2022-05-02 00:56:29 +02:00
LinuxServer-CI
0f9934c6f4 Bot Updating Package Versions 2022-05-01 21:04:55 +02:00
LinuxServer-CI
a1fa5a844d Bot Updating Templated Files 2022-05-01 20:58:00 +02:00
LinuxServer-CI
e6a54abdc5 Bot Updating Templated Files 2022-05-01 20:56:49 +02:00
LinuxServer-CI
6848804bd8 Bot Updating Package Versions 2022-04-27 16:59:35 -05:00
LinuxServer-CI
fa8aaeda6c Bot Updating Package Versions 2022-04-20 23:59:24 +02:00
LinuxServer-CI
e88d359416 Bot Updating Package Versions 2022-04-12 16:51:35 +02:00
LinuxServer-CI
0388d62f80 Bot Updating Package Versions 2022-04-05 16:51:55 +02:00
LinuxServer-CI
c9b209fe46 Bot Updating Package Versions 2022-03-29 09:51:46 -05:00
LinuxServer-CI
35ea513bc4 Bot Updating Package Versions 2022-03-22 15:51:52 +01:00
LinuxServer-CI
5a6cf191ed Bot Updating Package Versions 2022-03-18 08:59:51 -05:00
aptalca
c010364a8e
Merge pull request #12 from linuxserver/develop-git
update git endpoint
2022-03-15 13:59:23 -04:00
aptalca
f3cae9a9cc update git endpoint 2022-03-15 13:25:27 -04:00
LinuxServer-CI
282046b730 Bot Updating Package Versions 2022-03-06 23:59:07 +01:00
LinuxServer-CI
c3e1334175 Bot Updating Package Versions 2022-02-27 20:01:36 +01:00
LinuxServer-CI
7ddf36add8 Bot Updating Package Versions 2022-02-22 15:51:24 +01:00
LinuxServer-CI
83cb34048a Bot Updating Package Versions 2022-02-16 19:59:39 +01:00
LinuxServer-CI
28b5e46a87 Bot Updating Package Versions 2022-02-08 15:52:23 +01:00
LinuxServer-CI
88261eef17 Bot Updating Package Versions 2022-02-04 15:59:20 +01:00
LinuxServer-CI
99636278e8 Bot Updating Package Versions 2022-02-03 02:22:08 +01:00
aptalca
0719a1d9d1
Merge pull request #8 from linuxserver/develop-ffmpeg
add ffmpeg and click'n'load port
2022-02-02 20:18:33 -05:00
aptalca
e3b3242356 add ffmpeg and click'n'load port 2022-02-02 19:52:31 -05:00
LinuxServer-CI
5b876a5e2d Bot Updating Package Versions 2022-01-25 14:46:03 +01:00
aptalca
2ac5ea2ae3
Merge pull request #4 from linuxserver/develop-p7zip
develop: replace unrar with p7zip
2022-01-25 08:40:27 -05:00
aptalca
a6f5e3493c develop: replace unrar with p7zip 2022-01-24 14:49:30 -05:00
LinuxServer-CI
b1b05f0455 Bot Updating Package Versions 2022-01-24 20:05:28 +01:00
aptalca
cd276ffaae
Merge pull request #2 from linuxserver/develop-initial
develop initial release
2022-01-24 13:54:42 -05:00
aptalca
5597b4c218 fix repo name 2022-01-24 11:45:40 -05:00
aptalca
479dfa16fa develop tag initial release 2022-01-24 11:41:47 -05:00
23 changed files with 733 additions and 1120 deletions

0
.editorconfig Normal file → Executable file
View File

10
.github/CONTRIBUTING.md vendored Normal file → Executable file
View 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://linuxserver.io/discord) * 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)
## 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/main/readme-vars.yml). Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-pyload-ng/edit/develop/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)
@ -105,17 +105,17 @@ docker build \
-t linuxserver/pyload-ng:latest . -t 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 using `multiarch/qemu-user-static`
```bash ```bash
docker run --rm --privileged lscr.io/linuxserver/qemu-static --reset docker run --rm --privileged multiarch/qemu-user-static:register --reset
``` ```
Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64`. 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/main/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/develop/root), add an entry to the changelog
```yml ```yml
changelogs: changelogs:

0
.github/FUNDING.yml vendored Normal file → Executable file
View File

2
.github/ISSUE_TEMPLATE/config.yml vendored Normal file → Executable file
View 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://linuxserver.io/discord url: https://discord.gg/YWrKVTn
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 Normal file → Executable file
View File

0
.github/ISSUE_TEMPLATE/issue.feature.yml vendored Normal file → Executable file
View File

2
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file → Executable file
View File

@ -21,7 +21,7 @@
------------------------------ ------------------------------
- [ ] 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 - [ ] 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
------------------------------ ------------------------------

3
.github/workflows/call_issue_pr_tracker.yml vendored Normal file → Executable file
View File

@ -8,9 +8,6 @@ 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 Normal file → Executable file
View File

@ -4,9 +4,6 @@ on:
- cron: '23 14 * * *' - cron: '23 14 * * *'
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
jobs: jobs:
stale: stale:
permissions: permissions:

157
.github/workflows/external_trigger.yml vendored Normal file → Executable file
View File

@ -3,86 +3,52 @@ name: External Trigger Main
on: on:
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
jobs: jobs:
external-trigger-main: external-trigger-develop:
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/main' if: github.ref == 'refs/heads/develop'
env:
SKIP_EXTERNAL_TRIGGER: ${{ vars.SKIP_EXTERNAL_TRIGGER }}
run: | run: |
printf "# External trigger for docker-pyload-ng\n\n" >> $GITHUB_STEP_SUMMARY if [ -n "${{ secrets.PAUSE_EXTERNAL_TRIGGER_PYLOAD_NG_DEVELOP }}" ]; then
if grep -q "^pyload-ng_main_" <<< "${SKIP_EXTERNAL_TRIGGER}"; then echo "**** Github secret PAUSE_EXTERNAL_TRIGGER_PYLOAD_NG_DEVELOP is set; skipping trigger. ****"
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY echo "Github secret \`PAUSE_EXTERNAL_TRIGGER_PYLOAD_NG_DEVELOP\` is set; skipping trigger." >> $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 "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`pyload-ng_main\`; skipping trigger." >> $GITHUB_STEP_SUMMARY
exit 0
fi
echo "> [!NOTE]" >> $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
EXT_RELEASE=$(curl -sL "https://pypi.python.org/pypi/pyload-ng/json" |jq -r '. | .info.version')
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 exit 0
fi fi
echo "**** External trigger running off of develop branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_PYLOAD_NG_DEVELOP\". ****"
echo "External trigger running off of develop branch. To disable this trigger, set a Github secret named \`PAUSE_EXTERNAL_TRIGGER_PYLOAD_NG_DEVELOP\`" >> $GITHUB_STEP_SUMMARY
echo "**** Retrieving external version ****"
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)
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY echo "**** Can't retrieve external version, exiting ****"
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_SANITIZED=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g') EXT_RELEASE=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
echo "Sanitized external version: \`${EXT_RELEASE_SANITIZED}\`" >> $GITHUB_STEP_SUMMARY echo "**** External version: ${EXT_RELEASE} ****"
echo "Retrieving last pushed version" >> $GITHUB_STEP_SUMMARY echo "External version: ${EXT_RELEASE}" >> $GITHUB_STEP_SUMMARY
echo "**** Retrieving last pushed version ****"
image="linuxserver/pyload-ng" image="linuxserver/pyload-ng"
tag="latest" tag="develop"
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')
multidigest=$(curl -s \ multidigest=$(curl -s \
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
--header "Accept: application/vnd.oci.image.index.v1+json" \
--header "Authorization: Bearer ${token}" \
"https://ghcr.io/v2/${image}/manifests/${tag}")
if jq -e '.layers // empty' <<< "${multidigest}" >/dev/null 2>&1; then
# If there's a layer element it's a single-arch manifest so just get that digest
digest=$(jq -r '.config.digest' <<< "${multidigest}")
else
# Otherwise it's multi-arch or has manifest annotations
if jq -e '.manifests[]?.annotations // empty' <<< "${multidigest}" >/dev/null 2>&1; then
# Check for manifest annotations and delete if found
multidigest=$(jq 'del(.manifests[] | select(.annotations))' <<< "${multidigest}")
fi
if [[ $(jq '.manifests | length' <<< "${multidigest}") -gt 1 ]]; then
# If there's still more than one digest, it's multi-arch
multidigest=$(jq -r ".manifests[] | select(.platform.architecture == \"amd64\").digest?" <<< "${multidigest}")
else
# Otherwise it's single arch
multidigest=$(jq -r ".manifests[].digest?" <<< "${multidigest}")
fi
if digest=$(curl -s \
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \ --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
--header "Accept: application/vnd.oci.image.manifest.v1+json" \
--header "Authorization: Bearer ${token}" \ --header "Authorization: Bearer ${token}" \
"https://ghcr.io/v2/${image}/manifests/${multidigest}"); then "https://ghcr.io/v2/${image}/manifests/${tag}" \
digest=$(jq -r '.config.digest' <<< "${digest}"); | jq -r 'first(.manifests[].digest)')
fi digest=$(curl -s \
fi --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
--header "Authorization: Bearer ${token}" \
"https://ghcr.io/v2/${image}/manifests/${multidigest}" \
| jq -r '.config.digest')
image_info=$(curl -sL \ image_info=$(curl -sL \
--header "Authorization: Bearer ${token}" \ --header "Authorization: Bearer ${token}" \
"https://ghcr.io/v2/${image}/blobs/${digest}") "https://ghcr.io/v2/${image}/blobs/${digest}")
@ -94,54 +60,45 @@ jobs:
IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}') IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}')
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}') IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
if [ -z "${IMAGE_VERSION}" ]; then if [ -z "${IMAGE_VERSION}" ]; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY echo "**** Can't retrieve last pushed version, exiting ****"
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} ****"
if [ "${EXT_RELEASE_SANITIZED}" == "${IMAGE_VERSION}" ]; then echo "Last pushed version: ${IMAGE_VERSION}" >> $GITHUB_STEP_SUMMARY
echo "Sanitized version \`${EXT_RELEASE_SANITIZED}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY if [ "${EXT_RELEASE}" == "${IMAGE_VERSION}" ]; then
echo "**** Version ${EXT_RELEASE} already pushed, exiting ****"
echo "Version ${EXT_RELEASE} 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/main/lastBuild/api/json | jq -r '.building') == "true" ]; then 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
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 ****"
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 echo "**** New version ${EXT_RELEASE} found; old version was ${IMAGE_VERSION}. Triggering new build ****"
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY echo "New version ${EXT_RELEASE} found; old version was ${IMAGE_VERSION}. Triggering new build" >> $GITHUB_STEP_SUMMARY
echo "> New version detected, but not all artifacts are published yet; skipping trigger" >> $GITHUB_STEP_SUMMARY response=$(curl -iX POST \
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." https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/develop/buildWithParameters?PACKAGE_CHECK=false \
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903, --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|")
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}], echo "**** Jenkins job queue url: ${response%$'\r'} ****"
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }} echo "**** Sleeping 10 seconds until job starts ****"
else sleep 10
printf "\n## Trigger new build\n\n" >> $GITHUB_STEP_SUMMARY buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url')
echo "New sanitized version \`${EXT_RELEASE_SANITIZED}\` found; old version was \`${IMAGE_VERSION}\`. Triggering new build" >> $GITHUB_STEP_SUMMARY buildurl="${buildurl%$'\r'}"
if [[ "${artifacts_found}" == "true" ]]; then echo "**** Jenkins job build url: ${buildurl} ****"
echo "All artifacts seem to be uploaded." >> $GITHUB_STEP_SUMMARY echo "Jenkins job build url: ${buildurl}" >> $GITHUB_STEP_SUMMARY
fi echo "**** Attempting to change the Jenkins job description ****"
response=$(curl -iX POST \ curl -iX POST \
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/main/buildWithParameters?PACKAGE_CHECK=false \ "${buildurl}submitDescription" \
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|") --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \
echo "Jenkins [job queue url](${response%$'\r'})" >> $GITHUB_STEP_SUMMARY --data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
echo "Sleeping 10 seconds until job starts" >> $GITHUB_STEP_SUMMARY --data-urlencode "Submit=Submit"
sleep 10 echo "**** Notifying Discord ****"
buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url') TRIGGER_REASON="A version change was detected for pyload-ng tag develop. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}"
buildurl="${buildurl%$'\r'}" curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
echo "Jenkins job [build url](${buildurl})" >> $GITHUB_STEP_SUMMARY "description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}],
echo "Attempting to change the Jenkins job description" >> $GITHUB_STEP_SUMMARY "username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
curl -iX POST \
"${buildurl}submitDescription" \
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \
--data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
--data-urlencode "Submit=Submit"
echo "**** Notifying Discord ****"
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,
"description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}],
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
fi
fi fi

27
.github/workflows/external_trigger_scheduler.yml vendored Normal file → Executable file
View File

@ -5,9 +5,6 @@ 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
@ -18,31 +15,31 @@ jobs:
- name: External Trigger Scheduler - name: External Trigger Scheduler
run: | run: |
printf "# External trigger scheduler for docker-pyload-ng\n\n" >> $GITHUB_STEP_SUMMARY echo "**** Branches found: ****"
printf "Found the branches:\n\n%s\n" "$(git for-each-ref --format='- %(refname:lstrip=3)' refs/remotes)" >> $GITHUB_STEP_SUMMARY git for-each-ref --format='%(refname:short)' refs/remotes
for br in $(git for-each-ref --format='%(refname:lstrip=3)' refs/remotes) for br in $(git for-each-ref --format='%(refname:short)' refs/remotes)
do do
if [[ "${br}" == "HEAD" ]]; then br=$(echo "$br" | sed 's|origin/||g')
printf "\nSkipping %s.\n" ${br} >> $GITHUB_STEP_SUMMARY echo "**** Evaluating branch ${br} ****"
continue
fi
printf "\n## Evaluating \`%s\`\n\n" ${br} >> $GITHUB_STEP_SUMMARY
ls_jenkins_vars=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-pyload-ng/${br}/jenkins-vars.yml) ls_jenkins_vars=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-pyload-ng/${br}/jenkins-vars.yml)
ls_branch=$(echo "${ls_jenkins_vars}" | yq -r '.ls_branch') ls_branch=$(echo "${ls_jenkins_vars}" | yq -r '.ls_branch')
ls_trigger=$(echo "${ls_jenkins_vars}" | yq -r '.external_type') ls_trigger=$(echo "${ls_jenkins_vars}" | yq -r '.external_type')
if [[ "${br}" == "${ls_branch}" ]] && [[ "${ls_trigger}" != "os" ]]; then if [[ "${br}" == "${ls_branch}" ]] && [[ "${ls_trigger}" != "os" ]]; then
echo "Branch appears to be live and trigger is not os; checking workflow." >> $GITHUB_STEP_SUMMARY echo "**** Branch ${br} appears to be live and trigger is not os; checking workflow. ****"
if curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-pyload-ng/${br}/.github/workflows/external_trigger.yml > /dev/null 2>&1; then if curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-pyload-ng/${br}/.github/workflows/external_trigger.yml > /dev/null 2>&1; then
echo "Triggering external trigger workflow for branch." >> $GITHUB_STEP_SUMMARY echo "**** Workflow exists. Triggering external trigger workflow for branch ${br} ****."
echo "Triggering external trigger workflow for branch ${br}" >> $GITHUB_STEP_SUMMARY
curl -iX POST \ curl -iX POST \
-H "Authorization: token ${{ secrets.CR_PAT }}" \ -H "Authorization: token ${{ secrets.CR_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \ -H "Accept: application/vnd.github.v3+json" \
-d "{\"ref\":\"refs/heads/${br}\"}" \ -d "{\"ref\":\"refs/heads/${br}\"}" \
https://api.github.com/repos/linuxserver/docker-pyload-ng/actions/workflows/external_trigger.yml/dispatches https://api.github.com/repos/linuxserver/docker-pyload-ng/actions/workflows/external_trigger.yml/dispatches
else else
echo "Skipping branch due to no external trigger workflow present." >> $GITHUB_STEP_SUMMARY echo "**** Workflow doesn't exist; skipping trigger. ****"
echo "Skipping branch ${br} due to no external trigger workflow present." >> $GITHUB_STEP_SUMMARY
fi fi
else else
echo "Skipping branch due to being detected as dev branch or having no external version." >> $GITHUB_STEP_SUMMARY echo "**** ${br} is either a dev branch, or has no external version; skipping trigger. ****"
echo "Skipping branch ${br} due to being detected as dev branch or having no external version." >> $GITHUB_STEP_SUMMARY
fi fi
done done

8
.github/workflows/greetings.yml vendored Normal file → Executable file
View File

@ -2,18 +2,12 @@ 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/main/.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/develop/.github/PULL_REQUEST_TEMPLATE.md)!'
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}

42
.github/workflows/package_trigger.yml vendored Executable file
View File

@ -0,0 +1,42 @@
name: Package Trigger Main
on:
workflow_dispatch:
jobs:
package-trigger-develop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: Package Trigger
if: github.ref == 'refs/heads/develop'
run: |
if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_PYLOAD_NG_DEVELOP }}" ]; then
echo "**** Github secret PAUSE_PACKAGE_TRIGGER_PYLOAD_NG_DEVELOP is set; skipping trigger. ****"
echo "Github secret \`PAUSE_PACKAGE_TRIGGER_PYLOAD_NG_DEVELOP\` is set; skipping trigger." >> $GITHUB_STEP_SUMMARY
exit 0
fi
if [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/develop/lastBuild/api/json | jq -r '.building') == "true" ]; then
echo "**** There already seems to be an active build on Jenkins; skipping package trigger ****"
echo "There already seems to be an active build on Jenkins; skipping package trigger" >> $GITHUB_STEP_SUMMARY
exit 0
fi
echo "**** Package trigger running off of develop branch. To disable, set a Github secret named \"PAUSE_PACKAGE_TRIGGER_PYLOAD_NG_DEVELOP\". ****"
echo "Package trigger running off of develop branch. To disable, set a Github secret named \`PAUSE_PACKAGE_TRIGGER_PYLOAD_NG_DEVELOP\`" >> $GITHUB_STEP_SUMMARY
response=$(curl -iX POST \
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/develop/buildWithParameters?PACKAGE_CHECK=true \
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|")
echo "**** Jenkins job queue url: ${response%$'\r'} ****"
echo "**** Sleeping 10 seconds until job starts ****"
sleep 10
buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url')
buildurl="${buildurl%$'\r'}"
echo "**** Jenkins job build url: ${buildurl} ****"
echo "Jenkins job build url: ${buildurl}" >> $GITHUB_STEP_SUMMARY
echo "**** Attempting to change the Jenkins job description ****"
curl -iX POST \
"${buildurl}submitDescription" \
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \
--data-urlencode "description=GHA package trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
--data-urlencode "Submit=Submit"

105
.github/workflows/package_trigger_scheduler.yml vendored Normal file → Executable file
View File

@ -5,9 +5,6 @@ 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
@ -17,87 +14,37 @@ jobs:
fetch-depth: '0' fetch-depth: '0'
- name: Package Trigger Scheduler - name: Package Trigger Scheduler
env:
SKIP_PACKAGE_TRIGGER: ${{ vars.SKIP_PACKAGE_TRIGGER }}
run: | run: |
printf "# Package trigger scheduler for docker-pyload-ng\n\n" >> $GITHUB_STEP_SUMMARY echo "**** Branches found: ****"
printf "Found the branches:\n\n%s\n" "$(git for-each-ref --format='- %(refname:lstrip=3)' refs/remotes)" >> $GITHUB_STEP_SUMMARY git for-each-ref --format='%(refname:short)' refs/remotes
for br in $(git for-each-ref --format='%(refname:lstrip=3)' refs/remotes) for br in $(git for-each-ref --format='%(refname:short)' refs/remotes)
do do
if [[ "${br}" == "HEAD" ]]; then br=$(echo "$br" | sed 's|origin/||g')
printf "\nSkipping %s.\n" ${br} >> $GITHUB_STEP_SUMMARY echo "**** Evaluating branch ${br} ****"
continue ls_branch=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-pyload-ng/${br}/jenkins-vars.yml | yq -r '.ls_branch')
fi if [ "${br}" == "${ls_branch}" ]; then
printf "\n## Evaluating \`%s\`\n\n" ${br} >> $GITHUB_STEP_SUMMARY echo "**** Branch ${br} appears to be live; checking workflow. ****"
JENKINS_VARS=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-pyload-ng/${br}/jenkins-vars.yml) if curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-pyload-ng/${br}/.github/workflows/package_trigger.yml > /dev/null 2>&1; then
if ! curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-pyload-ng/${br}/Jenkinsfile >/dev/null 2>&1; then echo "**** Workflow exists. Triggering package trigger workflow for branch ${br}. ****"
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY echo "Triggering package trigger workflow for branch ${br}" >> $GITHUB_STEP_SUMMARY
echo "> No Jenkinsfile found. Branch is either deprecated or is an early dev branch." >> $GITHUB_STEP_SUMMARY
skipped_branches="${skipped_branches}${br} "
elif [[ "${br}" == $(yq -r '.ls_branch' <<< "${JENKINS_VARS}") ]]; then
echo "Branch appears to be live; checking workflow." >> $GITHUB_STEP_SUMMARY
README_VARS=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-pyload-ng/${br}/readme-vars.yml)
if [[ $(yq -r '.project_deprecation_status' <<< "${README_VARS}") == "true" ]]; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
echo "> Branch appears to be deprecated; skipping trigger." >> $GITHUB_STEP_SUMMARY
skipped_branches="${skipped_branches}${br} "
elif [[ $(yq -r '.skip_package_check' <<< "${JENKINS_VARS}") == "true" ]]; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
echo "> Skipping branch ${br} due to \`skip_package_check\` being set in \`jenkins-vars.yml\`." >> $GITHUB_STEP_SUMMARY
skipped_branches="${skipped_branches}${br} "
elif grep -q "^pyload-ng_${br}" <<< "${SKIP_PACKAGE_TRIGGER}"; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
echo "> Github organizational variable \`SKIP_PACKAGE_TRIGGER\` contains \`pyload-ng_${br}\`; skipping trigger." >> $GITHUB_STEP_SUMMARY
skipped_branches="${skipped_branches}${br} "
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/${br}/lastBuild/api/json | jq -r '.building' 2>/dev/null) == "true" ]; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
echo "> There already seems to be an active build on Jenkins; skipping package trigger for ${br}" >> $GITHUB_STEP_SUMMARY
skipped_branches="${skipped_branches}${br} "
else
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
echo "> Triggering package trigger for branch ${br}" >> $GITHUB_STEP_SUMMARY
printf "> To disable, add \`pyload-ng_%s\` into the Github organizational variable \`SKIP_PACKAGE_TRIGGER\`.\n\n" "${br}" >> $GITHUB_STEP_SUMMARY
triggered_branches="${triggered_branches}${br} " triggered_branches="${triggered_branches}${br} "
response=$(curl -iX POST \ curl -iX POST \
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/${br}/buildWithParameters?PACKAGE_CHECK=true \ -H "Authorization: token ${{ secrets.CR_PAT }}" \
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|") -H "Accept: application/vnd.github.v3+json" \
if [[ -z "${response}" ]]; then -d "{\"ref\":\"refs/heads/${br}\"}" \
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY https://api.github.com/repos/linuxserver/docker-pyload-ng/actions/workflows/package_trigger.yml/dispatches
echo "> Jenkins build could not be triggered. Skipping branch." sleep 30
continue else
fi echo "**** Workflow doesn't exist; skipping trigger. ****"
echo "Jenkins [job queue url](${response%$'\r'})" >> $GITHUB_STEP_SUMMARY echo "Skipping branch ${br} due to no package trigger workflow present." >> $GITHUB_STEP_SUMMARY
echo "Sleeping 10 seconds until job starts" >> $GITHUB_STEP_SUMMARY
sleep 10
buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url')
buildurl="${buildurl%$'\r'}"
echo "Jenkins job [build url](${buildurl})" >> $GITHUB_STEP_SUMMARY
echo "Attempting to change the Jenkins job description" >> $GITHUB_STEP_SUMMARY
if ! curl -ifX POST \
"${buildurl}submitDescription" \
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \
--data-urlencode "description=GHA package trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
--data-urlencode "Submit=Submit"; then
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
echo "> Unable to change the Jenkins job description."
fi
sleep 20
fi fi
else else
echo "**** ${br} appears to be a dev branch; skipping trigger. ****"
echo "Skipping branch ${br} due to being detected as dev branch." >> $GITHUB_STEP_SUMMARY echo "Skipping branch ${br} due to being detected as dev branch." >> $GITHUB_STEP_SUMMARY
fi fi
done done
if [[ -n "${triggered_branches}" ]] || [[ -n "${skipped_branches}" ]]; then echo "**** Package check build(s) triggered for branch(es): ${triggered_branches} ****"
if [[ -n "${triggered_branches}" ]]; then echo "**** Notifying Discord ****"
NOTIFY_BRANCHES="**Triggered:** ${triggered_branches} \n" curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
NOTIFY_BUILD_URL="**Build URL:** https://ci.linuxserver.io/blue/organizations/jenkins/Docker-Pipeline-Builders%2Fdocker-pyload-ng/activity/ \n" "description": "**Package Check Build(s) Triggered for pyload-ng** \n**Branch(es):** '"${triggered_branches}"' \n**Build URL:** '"https://ci.linuxserver.io/blue/organizations/jenkins/Docker-Pipeline-Builders%2Fdocker-pyload-ng/activity/"' \n"}],
echo "**** Package check build(s) triggered for branch(es): ${triggered_branches} ****" "username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
fi
if [[ -n "${skipped_branches}" ]]; then
NOTIFY_BRANCHES="${NOTIFY_BRANCHES}**Skipped:** ${skipped_branches} \n"
fi
echo "**** Notifying Discord ****"
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
"description": "**Package Check Build(s) for pyload-ng** \n'"${NOTIFY_BRANCHES}"''"${NOTIFY_BUILD_URL}"'"}],
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
fi

2
.github/workflows/permissions.yml vendored Normal file → Executable file
View File

@ -5,8 +5,6 @@ on:
- '**/run' - '**/run'
- '**/finish' - '**/finish'
- '**/check' - '**/check'
- 'root/migrations/*'
jobs: jobs:
permission_check: permission_check:
uses: linuxserver/github-workflows/.github/workflows/init-svc-executable-permissions.yml@v1 uses: linuxserver/github-workflows/.github/workflows/init-svc-executable-permissions.yml@v1

View File

@ -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.22 FROM ghcr.io/linuxserver/baseimage-alpine:3.19
# set version label # set version label
ARG BUILD_DATE ARG BUILD_DATE
ARG VERSION ARG VERSION
ARG PYLOAD_VERSION ARG PYLOAD_COMMIT
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,6 +19,7 @@ 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 \
@ -27,24 +28,22 @@ 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_VERSION+x} ]; then \ if [ -z ${PYLOAD_COMMIT+x} ]; then \
PYLOAD_VERSION=$(curl -sL https://pypi.python.org/pypi/pyload-ng/json |jq -r '. | .info.version'); \ PYLOAD_COMMIT=$(curl -sX GET "https://api.github.com/repos/pyload/pyload/branches/develop" \
| 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.22/ \ pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.19/ \
pyload-ng[all]=="${PYLOAD_VERSION}" && \ "git+https://github.com/pyload/pyload.git@${PYLOAD_COMMIT}" && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \ echo "**** cleanup ****" && \
apk del --purge \ apk del --purge \
build-dependencies && \ build-dependencies && \

View File

@ -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.22 FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19
# set version label # set version label
ARG BUILD_DATE ARG BUILD_DATE
ARG VERSION ARG VERSION
ARG PYLOAD_VERSION ARG PYLOAD_COMMIT
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,6 +19,7 @@ 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 \
@ -27,24 +28,22 @@ 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_VERSION+x} ]; then \ if [ -z ${PYLOAD_COMMIT+x} ]; then \
PYLOAD_VERSION=$(curl -sL https://pypi.python.org/pypi/pyload-ng/json |jq -r '. | .info.version'); \ PYLOAD_COMMIT=$(curl -sX GET "https://api.github.com/repos/pyload/pyload/branches/develop" \
| 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.22/ \ pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.19/ \
pyload-ng[all]=="${PYLOAD_VERSION}" && \ "git+https://github.com/pyload/pyload.git@${PYLOAD_COMMIT}" && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \ echo "**** cleanup ****" && \
apk del --purge \ apk del --purge \
build-dependencies && \ build-dependencies && \

642
Jenkinsfile vendored
View File

@ -8,7 +8,7 @@ pipeline {
} }
// Input to determine if this is a package check // Input to determine if this is a package check
parameters { parameters {
string(defaultValue: 'false', description: 'package check run', name: 'PACKAGE_CHECK') string(defaultValue: 'false', description: 'package check run', name: 'PACKAGE_CHECK')
} }
// Configuration for the variables used for this specific repo // Configuration for the variables used for this specific repo
environment { environment {
@ -17,10 +17,10 @@ pipeline {
GITLAB_TOKEN=credentials('b6f0f1dd-6952-4cf6-95d1-9c06380283f0') GITLAB_TOKEN=credentials('b6f0f1dd-6952-4cf6-95d1-9c06380283f0')
GITLAB_NAMESPACE=credentials('gitlab-namespace-id') GITLAB_NAMESPACE=credentials('gitlab-namespace-id')
DOCKERHUB_TOKEN=credentials('docker-hub-ci-pat') DOCKERHUB_TOKEN=credentials('docker-hub-ci-pat')
QUAYIO_API_TOKEN=credentials('quayio-repo-api-token') EXT_GIT_BRANCH = 'develop'
GIT_SIGNING_KEY=credentials('484fbca6-9a4f-455e-b9e3-97ac98785f5f') EXT_USER = 'pyload'
EXT_PIP = 'pyload-ng' EXT_REPO = 'pyload'
BUILD_VERSION_ARG = 'PYLOAD_VERSION' 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'
@ -34,50 +34,24 @@ pipeline {
CI_PORT='8000' CI_PORT='8000'
CI_SSL='false' CI_SSL='false'
CI_DELAY='120' CI_DELAY='120'
CI_DOCKERENV='' CI_DOCKERENV='TZ=US/Pacific'
CI_AUTH='' CI_AUTH='user:password'
CI_WEBPATH='' CI_WEBPATH=''
} }
stages { stages {
stage("Set git config"){
steps{
sh '''#!/bin/bash
cat ${GIT_SIGNING_KEY} > /config/.ssh/id_sign
chmod 600 /config/.ssh/id_sign
ssh-keygen -y -f /config/.ssh/id_sign > /config/.ssh/id_sign.pub
echo "Using $(ssh-keygen -lf /config/.ssh/id_sign) to sign commits"
git config --global gpg.format ssh
git config --global user.signingkey /config/.ssh/id_sign
git config --global commit.gpgsign true
'''
}
}
// Setup all the basic environment variables needed for the build // Setup all the basic environment variables needed for the build
stage("Set ENV Variables base"){ stage("Set ENV Variables base"){
steps{ steps{
echo "Running on node: ${NODE_NAME}"
sh '''#! /bin/bash sh '''#! /bin/bash
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
BUILDX_CONTAINER_ID=$(docker ps -qf 'name=buildx_buildkit') docker stop ${containers}
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 -f --volumes || : docker system prune -af --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}:latest 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}:develop 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' ''',
@ -94,12 +68,8 @@ pipeline {
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/' env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'
env.PULL_REQUEST = env.CHANGE_ID env.PULL_REQUEST = env.CHANGE_ID
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.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 ./.github/workflows/package_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{
@ -110,7 +80,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 ${LS_RELEASE} 2>/dev/null) tagsha=$(git rev-list -n 1 develop-${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
@ -143,17 +113,25 @@ pipeline {
/* ######################## /* ########################
External Release Tagging External Release Tagging
######################## */ ######################## */
// If this is a pip release set the external tag to the pip version // If this is a github commit trigger determine the current commit at head
stage("Set ENV pip_version"){ stage("Set ENV github_commit"){
steps{ steps{
script{ script{
env.EXT_RELEASE = sh( env.EXT_RELEASE = sh(
script: '''curl -sL https://pypi.python.org/pypi/${EXT_PIP}/json |jq -r '. | .info.version' ''', 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 ''',
returnStdout: true).trim() returnStdout: true).trim()
env.RELEASE_LINK = 'https://pypi.python.org/pypi/' + env.EXT_PIP }
} }
} }
} // Sanitize the release tag and strip illegal docker or github characters // If this is a github commit trigger Set the external release link
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{
@ -187,10 +165,10 @@ pipeline {
} }
} }
} }
// If this is a main build use live docker endpoints // If this is a develop build use live docker endpoints
stage("Set ENV live build"){ stage("Set ENV live build"){
when { when {
branch "main" branch "develop"
environment name: 'CHANGE_ID', value: '' environment name: 'CHANGE_ID', value: ''
} }
steps { steps {
@ -200,22 +178,20 @@ pipeline {
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/' + env.CONTAINER_NAME env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/' + env.CONTAINER_NAME
env.QUAYIMAGE = 'quay.io/linuxserver.io/' + env.CONTAINER_NAME env.QUAYIMAGE = 'quay.io/linuxserver.io/' + env.CONTAINER_NAME
if (env.MULTIARCH == 'true') { if (env.MULTIARCH == 'true') {
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER 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
} else { } else {
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER env.CI_TAGS = 'develop-' + 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 = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER env.META_TAG = 'develop-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN env.EXT_RELEASE_TAG = 'develop-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.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 "main"} not {branch "develop"}
environment name: 'CHANGE_ID', value: '' environment name: 'CHANGE_ID', value: ''
} }
steps { steps {
@ -225,16 +201,14 @@ 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-' + 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 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
} else { } else {
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA env.CI_TAGS = 'develop-' + 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 = 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.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN env.EXT_RELEASE_TAG = 'develop-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.CITEST_IMAGETAG = 'develop'
} }
} }
} }
@ -250,17 +224,15 @@ 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-' + 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 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
} else { } else {
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST env.CI_TAGS = 'develop-' + 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 = 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.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN env.EXT_RELEASE_TAG = 'develop-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.CITEST_IMAGETAG = 'develop'
} }
} }
} }
@ -283,7 +255,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.23 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\ ghcr.io/linuxserver/baseimage-alpine:3.19 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 && \
@ -295,7 +267,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 "main" branch "develop"
environment name: 'CHANGE_ID', value: '' environment name: 'CHANGE_ID', value: ''
expression { expression {
env.CONTAINER_NAME != null env.CONTAINER_NAME != null
@ -307,24 +279,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 main of ${LS_USER}/${LS_REPO} for running the jenkins builder on # ${TEMPDIR}/docker-${CONTAINER_NAME}: Cloned branch develop of ${LS_USER}/${LS_REPO} for running the jenkins builder on
# ${TEMPDIR}/repo/${LS_REPO}: Cloned branch main of ${LS_USER}/${LS_REPO} for commiting various templated file changes and pushing back to Github # ${TEMPDIR}/repo/${LS_REPO}: Cloned branch develop 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 main --depth 1 https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/docker-${CONTAINER_NAME} git clone --branch develop --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 main git checkout -f develop
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 main git pull 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 git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
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}
@ -333,7 +305,7 @@ pipeline {
echo "Jenkinsfile is up to date." echo "Jenkinsfile is up to date."
fi fi
echo "Starting Stage 2 - Delete old templates" echo "Starting Stage 2 - Delete old templates"
OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md .github/ISSUE_TEMPLATE/issue.bug.md .github/ISSUE_TEMPLATE/issue.feature.md .github/workflows/call_invalid_helper.yml .github/workflows/stale.yml .github/workflows/package_trigger.yml" OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md .github/ISSUE_TEMPLATE/issue.bug.md .github/ISSUE_TEMPLATE/issue.feature.md .github/workflows/call_invalid_helper.yml .github/workflows/stale.yml"
for i in ${OLD_TEMPLATES}; do for i in ${OLD_TEMPLATES}; do
if [[ -f "${i}" ]]; then if [[ -f "${i}" ]]; then
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}" TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@ -343,13 +315,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 main git checkout -f develop
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 main git pull 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 git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
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}
@ -357,35 +329,6 @@ pipeline {
else else
echo "No templates to delete" echo "No templates to delete"
fi fi
echo "Starting Stage 2.5 - Update init diagram"
if ! grep -q 'init_diagram:' readme-vars.yml; then
echo "Adding the key 'init_diagram' to readme-vars.yml"
sed -i '\\|^#.*changelog.*$|d' readme-vars.yml
sed -i 's|^changelogs:|# init diagram\\ninit_diagram:\\n\\n# changelog\\nchangelogs:|' readme-vars.yml
fi
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}:latest
ls -al ${TEMPDIR}/d2
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
echo "'init_diagram' has been updated. Updating repo and exiting build, new one will trigger based on commit."
mkdir -p ${TEMPDIR}/repo
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
cd ${TEMPDIR}/repo/${LS_REPO}
git checkout -f main
cp ${WORKSPACE}/readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/readme-vars.yml
git add readme-vars.yml
git commit -m 'Bot Updating Templated Files'
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 main
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
echo "Updating templates and exiting build, new one will trigger based on commit"
rm -Rf ${TEMPDIR}
exit 0
else
echo "false" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
echo "Init diagram is unchanged"
fi
echo "Starting Stage 3 - Update templates" echo "Starting Stage 3 - Update templates"
CURRENTHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8) CURRENTHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
cd ${TEMPDIR}/docker-${CONTAINER_NAME} cd ${TEMPDIR}/docker-${CONTAINER_NAME}
@ -394,7 +337,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 main git checkout -f develop
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
@ -407,8 +350,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 main git pull 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 git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
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}
@ -419,7 +362,7 @@ pipeline {
fi fi
echo "Starting Stage 4 - External repo updates: Docs, Unraid Template and Readme Sync to Docker Hub" echo "Starting Stage 4 - External repo updates: Docs, Unraid Template and Readme Sync to Docker Hub"
mkdir -p ${TEMPDIR}/docs mkdir -p ${TEMPDIR}/docs
git clone --depth=1 https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/docs/docker-documentation git clone https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/docs/docker-documentation
if [[ "${BRANCH_NAME}" == "${GH_DEFAULT_BRANCH}" ]] && [[ (! -f ${TEMPDIR}/docs/docker-documentation/docs/images/docker-${CONTAINER_NAME}.md) || ("$(md5sum ${TEMPDIR}/docs/docker-documentation/docs/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')") ]]; then if [[ "${BRANCH_NAME}" == "${GH_DEFAULT_BRANCH}" ]] && [[ (! -f ${TEMPDIR}/docs/docker-documentation/docs/images/docker-${CONTAINER_NAME}.md) || ("$(md5sum ${TEMPDIR}/docs/docker-documentation/docs/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')") ]]; then
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/docker-${CONTAINER_NAME}.md ${TEMPDIR}/docs/docker-documentation/docs/images/ cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/docker-${CONTAINER_NAME}.md ${TEMPDIR}/docs/docker-documentation/docs/images/
cd ${TEMPDIR}/docs/docker-documentation cd ${TEMPDIR}/docs/docker-documentation
@ -437,8 +380,8 @@ pipeline {
echo "Docs update not needed, skipping" echo "Docs update not needed, skipping"
fi fi
mkdir -p ${TEMPDIR}/unraid mkdir -p ${TEMPDIR}/unraid
git clone --depth=1 https://github.com/linuxserver/docker-templates.git ${TEMPDIR}/unraid/docker-templates git clone https://github.com/linuxserver/docker-templates.git ${TEMPDIR}/unraid/docker-templates
git clone --depth=1 https://github.com/linuxserver/templates.git ${TEMPDIR}/unraid/templates git clone https://github.com/linuxserver/templates.git ${TEMPDIR}/unraid/templates
if [[ -f ${TEMPDIR}/unraid/docker-templates/linuxserver.io/img/${CONTAINER_NAME}-logo.png ]]; then if [[ -f ${TEMPDIR}/unraid/docker-templates/linuxserver.io/img/${CONTAINER_NAME}-logo.png ]]; then
sed -i "s|master/linuxserver.io/img/linuxserver-ls-logo.png|master/linuxserver.io/img/${CONTAINER_NAME}-logo.png|" ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml sed -i "s|master/linuxserver.io/img/linuxserver-ls-logo.png|master/linuxserver.io/img/${CONTAINER_NAME}-logo.png|" ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml
elif [[ -f ${TEMPDIR}/unraid/docker-templates/linuxserver.io/img/${CONTAINER_NAME}-icon.png ]]; then elif [[ -f ${TEMPDIR}/unraid/docker-templates/linuxserver.io/img/${CONTAINER_NAME}-icon.png ]]; then
@ -448,9 +391,9 @@ pipeline {
echo "Updating Unraid template" echo "Updating Unraid template"
cd ${TEMPDIR}/unraid/templates/ cd ${TEMPDIR}/unraid/templates/
GH_TEMPLATES_DEFAULT_BRANCH=$(git remote show origin | grep "HEAD branch:" | sed 's|.*HEAD branch: ||') GH_TEMPLATES_DEFAULT_BRANCH=$(git remote show origin | grep "HEAD branch:" | sed 's|.*HEAD branch: ||')
if grep -wq "^${CONTAINER_NAME}$" ${TEMPDIR}/unraid/templates/unraid/ignore.list && [[ -f ${TEMPDIR}/unraid/templates/unraid/deprecated/${CONTAINER_NAME}.xml ]]; then if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list && [[ -f ${TEMPDIR}/unraid/templates/unraid/deprecated/${CONTAINER_NAME}.xml ]]; then
echo "Image is on the ignore list, and already in the deprecation folder." echo "Image is on the ignore list, and already in the deprecation folder."
elif grep -wq "^${CONTAINER_NAME}$" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then elif grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
echo "Image is on the ignore list, marking Unraid template as deprecated" echo "Image is on the ignore list, marking Unraid template as deprecated"
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/ cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
git add -u unraid/${CONTAINER_NAME}.xml git add -u unraid/${CONTAINER_NAME}.xml
@ -509,7 +452,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 "main" branch "develop"
environment name: 'CHANGE_ID', value: '' environment name: 'CHANGE_ID', value: ''
environment name: 'FILES_UPDATED', value: 'true' environment name: 'FILES_UPDATED', value: 'true'
expression { expression {
@ -522,10 +465,10 @@ pipeline {
} }
} }
} }
// If this is a main build check the S6 service file perms // If this is a develop build check the S6 service file perms
stage("Check S6 Service file Permissions"){ stage("Check S6 Service file Permissions"){
when { when {
branch "main" branch "develop"
environment name: 'CHANGE_ID', value: '' environment name: 'CHANGE_ID', value: ''
environment name: 'EXIT_STATUS', value: '' environment name: 'EXIT_STATUS', value: ''
} }
@ -543,10 +486,10 @@ pipeline {
} }
} }
/* ####################### /* #######################
GitLab Mirroring and Quay.io Repo Visibility GitLab Mirroring
####################### */ ####################### */
// Ping into Gitlab to mirror this repo and have a registry endpoint & mark this repo on Quay.io as public // Ping into Gitlab to mirror this repo and have a registry endpoint
stage("GitLab Mirror and Quay.io Visibility"){ stage("GitLab Mirror"){
when { when {
environment name: 'EXIT_STATUS', value: '' environment name: 'EXIT_STATUS', value: ''
} }
@ -562,8 +505,6 @@ pipeline {
"visibility":"public"}' ''' "visibility":"public"}' '''
sh '''curl -H "Private-Token: ${GITLAB_TOKEN}" -X PUT "https://gitlab.com/api/v4/projects/Linuxserver.io%2F${LS_REPO}" \ sh '''curl -H "Private-Token: ${GITLAB_TOKEN}" -X PUT "https://gitlab.com/api/v4/projects/Linuxserver.io%2F${LS_REPO}" \
-d "mirror=true&import_url=https://github.com/linuxserver/${LS_REPO}.git" ''' -d "mirror=true&import_url=https://github.com/linuxserver/${LS_REPO}.git" '''
sh '''curl -H "Content-Type: application/json" -H "Authorization: Bearer ${QUAYIO_API_TOKEN}" -X POST "https://quay.io/api/v1/repository${QUAYIMAGE/quay.io/}/changevisibility" \
-d '{"visibility":"public"}' ||: '''
} }
} }
/* ############### /* ###############
@ -594,45 +535,8 @@ pipeline {
--label \"org.opencontainers.image.title=Pyload-ng\" \ --label \"org.opencontainers.image.title=Pyload-ng\" \
--label \"org.opencontainers.image.description=[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.\" \ --label \"org.opencontainers.image.description=[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.\" \
--no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \ --no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \
--provenance=true --sbom=true --builder=container --load \ --provenance=false --sbom=false \
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
sh '''#! /bin/bash
set -e
IFS=',' read -ra CACHE <<< "$BUILDCACHE"
for i in "${CACHE[@]}"; do
docker tag ${IMAGE}:${META_TAG} ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER}
done
'''
withCredentials([
[
$class: 'UsernamePasswordMultiBinding',
credentialsId: 'Quay.io-Robot',
usernameVariable: 'QUAYUSER',
passwordVariable: 'QUAYPASS'
]
]) {
retry_backoff(5,5) {
sh '''#! /bin/bash
set -e
echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --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 $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
if [[ "${PACKAGE_CHECK}" != "true" ]]; then
declare -A pids
IFS=',' read -ra CACHE <<< "$BUILDCACHE"
for i in "${CACHE[@]}"; do
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
pids[$!]="$i"
done
for p in "${!pids[@]}"; do
wait "$p" || { [[ "${pids[$p]}" != *"quay.io"* ]] && exit 1; }
done
fi
'''
}
}
} }
} }
// Build MultiArch Docker containers for push to LS Repo // Build MultiArch Docker containers for push to LS Repo
@ -663,45 +567,8 @@ pipeline {
--label \"org.opencontainers.image.title=Pyload-ng\" \ --label \"org.opencontainers.image.title=Pyload-ng\" \
--label \"org.opencontainers.image.description=[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.\" \ --label \"org.opencontainers.image.description=[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.\" \
--no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \ --no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \
--provenance=true --sbom=true --builder=container --load \ --provenance=false --sbom=false \
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
sh '''#! /bin/bash
set -e
IFS=',' read -ra CACHE <<< "$BUILDCACHE"
for i in "${CACHE[@]}"; do
docker tag ${IMAGE}:amd64-${META_TAG} ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER}
done
'''
withCredentials([
[
$class: 'UsernamePasswordMultiBinding',
credentialsId: 'Quay.io-Robot',
usernameVariable: 'QUAYUSER',
passwordVariable: 'QUAYPASS'
]
]) {
retry_backoff(5,5) {
sh '''#! /bin/bash
set -e
echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --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 $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
if [[ "${PACKAGE_CHECK}" != "true" ]]; then
declare -A pids
IFS=',' read -ra CACHE <<< "$BUILDCACHE"
for i in "${CACHE[@]}"; do
docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
pids[$!]="$i"
done
for p in "${!pids[@]}"; do
wait "$p" || { [[ "${pids[$p]}" != *"quay.io"* ]] && exit 1; }
done
fi
'''
}
}
} }
} }
stage('Build ARM64') { stage('Build ARM64') {
@ -710,6 +577,10 @@ pipeline {
} }
steps { steps {
echo "Running on node: ${NODE_NAME}" echo "Running on node: ${NODE_NAME}"
echo 'Logging into Github'
sh '''#! /bin/bash
echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin
'''
sh "sed -r -i 's|(^FROM .*)|\\1\\n\\nENV LSIO_FIRST_PARTY=true|g' Dockerfile.aarch64" sh "sed -r -i 's|(^FROM .*)|\\1\\n\\nENV LSIO_FIRST_PARTY=true|g' Dockerfile.aarch64"
sh "docker buildx build \ sh "docker buildx build \
--label \"org.opencontainers.image.created=${GITHUB_DATE}\" \ --label \"org.opencontainers.image.created=${GITHUB_DATE}\" \
@ -725,52 +596,18 @@ pipeline {
--label \"org.opencontainers.image.title=Pyload-ng\" \ --label \"org.opencontainers.image.title=Pyload-ng\" \
--label \"org.opencontainers.image.description=[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.\" \ --label \"org.opencontainers.image.description=[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.\" \
--no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \ --no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \
--provenance=true --sbom=true --builder=container --load \ --provenance=false --sbom=false \
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
sh '''#! /bin/bash sh "docker tag ${IMAGE}:arm64v8-${META_TAG} ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}"
set -e retry(5) {
IFS=',' read -ra CACHE <<< "$BUILDCACHE" sh "docker push ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}"
for i in "${CACHE[@]}"; do
docker tag ${IMAGE}:arm64v8-${META_TAG} ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}
done
'''
withCredentials([
[
$class: 'UsernamePasswordMultiBinding',
credentialsId: 'Quay.io-Robot',
usernameVariable: 'QUAYUSER',
passwordVariable: 'QUAYPASS'
]
]) {
retry_backoff(5,5) {
sh '''#! /bin/bash
set -e
echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --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 $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
if [[ "${PACKAGE_CHECK}" != "true" ]]; then
declare -A pids
IFS=',' read -ra CACHE <<< "$BUILDCACHE"
for i in "${CACHE[@]}"; do
docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} &
pids[$!]="$i"
done
for p in "${!pids[@]}"; do
wait "$p" || { [[ "${pids[$p]}" != *"quay.io"* ]] && exit 1; }
done
fi
'''
}
} }
sh '''#! /bin/bash sh '''#! /bin/bash
containers=$(docker ps -aq) containers=$(docker ps -aq)
if [[ -n "${containers}" ]]; then if [[ -n "${containers}" ]]; then
docker stop ${containers} docker stop ${containers}
fi fi
docker system prune -f --volumes || : docker system prune -af --volumes || : '''
docker image prune -af || :
'''
} }
} }
} }
@ -778,7 +615,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 "main" branch "develop"
environment name: 'CHANGE_ID', value: '' environment name: 'CHANGE_ID', value: ''
environment name: 'EXIT_STATUS', value: '' environment name: 'EXIT_STATUS', value: ''
} }
@ -795,20 +632,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:${SYFT_IMAGE_TAG} \ ghcr.io/anchore/syft:latest \
${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 main git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f develop
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 main git pull 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 git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git develop
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
@ -826,7 +663,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 "main" branch "develop"
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: ''
@ -840,7 +677,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 "main" branch "develop"
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: ''
@ -874,17 +711,9 @@ pipeline {
} }
sh '''#! /bin/bash sh '''#! /bin/bash
set -e set -e
if grep -q 'docker-baseimage' <<< "${LS_REPO}"; then docker pull ghcr.io/linuxserver/ci:latest
echo "Detected baseimage, setting LSIO_FIRST_PARTY=true"
if [ -n "${CI_DOCKERENV}" ]; then
CI_DOCKERENV="LSIO_FIRST_PARTY=true|${CI_DOCKERENV}"
else
CI_DOCKERENV="LSIO_FIRST_PARTY=true"
fi
fi
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}
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}
fi fi
docker run --rm \ docker run --rm \
@ -894,7 +723,6 @@ 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=\"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}\" \
@ -904,11 +732,7 @@ pipeline {
-e WEB_SCREENSHOT=\"${CI_WEB}\" \ -e WEB_SCREENSHOT=\"${CI_WEB}\" \
-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}\" \ -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'''
} }
} }
@ -923,25 +747,37 @@ pipeline {
environment name: 'EXIT_STATUS', value: '' environment name: 'EXIT_STATUS', value: ''
} }
steps { steps {
retry_backoff(5,5) { withCredentials([
sh '''#! /bin/bash [
set -e $class: 'UsernamePasswordMultiBinding',
for PUSHIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do credentialsId: 'Quay.io-Robot',
[[ ${PUSHIMAGE%%/*} =~ \\. ]] && PUSHIMAGEPLUS="${PUSHIMAGE}" || PUSHIMAGEPLUS="docker.io/${PUSHIMAGE}" usernameVariable: 'QUAYUSER',
IFS=',' read -ra CACHE <<< "$BUILDCACHE" passwordVariable: 'QUAYPASS'
for i in "${CACHE[@]}"; do ]
if [[ "${PUSHIMAGEPLUS}" == "$(cut -d "/" -f1 <<< ${i})"* ]]; then ]) {
CACHEIMAGE=${i} retry(5) {
fi sh '''#! /bin/bash
set -e
echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --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 $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
for PUSHIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${QUAYIMAGE}" "${IMAGE}"; do
docker tag ${IMAGE}:${META_TAG} ${PUSHIMAGE}:${META_TAG}
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:develop
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:${EXT_RELEASE_TAG}
if [ -n "${SEMVER}" ]; then
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:${SEMVER}
fi
docker push ${PUSHIMAGE}:develop
docker push ${PUSHIMAGE}:${META_TAG}
docker push ${PUSHIMAGE}:${EXT_RELEASE_TAG}
if [ -n "${SEMVER}" ]; then
docker push ${PUSHIMAGE}:${SEMVER}
fi
done done
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
docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \
{ if [[ "${PUSHIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
fi
done
'''
} }
} }
} }
@ -952,48 +788,64 @@ pipeline {
environment name: 'EXIT_STATUS', value: '' environment name: 'EXIT_STATUS', value: ''
} }
steps { steps {
retry_backoff(5,5) { withCredentials([
sh '''#! /bin/bash [
set -e $class: 'UsernamePasswordMultiBinding',
for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do credentialsId: 'Quay.io-Robot',
[[ ${MANIFESTIMAGE%%/*} =~ \\. ]] && MANIFESTIMAGEPLUS="${MANIFESTIMAGE}" || MANIFESTIMAGEPLUS="docker.io/${MANIFESTIMAGE}" usernameVariable: 'QUAYUSER',
IFS=',' read -ra CACHE <<< "$BUILDCACHE" passwordVariable: 'QUAYPASS'
for i in "${CACHE[@]}"; do ]
if [[ "${MANIFESTIMAGEPLUS}" == "$(cut -d "/" -f1 <<< ${i})"* ]]; then ]) {
CACHEIMAGE=${i} retry(5) {
fi sh '''#! /bin/bash
set -e
echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --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 $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
if [ "${CI}" == "false" ]; then
docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}
docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm64v8-${META_TAG}
fi
for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do
docker tag ${IMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG}
docker tag ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-develop
docker tag ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG}
docker tag ${IMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
docker tag ${MANIFESTIMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-develop
docker tag ${MANIFESTIMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
if [ -n "${SEMVER}" ]; then
docker tag ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-${SEMVER}
docker tag ${MANIFESTIMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${SEMVER}
fi
docker push ${MANIFESTIMAGE}:amd64-${META_TAG}
docker push ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG}
docker push ${MANIFESTIMAGE}:amd64-develop
docker push ${MANIFESTIMAGE}:arm64v8-${META_TAG}
docker push ${MANIFESTIMAGE}:arm64v8-develop
docker push ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
if [ -n "${SEMVER}" ]; then
docker push ${MANIFESTIMAGE}:amd64-${SEMVER}
docker push ${MANIFESTIMAGE}:arm64v8-${SEMVER}
fi
done done
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} || \ for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; } docker buildx imagetools create -t ${MANIFESTIMAGE}:develop ${MANIFESTIMAGE}:amd64-develop ${MANIFESTIMAGE}:arm64v8-develop
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} || \ 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}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
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 -t ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:amd64-${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER}
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; } fi
docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${SEMVER} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || \ done
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; } '''
fi }
done
for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do
docker buildx imagetools create -t ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm64v8-latest || \
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
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}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} || \
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
if [ -n "${SEMVER}" ]; then
docker buildx imagetools create -t ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:amd64-${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER} || \
{ if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" ]]; then exit 1; fi; }
fi
done
'''
} }
} }
} }
// 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 "main" branch "develop"
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
} }
@ -1001,54 +853,36 @@ 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 Jenkins","email": "jenkins@linuxserver.io","date": "'${GITHUB_DATE}'"}}' '''
echo "Pushing New release for Tag"
sh '''#! /bin/bash sh '''#! /bin/bash
echo "Auto-generating release notes" 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
if [ "$(git tag --points-at HEAD)" != "" ]; then echo '{"tag_name":"'${META_TAG}'",\
echo "Existing tag points to current commit, suggesting no new LS changes" "target_commitish": "develop",\
AUTO_RELEASE_NOTES="No changes" "name": "'${META_TAG}'",\
else "body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**'${EXT_REPO}' Changes:**\\n\\n' > start
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 \ printf '","draft": false,"prerelease": true}' >> releasebody.json
-d '{"tag_name":"'${META_TAG}'",\ paste -d'\\0' start releasebody.json > releasebody.json.done
"target_commitish": "main"}' \ curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''
| 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 "main" branch "develop"
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 main" echo "Setting up protection for release branch develop"
sh '''#! /bin/bash sh '''#! /bin/bash
curl -H "Authorization: token ${GITHUB_TOKEN}" -X PUT https://api.github.com/repos/${LS_USER}/${LS_REPO}/branches/main/protection \ curl -H "Authorization: token ${GITHUB_TOKEN}" -X PUT https://api.github.com/repos/${LS_USER}/${LS_REPO}/branches/develop/protection \
-d $(jq -c . << EOF -d $(jq -c . << EOF
{ {
"required_status_checks": null, "required_status_checks": null,
@ -1157,94 +991,32 @@ EOF
###################### */ ###################### */
post { post {
always { always {
sh '''#!/bin/bash
rm -rf /config/.ssh/id_sign
rm -rf /config/.ssh/id_sign.pub
git config --global --unset gpg.format
git config --global --unset user.signingkey
git config --global --unset commit.gpgsign
'''
script{ script{
env.JOB_DATE = sh(
script: '''date '+%Y-%m-%dT%H:%M:%S%:z' ''',
returnStdout: true).trim()
if (env.EXIT_STATUS == "ABORTED"){ if (env.EXIT_STATUS == "ABORTED"){
sh 'echo "build aborted"' sh 'echo "build aborted"'
}else{ }
if (currentBuild.currentResult == "SUCCESS"){ else if (currentBuild.currentResult == "SUCCESS"){
if (env.GITHUBIMAGE =~ /lspipepr/){ sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/jenkins-avatar.png","embeds": [{"color": 1681177,\
env.JOB_WEBHOOK_STATUS='Success' "description": "**Build:** '${BUILD_NUMBER}'\\n**CI Results:** '${CI_URL}'\\n**ShellCheck Results:** '${SHELLCHECK_URL}'\\n**Status:** Success\\n**Job:** '${RUN_DISPLAY_URL}'\\n**Change:** '${CODE_URL}'\\n**External Release:**: '${RELEASE_LINK}'\\n**DockerHub:** '${DOCKERHUB_LINK}'\\n"}],\
env.JOB_WEBHOOK_COLOUR=3957028 "username": "Jenkins"}' ${BUILDS_DISCORD} '''
env.JOB_WEBHOOK_FOOTER='PR Build' }
}else if (env.GITHUBIMAGE =~ /lsiodev/){ else {
env.JOB_WEBHOOK_STATUS='Success' sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/jenkins-avatar.png","embeds": [{"color": 16711680,\
env.JOB_WEBHOOK_COLOUR=3957028 "description": "**Build:** '${BUILD_NUMBER}'\\n**CI Results:** '${CI_URL}'\\n**ShellCheck Results:** '${SHELLCHECK_URL}'\\n**Status:** failure\\n**Job:** '${RUN_DISPLAY_URL}'\\n**Change:** '${CODE_URL}'\\n**External Release:**: '${RELEASE_LINK}'\\n**DockerHub:** '${DOCKERHUB_LINK}'\\n"}],\
env.JOB_WEBHOOK_FOOTER='Dev Build'
}else{
env.JOB_WEBHOOK_STATUS='Success'
env.JOB_WEBHOOK_COLOUR=1681177
env.JOB_WEBHOOK_FOOTER='Live Build'
}
}else{
if (env.GITHUBIMAGE =~ /lspipepr/){
env.JOB_WEBHOOK_STATUS='Failure'
env.JOB_WEBHOOK_COLOUR=12669523
env.JOB_WEBHOOK_FOOTER='PR Build'
}else if (env.GITHUBIMAGE =~ /lsiodev/){
env.JOB_WEBHOOK_STATUS='Failure'
env.JOB_WEBHOOK_COLOUR=12669523
env.JOB_WEBHOOK_FOOTER='Dev Build'
}else{
env.JOB_WEBHOOK_STATUS='Failure'
env.JOB_WEBHOOK_COLOUR=16711680
env.JOB_WEBHOOK_FOOTER='Live Build'
}
}
sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/jenkins-avatar.png","embeds": [{"'color'": '${JOB_WEBHOOK_COLOUR}',\
"footer": {"text" : "'"${JOB_WEBHOOK_FOOTER}"'"},\
"timestamp": "'${JOB_DATE}'",\
"description": "**Build:** '${BUILD_NUMBER}'\\n**CI Results:** '${CI_URL}'\\n**ShellCheck Results:** '${SHELLCHECK_URL}'\\n**Status:** '${JOB_WEBHOOK_STATUS}'\\n**Job:** '${RUN_DISPLAY_URL}'\\n**Change:** '${CODE_URL}'\\n**External Release:**: '${RELEASE_LINK}'\\n**DockerHub:** '${DOCKERHUB_LINK}'\\n"}],\
"username": "Jenkins"}' ${BUILDS_DISCORD} ''' "username": "Jenkins"}' ${BUILDS_DISCORD} '''
} }
} }
} }
cleanup { cleanup {
sh '''#! /bin/bash sh '''#! /bin/bash
echo "Pruning builder!!" echo "Performing docker system prune!!"
docker builder prune -f --builder container || : containers=$(docker ps -aq)
containers=$(docker ps -q)
if [[ -n "${containers}" ]]; then if [[ -n "${containers}" ]]; then
BUILDX_CONTAINER_ID=$(docker ps -qf 'name=buildx_buildkit') docker stop ${containers}
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 -f --volumes || : docker system prune -af --volumes || :
docker image prune -af || :
''' '''
cleanWs() cleanWs()
} }
} }
} }
def retry_backoff(int max_attempts, int power_base, Closure c) {
int n = 0
while (n < max_attempts) {
try {
c()
return
} catch (err) {
if ((n + 1) >= max_attempts) {
throw err
}
sleep(power_base ** n)
n++
}
}
return
}

View File

@ -1,10 +1,11 @@
<!-- DO NOT EDIT THIS FILE MANUALLY --> <!-- DO NOT EDIT THIS FILE MANUALLY -->
<!-- Please read https://github.com/linuxserver/docker-pyload-ng/blob/main/.github/CONTRIBUTING.md --> <!-- Please read https://github.com/linuxserver/docker-pyload-ng/blob/develop/.github/CONTRIBUTING.md -->
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io) [![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)
[![Blog](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Blog)](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!") [![Blog](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Blog)](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
[![Discord](https://img.shields.io/discord/354974912613449730.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Discord&logo=discord)](https://linuxserver.io/discord "realtime support / chat with the community and the team.") [![Discord](https://img.shields.io/discord/354974912613449730.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Discord&logo=discord)](https://discord.gg/YWrKVTn "realtime support / chat with the community and the team.")
[![Discourse](https://img.shields.io/discourse/https/discourse.linuxserver.io/topics.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=discourse)](https://discourse.linuxserver.io "post on our community forum.") [![Discourse](https://img.shields.io/discourse/https/discourse.linuxserver.io/topics.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=discourse)](https://discourse.linuxserver.io "post on our community forum.")
[![Fleet](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Fleet)](https://fleet.linuxserver.io "an online web interface which displays all of our maintained images.")
[![GitHub](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitHub&logo=github)](https://github.com/linuxserver "view the source for all of our repositories.") [![GitHub](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitHub&logo=github)](https://github.com/linuxserver "view the source for all of our repositories.")
[![Open Collective](https://img.shields.io/opencollective/all/linuxserver.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Supporters&logo=open%20collective)](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget") [![Open Collective](https://img.shields.io/opencollective/all/linuxserver.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Supporters&logo=open%20collective)](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
@ -19,8 +20,9 @@ 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://linuxserver.io/discord) - realtime support / chat with the community and the team. * [Discord](https://discord.gg/YWrKVTn) - 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
@ -34,18 +36,18 @@ Find us at:
[![Quay.io](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Quay.io)](https://quay.io/repository/linuxserver.io/pyload-ng) [![Quay.io](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Quay.io)](https://quay.io/repository/linuxserver.io/pyload-ng)
[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/pyload-ng.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker)](https://hub.docker.com/r/linuxserver/pyload-ng) [![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/pyload-ng.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker)](https://hub.docker.com/r/linuxserver/pyload-ng)
[![Docker Stars](https://img.shields.io/docker/stars/linuxserver/pyload-ng.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=stars&logo=docker)](https://hub.docker.com/r/linuxserver/pyload-ng) [![Docker Stars](https://img.shields.io/docker/stars/linuxserver/pyload-ng.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=stars&logo=docker)](https://hub.docker.com/r/linuxserver/pyload-ng)
[![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555&logoColor=ffffff&style=for-the-badge&jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-pyload-ng%2Fjob%2Fmain%2F&logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/main/) [![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555&logoColor=ffffff&style=for-the-badge&jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-pyload-ng%2Fjob%2Fdevelop%2F&logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-pyload-ng/job/develop/)
[![LSIO CI](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=CI&query=CI&url=https%3A%2F%2Fci-tests.linuxserver.io%2Flinuxserver%2Fpyload-ng%2Flatest%2Fci-status.yml)](https://ci-tests.linuxserver.io/linuxserver/pyload-ng/latest/index.html) [![LSIO CI](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=CI&query=CI&url=https%3A%2F%2Fci-tests.linuxserver.io%2Flinuxserver%2Fpyload-ng%2Flatest%2Fci-status.yml)](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.
[![pyload-ng](https://github.com/linuxserver/docker-templates/raw/master/linuxserver.io/img/pyload-logo.png)](https://pyload.net/) [![pyload-ng](https://pyload.net/img/banner.png)](https://pyload.net/)
## Supported Architectures ## Supported Architectures
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:latest` 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:develop` 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:
@ -53,6 +55,7 @@ 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
@ -75,16 +78,13 @@ 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]
>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))
```yaml ```yaml
--- ---
services: services:
pyload-ng: pyload-ng:
image: lscr.io/linuxserver/pyload-ng:latest image: lscr.io/linuxserver/pyload-ng:develop
container_name: pyload-ng container_name: pyload-ng
environment: environment:
- PUID=1000 - PUID=1000
@ -112,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:latest lscr.io/linuxserver/pyload-ng:develop
``` ```
## Parameters ## Parameters
@ -121,7 +121,7 @@ Containers are configured using parameters passed at runtime (such as those abov
| Parameter | Function | | Parameter | Function |
| :----: | --- | | :----: | --- |
| `-p 8000:8000` | Allows HTTP access to the application | | `-p 8000` | Allows HTTP access to the application |
| `-p 9666` | Click'n'Load port. | | `-p 9666` | Click'n'Load port. |
| `-e PUID=1000` | for UserID - see below for explanation | | `-e PUID=1000` | for UserID - see below for explanation |
| `-e PGID=1000` | for GroupID - see below for explanation | | `-e PGID=1000` | for GroupID - see below for explanation |
@ -193,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:latest docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/pyload-ng:develop
``` ```
## Updating Info ## Updating Info
@ -241,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:latest docker pull lscr.io/linuxserver/pyload-ng:develop
``` ```
* Stop the running container: * Stop the running container:
@ -265,8 +265,7 @@ Below are the instructions for updating containers:
### Image Update Notifications - Diun (Docker Image Update Notifier) ### Image Update Notifications - Diun (Docker Image Update Notifier)
>[!TIP] **tip**: We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
>We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
## Building locally ## Building locally
@ -278,30 +277,25 @@ cd docker-pyload-ng
docker build \ docker build \
--no-cache \ --no-cache \
--pull \ --pull \
-t lscr.io/linuxserver/pyload-ng:latest . -t lscr.io/linuxserver/pyload-ng:develop .
``` ```
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 using `multiarch/qemu-user-static`
```bash ```bash
docker run --rm --privileged lscr.io/linuxserver/qemu-static --reset docker run --rm --privileged multiarch/qemu-user-static:register --reset
``` ```
Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64`. 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.
* **27.06.24:** - Rebase to Alpine 3.20.
* **23.12.23:** - Rebase to Alpine 3.19. * **23.12.23:** - Rebase to Alpine 3.19.
* **08.10.23:** - Install unrar from [linuxserver repo](https://github.com/linuxserver/docker-unrar). * **08.10.23:** - Install unrar from [linuxserver repo](https://github.com/linuxserver/docker-unrar).
* **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 master to alpine 3.17. * **02.02.22:** - Rebase develop 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.

View File

@ -2,13 +2,16 @@
# jenkins variables # jenkins variables
project_name: docker-pyload-ng project_name: docker-pyload-ng
external_type: pip_version external_type: github_commit
release_type: stable release_type: prerelease
release_tag: latest release_tag: develop
ls_branch: main ls_branch: develop
build_armhf: false
repo_vars: repo_vars:
- EXT_PIP = 'pyload-ng' - EXT_GIT_BRANCH = 'develop'
- BUILD_VERSION_ARG = 'PYLOAD_VERSION' - EXT_USER = 'pyload'
- 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'
@ -22,8 +25,8 @@ repo_vars:
- CI_PORT='8000' - CI_PORT='8000'
- CI_SSL='false' - CI_SSL='false'
- CI_DELAY='120' - CI_DELAY='120'
- CI_DOCKERENV='' - CI_DOCKERENV='TZ=US/Pacific'
- CI_AUTH='' - CI_AUTH='user:password'
- CI_WEBPATH='' - CI_WEBPATH=''
sponsor_links: sponsor_links:
- { name: "pyLoad", url: "https://PayPal.Me/nitzo2001/0usd" } - { name: "pyLoad", url: "https://PayPal.Me/nitzo2001/0usd" }

View File

@ -1,347 +1,302 @@
NAME VERSION TYPE NAME VERSION TYPE
7zip 24.09-r0 apk 7zip 23.01-r0 apk
Simple Launcher 1.1.0.14 binary (+5 duplicates) Babel 2.15.0 python
acl-libs 2.3.2-r1 apk Brotli 1.1.0 python
aia-chaser 3.4.0 python Flask 3.0.3 python
aiodns 4.0.0 python Flask-Babel 1.0.0 python
alpine-baselayout 3.7.0-r0 apk Flask-Caching 1.11.1 python
alpine-baselayout-data 3.7.0-r0 apk Flask-Compress 1.15 python
alpine-keys 2.5-r0 apk Flask-Session 0.8.0 python
alpine-release 3.22.3-r0 apk Flask-Themes2 1.0.1 python
alsa-lib 1.2.14-r0 apk Jinja2 3.1.4 python
annotated-types 0.7.0 python Js2Py 0.74 python
anstream 0.6.8 rust-crate MarkupSafe 2.1.5 python
anstyle 1.0.4 rust-crate Simple Launcher 1.1.0.14 dotnet (+5 duplicates)
anstyle-parse 0.2.3 rust-crate Werkzeug 3.0.3 python
anstyle-query 1.0.2 rust-crate alpine-baselayout 3.4.3-r2 apk
anyhow 1.0.79 rust-crate alpine-baselayout-data 3.4.3-r2 apk
anyhow 1.0.98 rust-crate alpine-keys 2.4-r1 apk
aom-libs 3.12.1-r0 apk alpine-release 3.19.1-r0 apk
apk-tools 2.14.9-r3 apk alsa-lib 1.2.10-r0 apk
arg_enum_proc_macro 0.3.4 rust-crate anyhow 1.0.71 rust-crate
arrayvec 0.7.4 rust-crate anyhow 1.0.75 rust-crate
autocommand 2.2.2 python aom-libs 3.7.1-r0 apk
av-metrics 0.9.1 rust-crate apk-tools 2.14.4-r0 apk
av1-grain 0.2.3 rust-crate arg_enum_proc_macro 0.3.2 rust-crate
babel 2.18.0 python arrayvec 0.7.2 rust-crate
backports-tarfile 1.2.0 python av-metrics 0.9.0 rust-crate
backports-zstd 1.3.0 python av1-grain 0.2.2 rust-crate
bash 5.2.37-r0 apk bash 5.2.21-r0 apk
beautifulsoup4 4.14.3 python bitflags 1.3.2 rust-crate
bitflags 2.4.1 rust-crate bitmath 1.3.3.1 python
bitmath 1.3.3.1 python bitstream-io 1.6.0 rust-crate
bitstream-io 2.2.0 rust-crate bitstream-io 1.7.0 rust-crate
bitstream-io 2.6.0 rust-crate bitvec 1.0.1 rust-crate
bitvec 1.0.1 rust-crate bitvec_helpers 3.1.2 rust-crate
bitvec_helpers 3.1.6 rust-crate blinker 1.8.2 python
blinker 1.9.0 python brotli-libs 1.1.0-r1 apk
brotli 1.2.0 python busybox 1.36.1-r19 apk
brotli-libs 1.1.0-r2 apk busybox-binsh 1.36.1-r19 apk
busybox 1.37.0-r20 apk c-ares 1.27.0-r0 apk
busybox-binsh 1.37.0-r20 apk ca-certificates 20240226-r0 apk
c-ares 1.34.6-r0 apk ca-certificates-bundle 20240226-r0 apk
ca-certificates 20250911-r0 apk cachelib 0.13.0 python
ca-certificates-bundle 20250911-r0 apk cairo 1.18.0-r0 apk
cachelib 0.13.0 python catatonit 0.2.0-r0 apk
cairo 1.18.4-r0 apk certifi 2024.6.2 python
catatonit 0.2.1-r0 apk cffi 1.16.0 python
certifi 2026.2.25 python cfg-if 1.0.0 rust-crate
cffi 2.0.0 python cheroot 8.6.0 python
cfg-if 1.0.0 rust-crate cjson 1.7.17-r0 apk
cheroot 11.1.2 python clap 4.0.32 rust-crate
cjson 1.7.19-r0 apk clap_complete 4.0.7 rust-crate
clap 4.4.14 rust-crate clap_derive 4.0.21 rust-crate
clap_builder 4.4.14 rust-crate clap_lex 0.3.0 rust-crate
clap_complete 4.4.6 rust-crate click 8.1.7 python
clap_derive 4.4.7 rust-crate console 0.15.5 rust-crate
clap_lex 0.6.0 rust-crate coreutils 9.4-r2 apk
cli UNKNOWN binary coreutils-env 9.4-r2 apk
cli-32 UNKNOWN binary coreutils-fmt 9.4-r2 apk
cli-64 UNKNOWN binary coreutils-sha512sum 9.4-r2 apk
cli-arm64 UNKNOWN binary crc 3.0.1 rust-crate
click 8.3.1 python crc-catalog 2.2.0 rust-crate
colorchoice 1.0.0 rust-crate crossbeam 0.8.2 rust-crate
colorlog 6.10.1 python crossbeam-channel 0.5.8 rust-crate
console 0.15.8 rust-crate crossbeam-deque 0.8.3 rust-crate
coreutils 9.7-r1 apk crossbeam-epoch 0.9.14 rust-crate
coreutils-env 9.7-r1 apk crossbeam-queue 0.3.8 rust-crate
coreutils-fmt 9.7-r1 apk crossbeam-utils 0.8.15 rust-crate
coreutils-sha512sum 9.7-r1 apk cryptography 42.0.8 python
crc 3.3.0 rust-crate curl 8.5.0-r0 apk
crc-catalog 2.4.0 rust-crate dbus-libs 1.14.10-r0 apk
crossbeam 0.8.4 rust-crate dolby_vision 3.2.0 rust-crate
crossbeam-channel 0.5.14 rust-crate either 1.8.1 rust-crate
crossbeam-deque 0.8.5 rust-crate fern 0.6.2 rust-crate
crossbeam-epoch 0.9.18 rust-crate ffmpeg 6.1.1-r0 apk
crossbeam-queue 0.3.11 rust-crate ffmpeg-libavcodec 6.1.1-r0 apk
crossbeam-utils 0.8.19 rust-crate ffmpeg-libavdevice 6.1.1-r0 apk
cryptography 46.0.5 python ffmpeg-libavfilter 6.1.1-r0 apk
curl 8.14.1-r2 apk ffmpeg-libavformat 6.1.1-r0 apk
dbus-libs 1.16.2-r1 apk ffmpeg-libavutil 6.1.1-r0 apk
defusedxml 0.7.1 python ffmpeg-libpostproc 6.1.1-r0 apk
dolby_vision 3.3.1 rust-crate ffmpeg-libswresample 6.1.1-r0 apk
either 1.9.0 rust-crate ffmpeg-libswscale 6.1.1-r0 apk
errno 0.3.8 rust-crate filetype 1.2.0 python
fern 0.6.2 rust-crate findutils 4.9.0-r5 apk
ffmpeg 6.1.2-r2 apk fontconfig 2.14.2-r4 apk
ffmpeg-libavcodec 6.1.2-r2 apk freetype 2.13.2-r0 apk
ffmpeg-libavdevice 6.1.2-r2 apk fribidi 1.0.13-r0 apk
ffmpeg-libavfilter 6.1.2-r2 apk funty 2.0.0 rust-crate
ffmpeg-libavformat 6.1.2-r2 apk gdbm 1.23-r1 apk
ffmpeg-libavutil 6.1.2-r2 apk getrandom 0.2.9 rust-crate
ffmpeg-libpostproc 6.1.2-r2 apk giflib 5.2.2-r0 apk
ffmpeg-libswresample 6.1.2-r2 apk glib 2.78.6-r0 apk
ffmpeg-libswscale 6.1.2-r2 apk glslang-libs 1.3.261.1-r0 apk
filetype 1.2.0 python graphite2 1.3.14-r6 apk
findutils 4.10.0-r0 apk harfbuzz 8.3.0-r0 apk
flask 3.1.3 python heck 0.4.1 rust-crate
flask-babel 4.0.0 python hwdata-pci 0.377.2-r0 apk
flask-caching 1.11.1 python icu-data-en 74.1-r0 apk
flask-compress 1.23 python icu-libs 74.1-r0 apk
flask-session 0.8.0 python interpolate_name 0.2.3 rust-crate
flask-themes2 1.0.1 python io-lifetimes 1.0.10 rust-crate
flask-wtf 1.2.2 python is-terminal 0.4.7 rust-crate
fontconfig 2.15.0-r3 apk itertools 0.10.5 rust-crate
freetype 2.13.3-r0 apk itsdangerous 2.2.0 python
fribidi 1.0.16-r1 apk ivf 0.1.2 rust-crate
funty 2.0.0 rust-crate jaraco.functools 4.0.1 python
gcompat 1.1.0-r4 apk jq 1.7.1-r0 apk
gdbm 1.24-r0 apk lab 0.11.0 rust-crate
getrandom 0.2.12 rust-crate lame-libs 3.100-r5 apk
giflib 5.2.2-r1 apk lazy_static 1.4.0 rust-crate
glib 2.84.4-r0 apk lcms2 2.15-r4 apk
glslang-libs 1.4.309.0-r0 apk leptonica 1.83.1-r0 apk
graphite2 1.3.14-r6 apk libSvtAv1Enc 1.7.0-r0 apk
gui UNKNOWN binary libacl 2.3.1-r4 apk
gui-32 UNKNOWN binary libass 0.17.1-r1 apk
gui-64 UNKNOWN binary libasyncns 0.8-r2 apk
gui-arm64 UNKNOWN binary libattr 2.5.1-r5 apk
harfbuzz 11.2.1-r0 apk libblkid 2.39.3-r0 apk
heck 0.4.1 rust-crate libbluray 1.3.4-r1 apk
hwdata-pci 0.395-r0 apk libbsd 0.11.7-r3 apk
icu-data-en 76.1-r1 apk libbz2 1.0.8-r6 apk
icu-libs 76.1-r1 apk libc 0.2.144 rust-crate
imath 3.1.12-r0 apk libc 0.2.149 rust-crate
importlib-metadata 8.7.1 python libc-utils 0.7.2-r5 apk
interpolate_name 0.2.4 rust-crate libcrypto3 3.1.5-r0 apk
itertools 0.10.5 rust-crate libcurl 8.5.0-r0 apk
itertools 0.12.0 rust-crate libdav1d 1.3.0-r1 apk
itsdangerous 2.2.0 python libdovi 3.2.0-r1 apk
ivf 0.1.3 rust-crate libdrm 2.4.118-r0 apk
jaraco-context 6.1.0 python libexpat 2.6.2-r0 apk
jaraco-functools 4.4.0 python (+1 duplicate) libffi 3.4.4-r3 apk
jaraco-text 4.0.0 python libflac 1.4.3-r1 apk
jinja2 3.1.6 python libgcc 13.2.1_git20231014-r0 apk
jq 1.8.1-r0 apk libgomp 13.2.1_git20231014-r0 apk
lab 0.11.0 rust-crate libhwy 1.0.7-r0 apk
lame-libs 3.100-r5 apk libidn2 2.3.4-r4 apk
lazy_static 1.4.0 rust-crate libintl 0.22.3-r0 apk
lcms2 2.16-r0 apk libjpeg-turbo 3.0.1-r0 apk
leptonica 1.85.0-r0 apk libjxl 0.8.2-r0 apk
libSvtAv1Enc 2.3.0-r0 apk libltdl 2.4.7-r3 apk
libapk2 2.14.9-r3 apk libmd 1.1.0-r0 apk
libass 0.17.3-r0 apk libmount 2.39.3-r0 apk
libasyncns 0.8-r4 apk libncursesw 6.4_p20231125-r0 apk
libatomic 14.2.0-r6 apk libogg 1.3.5-r5 apk
libattr 2.5.2-r2 apk libopenmpt 0.7.3-r1 apk
libblkid 2.41-r9 apk libpanelw 6.4_p20231125-r0 apk
libbluray 1.3.4-r1 apk libpciaccess 0.17-r2 apk
libbsd 0.12.2-r0 apk libplacebo 6.338.1-r0 apk
libbz2 1.0.8-r6 apk libpng 1.6.40-r0 apk
libc 0.2.155 rust-crate libproc2 4.0.4-r0 apk
libc 0.2.172 rust-crate libpulse 16.1-r11 apk
libcrypto3 3.5.5-r0 apk librist 0.2.10-r0 apk
libcurl 8.14.1-r2 apk libsharpyuv 1.3.2-r0 apk
libdav1d 1.5.1-r0 apk libsndfile 1.2.2-r0 apk
libdeflate 1.23-r0 apk libsodium 1.0.19-r0 apk
libdovi 3.3.1-r1 apk libsrt 1.5.3-r0 apk
libdrm 2.4.124-r0 apk libssh 0.10.6-r0 apk
libeconf 0.6.3-r0 apk libssl3 3.1.5-r0 apk
libexpat 2.7.4-r0 apk libstdc++ 13.2.1_git20231014-r0 apk
libffi 3.4.8-r0 apk libtheora 1.1.1-r18 apk
libflac 1.4.3-r1 apk libunibreak 5.1-r3 apk
libgcc 14.2.0-r6 apk libunistring 1.1-r2 apk
libgomp 14.2.0-r6 apk libva 2.20.0-r0 apk
libhwy 1.0.7-r1 apk libvdpau 1.5-r2 apk
libidn2 2.3.7-r0 apk libvorbis 1.3.7-r2 apk
libintl 0.24.1-r0 apk libvpx 1.13.1-r0 apk
libjpeg-turbo 3.1.0-r0 apk libwebp 1.3.2-r0 apk
libjxl 0.10.3-r2 apk libwebpmux 1.3.2-r0 apk
libltdl 2.5.4-r1 apk libx11 1.8.7-r0 apk
libmd 1.1.0-r0 apk libxau 1.0.11-r3 apk
libmount 2.41-r9 apk libxcb 1.16-r0 apk
libncursesw 6.5_p20250503-r0 apk libxdmcp 1.1.4-r3 apk
libogg 1.3.5-r5 apk libxext 1.3.5-r3 apk
libopenmpt 0.7.15-r0 apk libxfixes 6.0.1-r3 apk
libpanelw 6.5_p20250503-r0 apk libxft 2.3.8-r2 apk
libpciaccess 0.18.1-r0 apk libxml2 2.11.8-r0 apk
libplacebo 6.338.2-r3 apk libxrender 0.9.11-r4 apk
libpng 1.6.55-r0 apk libzmq 4.3.5-r2 apk
libproc2 4.0.4-r3 apk lilv-libs 0.24.22-r0 apk
libpsl 0.21.5-r3 apk linux-pam 1.5.3-r7 apk
libpulse 17.0-r5 apk linux-raw-sys 0.3.7 rust-crate
librist 0.2.10-r1 apk log 0.4.17 rust-crate
libsharpyuv 1.5.0-r0 apk maybe-rayon 0.1.1 rust-crate
libsndfile 1.2.2-r2 apk mbedtls 2.28.8-r0 apk
libsodium 1.0.20-r1 apk memchr 2.5.0 rust-crate
libsrt 1.5.3-r1 apk memoffset 0.8.0 rust-crate
libssh 0.11.2-r0 apk minimal-lexical 0.2.1 rust-crate
libssl3 3.5.5-r0 apk more-itertools 10.3.0 python
libstdc++ 14.2.0-r6 apk mpdecimal 2.5.1-r2 apk
libtheora 1.1.1-r18 apk mpg123-libs 1.32.3-r0 apk
libucontext 1.3.2-r0 apk msgspec 0.18.6 python
libunibreak 6.1-r0 apk musl 1.2.4_git20230717-r4 apk
libunistring 1.3-r0 apk musl-utils 1.2.4_git20230717-r4 apk
libva 2.22.0-r1 apk ncurses-terminfo-base 6.4_p20231125-r0 apk
libvdpau 1.5-r4 apk netcat-openbsd 1.226-r0 apk
libvorbis 1.3.7-r2 apk new_debug_unreachable 1.0.4 rust-crate
libvpx 1.15.0-r0 apk nghttp2-libs 1.58.0-r0 apk
libwebp 1.5.0-r0 apk nom 7.1.3 rust-crate
libwebpmux 1.5.0-r0 apk noop_proc_macro 0.3.0 rust-crate
libx11 1.8.11-r0 apk num-bigint 0.4.3 rust-crate
libxau 1.0.12-r0 apk num-derive 0.3.3 rust-crate
libxcb 1.17.0-r0 apk num-integer 0.1.45 rust-crate
libxdmcp 1.1.5-r1 apk num-rational 0.4.1 rust-crate
libxext 1.3.6-r2 apk num-traits 0.2.15 rust-crate
libxfixes 6.0.1-r4 apk num_cpus 1.15.0 rust-crate
libxft 2.3.8-r3 apk numactl 2.0.16-r4 apk
libxml2 2.13.9-r0 apk once_cell 1.17.1 rust-crate
libxrender 0.9.12-r0 apk onevpl-libs 2023.3.1-r2 apk
libzmq 4.3.5-r2 apk oniguruma 6.9.9-r0 apk
lilv-libs 0.24.26-r0 apk opus 1.4-r0 apk
linux-pam 1.7.0-r4 apk orc 0.4.34-r0 apk
linux-raw-sys 0.4.12 rust-crate os_str_bytes 6.5.0 rust-crate
log 0.4.20 rust-crate pango 1.51.0-r0 apk
markupsafe 3.0.3 python paste 1.0.12 rust-crate
maybe-rayon 0.1.1 rust-crate pcre2 10.42-r2 apk
mbedtls 3.6.5-r0 apk pip 24.1 python
memchr 2.7.1 rust-crate pixman 0.42.2-r2 apk
mini-racer 0.14.1 python ppv-lite86 0.2.17 rust-crate
minimal-lexical 0.2.1 rust-crate proc-macro-error 1.0.4 rust-crate
more-itertools 10.8.0 python (+1 duplicate) proc-macro-error-attr 1.0.4 rust-crate
mpdecimal 4.0.1-r0 apk proc-macro2 1.0.57 rust-crate
mpg123-libs 1.32.10-r0 apk procps-ng 4.0.4-r0 apk
msgspec 0.20.0 python pyc 3.11.9-r0 apk
musl 1.2.5-r10 apk pycparser 2.22 python
musl-obstack 1.2.3-r2 apk pycurl 7.45.3 python
musl-utils 1.2.5-r10 apk pyjsparser 2.7.1 python
ncurses-terminfo-base 6.5_p20250503-r0 apk pyload-ng 0.5.0b3 python
netcat-openbsd 1.229.1-r0 apk python3 3.11.9-r0 apk
new_debug_unreachable 1.0.4 rust-crate python3-pyc 3.11.9-r0 apk
nghttp2-libs 1.65.0-r0 apk python3-pycache-pyc0 3.11.9-r0 apk
nom 7.1.3 rust-crate pytz 2024.1 python
noop_proc_macro 0.3.0 rust-crate quote 1.0.27 rust-crate
num-bigint 0.4.4 rust-crate radium 0.7.0 rust-crate
num-derive 0.4.1 rust-crate rand 0.8.5 rust-crate
num-integer 0.1.45 rust-crate rand_chacha 0.3.1 rust-crate
num-rational 0.4.1 rust-crate rand_core 0.6.4 rust-crate
num-traits 0.2.17 rust-crate rav1e 0.6.6 rust-crate
numactl 2.0.18-r0 apk rav1e-libs 0.6.6-r2 apk
once_cell 1.19.0 rust-crate rayon 1.7.0 rust-crate
onevpl-libs 2023.3.1-r2 apk rayon-core 1.11.0 rust-crate
oniguruma 6.9.10-r0 apk readline 8.2.1-r2 apk
openexr-libiex 3.3.2-r0 apk rust_hawktracer 0.7.0 rust-crate
openexr-libilmthread 3.3.2-r0 apk rust_hawktracer_normal_macro 0.4.1 rust-crate
openexr-libopenexr 3.3.2-r0 apk rust_hawktracer_proc_macro 0.4.1 rust-crate
openexr-libopenexrcore 3.3.2-r0 apk rustix 0.37.19 rust-crate
opus 1.5.2-r1 apk scan_fmt 0.2.6 rust-crate
orc 0.4.40-r1 apk scanelf 1.3.7-r2 apk
packaging 26.0 python (+1 duplicate) scopeguard 1.1.0 rust-crate
pango 1.56.3-r0 apk sdl2 2.28.5-r0 apk
paste 1.0.14 rust-crate semver 2.13.0 python
pcre2 10.46-r0 apk serd-libs 0.32.0-r0 apk
pillow 12.1.1 python serde 1.0.163 rust-crate
pip 26.0.1 python serde_derive 1.0.163 rust-crate
pixman 0.46.4-r0 apk setuptools 65.5.0 python
platformdirs 4.4.0 python shaderc 2023.7-r0 apk
ppv-lite86 0.2.17 rust-crate shadow 4.14.2-r0 apk
proc-macro2 1.0.76 rust-crate signal-hook 0.3.15 rust-crate
procps-ng 4.0.4-r3 apk signal-hook-registry 1.4.1 rust-crate
profiling 1.0.13 rust-crate simd_helpers 0.1.0 rust-crate
profiling-procmacros 1.0.13 rust-crate six 1.16.0 python
pyasn1 0.6.2 python skalibs 2.14.0.1-r0 apk
pyasn1-modules 0.4.2 python sord-libs 0.16.16-r0 apk
pyc 3.12.12-r0 apk soxr 0.1.3-r7 apk
pycares 5.0.1 python speexdsp 1.2.1-r2 apk
pycparser 3.0 python spirv-tools 1.3.261.1-r0 apk
pycurl 7.45.7 python sqlite 3.44.2-r0 apk
pydantic 2.12.5 python sqlite-libs 3.44.2-r0 apk
pydantic-core 2.41.5 python sratom 0.6.16-r0 apk
pyload-ng 0.5.0b3.dev96 python ssl_client 1.36.1-r19 apk
pyopenssl 25.3.0 python syn 1.0.109 rust-crate
python3 3.12.12-r0 apk syn 2.0.16 rust-crate
python3-pyc 3.12.12-r0 apk tap 1.0.1 rust-crate
python3-pycache-pyc0 3.12.12-r0 apk tdb-libs 1.4.9-r0 apk
pytz 2026.1.post1 python termcolor 1.2.0 rust-crate
quote 1.0.35 rust-crate terminal_size 0.2.6 rust-crate
radium 0.7.0 rust-crate tesseract-ocr 5.3.3-r1 apk
rand 0.8.5 rust-crate thiserror 1.0.40 rust-crate
rand_chacha 0.3.1 rust-crate thiserror-impl 1.0.40 rust-crate
rand_core 0.6.4 rust-crate tiff 4.6.0-r0 apk
rav1e 0.7.1 rust-crate tzdata 2024a-r0 apk
rav1e-libs 0.7.1-r2 apk tzlocal 5.2 python
rayon 1.8.0 rust-crate unicode-ident 1.0.8 rust-crate
rayon-core 1.12.0 rust-crate unicode-width 0.1.10 rust-crate
readline 8.2.13-r1 apk utmps-libs 0.1.2.2-r0 apk
rustix 0.38.28 rust-crate v4l-utils-libs 1.24.1-r1 apk
scan_fmt 0.2.6 rust-crate v_frame 0.3.3 rust-crate
scanelf 1.3.8-r1 apk vidstab 1.1.1-r0 apk
sdl2-compat 2.32.56-r0 apk vulkan-loader 1.3.261.1-r0 apk
sdl3 3.2.16-r0 apk wayland-libs-client 1.22.0-r4 apk
semver 2.13.0 python wheel 0.43.0 python
send2trash 2.1.0 python wyz 0.5.1 rust-crate
serd-libs 0.32.4-r0 apk x264-libs 0.164_git20231001-r0 apk
setuptools 82.0.0 python x265-libs 3.5-r4 apk
shaderc 2024.4-r0 apk xvidcore 1.3.7-r2 apk
shadow 4.17.3-r0 apk xz-libs 5.4.5-r0 apk
signal-hook 0.3.17 rust-crate y4m 0.8.0 rust-crate
signal-hook-registry 1.4.1 rust-crate zimg 3.0.5-r2 apk
simd_helpers 0.1.0 rust-crate zix-libs 0.4.2-r0 apk
skalibs-libs 2.14.4.0-r0 apk zlib 1.3.1-r0 apk
slixmpp 1.13.2 python zstandard 0.22.0 python
sord-libs 0.16.18-r0 apk zstd-libs 1.5.5-r8 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

View File

@ -3,32 +3,41 @@
# project information # project information
project_name: pyload-ng project_name: pyload-ng
project_url: "https://pyload.net/" project_url: "https://pyload.net/"
project_logo: "https://github.com/linuxserver/docker-templates/raw/master/linuxserver.io/img/pyload-logo.png" project_logo: "https://pyload.net/img/banner.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"}
- {arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"} - { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
# development version # development version
development_versions: true development_versions: true
development_versions_items: development_versions_items:
- {tag: "latest", desc: "Stable releases from pyLoad Next"} - { tag: "latest", desc: "Stable releases from pyLoad Next" }
- {tag: "develop", desc: "Releases from pyload Next develop branch"} - { tag: "develop", desc: "Releases from pyload Next develop branch" }
# container parameters # container parameters
param_container_name: "{{ project_name }}" param_container_name: "{{ project_name }}"
param_usage_include_vols: true param_usage_include_vols: true
param_volumes: param_volumes:
- {vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Persistent config files"} - { vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Persistent config files" }
- {vol_path: "/downloads", vol_host_path: "/path/to/downloads", desc: "Destination of pyLoad downloads"} - { vol_path: "/downloads", vol_host_path: "/path/to/downloads", desc: "Destination of pyLoad downloads" }
param_usage_include_ports: true param_usage_include_ports: true
param_ports: param_ports:
- {external_port: "8000", internal_port: "8000", port_desc: "Allows HTTP access to the application"} - { external_port: "8000", internal_port: "8000", port_desc: "Allows HTTP access to the application" }
param_usage_include_env: true
param_env_vars:
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London"}
# optional params # optional params
opt_param_usage_include_ports: true opt_param_usage_include_ports: true
opt_param_ports: opt_param_ports:
- {external_port: "9666", internal_port: "9666", port_desc: "Click'n'Load port."} - { external_port: "9666", internal_port: "9666", port_desc: "Click'n'Load port." }
# application setup block # application setup block
app_setup_block_enabled: true app_setup_block_enabled: true
app_setup_block: | app_setup_block: |
@ -37,60 +46,15 @@ app_setup_block: |
password - **pyload** password - **pyload**
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: |
"pyload-ng:latest": {
docker-mods
base {
fix-attr +\nlegacy cont-init
}
docker-mods -> base
legacy-services
custom services
init-services -> legacy-services
init-services -> custom services
custom services -> legacy-services
legacy-services -> ci-service-check
init-migrations -> init-adduser
init-os-end -> init-config
init-config -> init-config-end
init-crontab-config -> init-config-end
init-pyload-config -> init-config-end
init-config -> init-crontab-config
init-mods-end -> init-custom-files
init-adduser -> init-device-perms
base -> init-envfile
base -> init-migrations
init-config-end -> init-mods
init-mods-package-install -> init-mods-end
init-mods -> init-mods-package-install
init-adduser -> init-os-end
init-device-perms -> init-os-end
init-envfile -> init-os-end
init-config -> init-pyload-config
init-custom-files -> init-services
init-services -> svc-cron
svc-cron -> legacy-services
init-services -> svc-pyload
svc-pyload -> legacy-services
}
Base Images: {
"baseimage-alpine:3.22"
}
"pyload-ng:latest" <- Base Images
# changelog # changelog
changelogs: changelogs:
- {date: "09.01.26:", desc: "Add gcompat for mini-racer."} - { date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
- {date: "01.09.25:", desc: "Add new dep, libatomic."} - { date: "08.10.23:", desc: "Install unrar from [linuxserver repo](https://github.com/linuxserver/docker-unrar)."}
- {date: "09.06.25:", desc: "Rebase to Alpine 3.22."} - { date: "10.08.23:", desc: "Bump unrar to 6.2.10."}
- {date: "20.07.24:", desc: "Revert to Alpine 3.19 due to inconsistent upstream addon support for Python 3.12."} - { date: "01.06.23:", desc: "Replace p7zip with 7zip, add unrar." }
- {date: "27.06.24:", desc: "Rebase to Alpine 3.20."} - { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
- {date: "23.12.23:", desc: "Rebase to Alpine 3.19."} - { date: "02.02.22:", desc: "Rebase develop to alpine 3.17." }
- {date: "08.10.23:", desc: "Install unrar from [linuxserver repo](https://github.com/linuxserver/docker-unrar)."} - { date: "02.02.22:", desc: "Add ffmpeg for the Youtube plugin." }
- {date: "10.08.23:", desc: "Bump unrar to 6.2.10."} - { date: "24.01.22:", desc: "Replace unrar with p7zip." }
- {date: "01.06.23:", desc: "Replace p7zip with 7zip, add unrar."} - { date: "24.01.22:", desc: "Initial release." }
- {date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf."}
- {date: "02.02.22:", desc: "Rebase master to alpine 3.17."}
- {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: "Initial release."}

View File

@ -3,8 +3,6 @@
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