mirror of
https://github.com/linuxserver/docker-overseerr.git
synced 2026-02-23 00:00:48 +08:00
Compare commits
255 Commits
develop-d9
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68de619560 | ||
|
|
6a1ead70d3 | ||
|
|
e7c5554f80 | ||
|
|
7a484fe8ec | ||
|
|
bb94371eb6 | ||
|
|
254179f690 | ||
|
|
5a75c15c14 | ||
|
|
22a323dd02 | ||
|
|
ca41273c66 | ||
|
|
6281112d1b | ||
|
|
6ca1e80d7d | ||
|
|
a4d0f3a4cb | ||
|
|
4b582b77b1 | ||
|
|
e0f836233a | ||
|
|
117d7e5b55 | ||
|
|
d003875f55 | ||
|
|
a863780cf2 | ||
|
|
c8e2dc366e | ||
|
|
7b5f22657c | ||
|
|
8eaab90184 | ||
|
|
c8f79bded5 | ||
|
|
651e4ec3ff | ||
|
|
bafce8e982 | ||
|
|
70b0d77d90 | ||
|
|
c007bf64d4 | ||
|
|
180921e645 | ||
|
|
0ca7efd784 | ||
|
|
4c89d7049f | ||
|
|
88f5186ced | ||
|
|
ca82f583a3 | ||
|
|
8594a9686a | ||
|
|
e06ef77c38 | ||
|
|
4eb99449aa | ||
|
|
e49a58b772 | ||
|
|
61c168a3c2 | ||
|
|
540532e7a6 | ||
|
|
1302858156 | ||
|
|
96f19d6d8f | ||
|
|
556a09a7cc | ||
|
|
f4f409472e | ||
|
|
78951ad5f1 | ||
|
|
f88ccaa79b | ||
|
|
f82abe02d5 | ||
|
|
28b6ff9bc1 | ||
|
|
02c010cbed | ||
|
|
8113d4efe2 | ||
|
|
534a304a87 | ||
|
|
9f6a53a1b4 | ||
|
|
3d296d01bf | ||
|
|
264c6d6c82 | ||
|
|
6990950e39 | ||
|
|
4ccb2e6e74 | ||
|
|
711ecdcac9 | ||
|
|
5079aa6770 | ||
|
|
9008f17505 | ||
|
|
f65b577156 | ||
|
|
727b44c1d3 | ||
|
|
0d6f07ddf2 | ||
|
|
b81e056670 | ||
|
|
a284380db3 | ||
|
|
05e0ccef80 | ||
|
|
cea6ac0688 | ||
|
|
598de9465c | ||
|
|
cb2a758651 | ||
|
|
517a0ec6c4 | ||
|
|
8ec95fe5ca | ||
|
|
0bca8ea888 | ||
|
|
ad16fff1bf | ||
|
|
101eb8d443 | ||
|
|
a219bfbde9 | ||
|
|
313f0a8f29 | ||
|
|
eab1500c45 | ||
|
|
5b00938e59 | ||
|
|
dc9aee94c9 | ||
|
|
cd719a9e97 | ||
|
|
2b25c67a03 | ||
|
|
915ca9156b | ||
|
|
ce20985e1d | ||
|
|
ada570b0f8 | ||
|
|
130ed7b891 | ||
|
|
8f80f72f80 | ||
|
|
d96d868755 | ||
|
|
92925bc98f | ||
|
|
4c09cec22d | ||
|
|
68582f21fa | ||
|
|
a7ccefb11b | ||
|
|
2a4c13beb0 | ||
|
|
875086edcc | ||
|
|
935f624d73 | ||
|
|
70dd6f0566 | ||
|
|
fbb60185da | ||
|
|
81ca3cd74a | ||
|
|
b62e27b78c | ||
|
|
f881b804b8 | ||
|
|
be92b38cb8 | ||
|
|
a0212dbfc7 | ||
|
|
234f4c9179 | ||
|
|
c0f6088305 | ||
|
|
b315aa4d1d | ||
|
|
745c783ef9 | ||
|
|
eb80ff064d | ||
|
|
53b74d659d | ||
|
|
f7196ea238 | ||
|
|
54b4f775d3 | ||
|
|
141d9cce20 | ||
|
|
daeb30825c | ||
|
|
247a65903b | ||
|
|
58d7fa56c6 | ||
|
|
4bd1887967 | ||
|
|
fe87b54fc4 | ||
|
|
22f6eb60b0 | ||
|
|
9432bbcddf | ||
|
|
379018a0d6 | ||
|
|
96873b7d4d | ||
|
|
a2141d77ca | ||
|
|
d987fbc716 | ||
|
|
d6a2366673 | ||
|
|
ae648775b2 | ||
|
|
b308484b38 | ||
|
|
39b124322b | ||
|
|
74c8d6fa6c | ||
|
|
17175a06f7 | ||
|
|
8c1b700c19 | ||
|
|
4d081c2808 | ||
|
|
257d9a27f0 | ||
|
|
7af01a68a3 | ||
|
|
eb61a86b69 | ||
|
|
b80db8824a | ||
|
|
005169a2ae | ||
|
|
63d6ab6d52 | ||
|
|
bd84d0881b | ||
|
|
4873b6fef2 | ||
|
|
b4e00bae24 | ||
|
|
5dca4866e9 | ||
|
|
013375da94 | ||
|
|
9f42d49b8c | ||
|
|
da14e3dd24 | ||
|
|
aa58e48a50 | ||
|
|
83b7cd283e | ||
|
|
dffde4dfc2 | ||
|
|
9d97e72114 | ||
|
|
5175015c2a | ||
|
|
bd0bf533d5 | ||
|
|
9461c5f33e | ||
|
|
6bbe46febc | ||
|
|
21432c5108 | ||
|
|
0294f7033c | ||
|
|
0bc69f1868 | ||
|
|
7119d95087 | ||
|
|
46f3281727 | ||
|
|
53bc58a8c8 | ||
|
|
232d52ca14 | ||
|
|
52c91c5b8c | ||
|
|
92a11c46d7 | ||
|
|
5143407611 | ||
|
|
3683ca750b | ||
|
|
41afdf880a | ||
|
|
d5f4faab61 | ||
|
|
68f4fd43f1 | ||
|
|
27525f2634 | ||
|
|
750844a576 | ||
|
|
d0e0668d7e | ||
|
|
1ab3b9344e | ||
|
|
89321affa9 | ||
|
|
092d8fbfe9 | ||
|
|
3e5c97d65a | ||
|
|
6fad30fecf | ||
|
|
b32c957732 | ||
|
|
8e73854827 | ||
|
|
b877e1ccbc | ||
|
|
6db76001da | ||
|
|
f2fb803357 | ||
|
|
866fbc6c89 | ||
|
|
d6bccb27ae | ||
|
|
a7db864116 | ||
|
|
756adf576d | ||
|
|
1dd5d0c4a4 | ||
|
|
e8371e669b | ||
|
|
56e47be951 | ||
|
|
3866070382 | ||
|
|
b195032e05 | ||
|
|
470783f441 | ||
|
|
4f8a269d73 | ||
|
|
6279389d80 | ||
|
|
c9024cf5b4 | ||
|
|
d068aaad66 | ||
|
|
6fffd7957b | ||
|
|
8bbe97ca99 | ||
|
|
c1d5cda88e | ||
|
|
2913dbf6f8 | ||
|
|
5222c98df8 | ||
|
|
a643019004 | ||
|
|
35a533bab3 | ||
|
|
7bb776d3ab | ||
|
|
7ffe72b3a5 | ||
|
|
b6b06a2575 | ||
|
|
f5dc33eab3 | ||
|
|
881be6d3ab | ||
|
|
1d31ebfb46 | ||
|
|
7223755ebc | ||
|
|
19937636d7 | ||
|
|
feb056fd23 | ||
|
|
8c12fdc5d0 | ||
|
|
2988034cfd | ||
|
|
16bb608c9c | ||
|
|
86426e0629 | ||
|
|
9419956867 | ||
|
|
1b431d1dee | ||
|
|
818159d246 | ||
|
|
d2652111e6 | ||
|
|
ef1d1e0696 | ||
|
|
fe638cf552 | ||
|
|
527968dd98 | ||
|
|
3d219cb9fe | ||
|
|
4db8a63829 | ||
|
|
925e5e7160 | ||
|
|
f19e92aba0 | ||
|
|
98fbdab81c | ||
|
|
e52d435f87 | ||
|
|
71925eb5e9 | ||
|
|
75c6915bcb | ||
|
|
e599b708f0 | ||
|
|
2d3bc2127e | ||
|
|
c6dc93406e | ||
|
|
25f1aaf439 | ||
|
|
a5f52886e6 | ||
|
|
7ba361c7de | ||
|
|
93ab28eb17 | ||
|
|
fff728f7c8 | ||
|
|
04f54eea27 | ||
|
|
1c067ffde8 | ||
|
|
82f37fd226 | ||
|
|
d1c79bc8a4 | ||
|
|
cca6c53a67 | ||
|
|
900922dc67 | ||
|
|
f47070cf50 | ||
|
|
b8f0efd5cc | ||
|
|
053af7fa88 | ||
|
|
93c4c404eb | ||
|
|
19026d377c | ||
|
|
3ac957295f | ||
|
|
a6f179a245 | ||
|
|
bda970046c | ||
|
|
c19c6d5566 | ||
|
|
5e8e98819c | ||
|
|
b5e1b5ab3d | ||
|
|
9662a57867 | ||
|
|
b409fe414f | ||
|
|
eaaca91006 | ||
|
|
cb9789c58c | ||
|
|
940cb4a730 | ||
|
|
07620f83b2 | ||
|
|
330fbcbe31 | ||
|
|
1a6d368fc7 | ||
|
|
724490f9fe |
20
.editorconfig
Normal file
20
.editorconfig
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# This file is globally distributed to all container image projects from
|
||||||
|
# https://github.com/linuxserver/docker-jenkins-builder/blob/master/.editorconfig
|
||||||
|
|
||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# Unix-style newlines with a newline ending every file
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
# trim_trailing_whitespace may cause unintended issues and should not be globally set true
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
[{Dockerfile*,**.yml}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[{**.sh,root/etc/s6-overlay/s6-rc.d/**,root/etc/cont-init.d/**,root/etc/services.d/**}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
19
.github/CONTRIBUTING.md
vendored
19
.github/CONTRIBUTING.md
vendored
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
* While contributing make sure to make all your changes before creating a Pull Request, as our pipeline builds each commit after the PR is open.
|
* While contributing make sure to make all your changes before creating a Pull Request, as our pipeline builds each commit after the PR is open.
|
||||||
* Read, and fill the Pull Request template
|
* Read, and fill the Pull Request template
|
||||||
* If this is a fix for a typo in code or documentation in the README please file an issue
|
* If this is a fix for a typo (in code, documentation, or the README) please file an issue and let us sort it out. We do not need a PR
|
||||||
* If the PR is addressing an existing issue include, closes #\<issue number>, in the body of the PR commit message
|
* If the PR is addressing an existing issue include, closes #\<issue number>, in the body of the PR commit message
|
||||||
* If you want to discuss changes, you can also bring it up in [#dev-talk](https://discordapp.com/channels/354974912613449730/757585807061155840) in our [Discord server](https://discord.gg/YWrKVTn)
|
* If you want to discuss changes, you can also bring it up in [#dev-talk](https://discordapp.com/channels/354974912613449730/757585807061155840) in our [Discord server](https://linuxserver.io/discord)
|
||||||
|
|
||||||
## Common files
|
## Common files
|
||||||
|
|
||||||
@ -24,7 +24,7 @@
|
|||||||
## Readme
|
## Readme
|
||||||
|
|
||||||
If you would like to change our readme, please __**do not**__ directly edit the readme, as it is auto-generated on each commit.
|
If you would like to change our readme, please __**do not**__ directly edit the readme, as it is auto-generated on each commit.
|
||||||
Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-overseerr/edit/master/readme-vars.yml).
|
Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-overseerr/edit/main/readme-vars.yml).
|
||||||
|
|
||||||
These variables are used in a template for our [Jenkins Builder](https://github.com/linuxserver/docker-jenkins-builder) as part of an ansible play.
|
These variables are used in a template for our [Jenkins Builder](https://github.com/linuxserver/docker-jenkins-builder) as part of an ansible play.
|
||||||
Most of these variables are also carried over to [docs.linuxserver.io](https://docs.linuxserver.io/images/docker-overseerr)
|
Most of these variables are also carried over to [docs.linuxserver.io](https://docs.linuxserver.io/images/docker-overseerr)
|
||||||
@ -96,7 +96,7 @@ If you are proposing additional packages to be added, ensure that you added the
|
|||||||
|
|
||||||
### Testing your changes
|
### Testing your changes
|
||||||
|
|
||||||
```
|
```bash
|
||||||
git clone https://github.com/linuxserver/docker-overseerr.git
|
git clone https://github.com/linuxserver/docker-overseerr.git
|
||||||
cd docker-overseerr
|
cd docker-overseerr
|
||||||
docker build \
|
docker build \
|
||||||
@ -105,16 +105,17 @@ docker build \
|
|||||||
-t linuxserver/overseerr:latest .
|
-t linuxserver/overseerr:latest .
|
||||||
```
|
```
|
||||||
|
|
||||||
The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static`
|
The ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static`
|
||||||
```
|
|
||||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
```bash
|
||||||
|
docker run --rm --privileged lscr.io/linuxserver/qemu-static --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 chagelog
|
## Update the changelog
|
||||||
|
|
||||||
If you are modifying the Dockerfiles or any of the startup scripts in [root](https://github.com/linuxserver/docker-overseerr/tree/master/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-overseerr/tree/main/root), add an entry to the changelog
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
changelogs:
|
changelogs:
|
||||||
|
|||||||
2
.github/ISSUE_TEMPLATE/config.yml
vendored
2
.github/ISSUE_TEMPLATE/config.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
blank_issues_enabled: false
|
blank_issues_enabled: false
|
||||||
contact_links:
|
contact_links:
|
||||||
- name: Discord chat support
|
- name: Discord chat support
|
||||||
url: https://discord.gg/YWrKVTn
|
url: https://linuxserver.io/discord
|
||||||
about: Realtime support / chat with the community and the team.
|
about: Realtime support / chat with the community and the team.
|
||||||
|
|
||||||
- name: Discourse discussion forum
|
- name: Discourse discussion forum
|
||||||
|
|||||||
40
.github/ISSUE_TEMPLATE/issue.bug.md
vendored
40
.github/ISSUE_TEMPLATE/issue.bug.md
vendored
@ -1,40 +0,0 @@
|
|||||||
---
|
|
||||||
name: Bug report
|
|
||||||
about: Create a report to help us improve
|
|
||||||
|
|
||||||
---
|
|
||||||
[linuxserverurl]: https://linuxserver.io
|
|
||||||
[][linuxserverurl]
|
|
||||||
|
|
||||||
<!--- If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support. --->
|
|
||||||
|
|
||||||
<!--- Provide a general summary of the bug in the Title above -->
|
|
||||||
|
|
||||||
------------------------------
|
|
||||||
|
|
||||||
## Expected Behavior
|
|
||||||
<!--- Tell us what should happen -->
|
|
||||||
|
|
||||||
## Current Behavior
|
|
||||||
<!--- Tell us what happens instead of the expected behavior -->
|
|
||||||
|
|
||||||
## Steps to Reproduce
|
|
||||||
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
|
|
||||||
<!--- reproduce this bug. Include code to reproduce, if relevant -->
|
|
||||||
1.
|
|
||||||
2.
|
|
||||||
3.
|
|
||||||
4.
|
|
||||||
|
|
||||||
## Environment
|
|
||||||
**OS:**
|
|
||||||
**CPU architecture:** x86_64/arm32/arm64
|
|
||||||
**How docker service was installed:**
|
|
||||||
<!--- ie. from the official docker repo, from the distro repo, nas OS provided, etc. -->
|
|
||||||
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
|
|
||||||
|
|
||||||
## Command used to create docker container (run/create/compose/screenshot)
|
|
||||||
<!--- Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container -->
|
|
||||||
|
|
||||||
## Docker logs
|
|
||||||
<!--- Provide a full docker log, output of "docker logs overseerr" -->
|
|
||||||
14
.github/ISSUE_TEMPLATE/issue.bug.yml
vendored
Normal file
14
.github/ISSUE_TEMPLATE/issue.bug.yml
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Based on the issue template
|
||||||
|
name: Bug report
|
||||||
|
description: Create a report to help us improve
|
||||||
|
title: "[BUG] <title>"
|
||||||
|
labels: [Bug]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
# DEPRECATION NOTICE
|
||||||
|
This image is deprecated. We will not offer support for this image and it will not be updated.
|
||||||
|
|
||||||
|
|
||||||
|
Overseerr has now merged with Jellyseerr, we recommend migrating to the official Seerr image: https://github.com/seerr-team/seerr
|
||||||
25
.github/ISSUE_TEMPLATE/issue.feature.md
vendored
25
.github/ISSUE_TEMPLATE/issue.feature.md
vendored
@ -1,25 +0,0 @@
|
|||||||
---
|
|
||||||
name: Feature request
|
|
||||||
about: Suggest an idea for this project
|
|
||||||
|
|
||||||
---
|
|
||||||
[linuxserverurl]: https://linuxserver.io
|
|
||||||
[][linuxserverurl]
|
|
||||||
|
|
||||||
<!--- If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support. --->
|
|
||||||
|
|
||||||
<!--- If this acts as a feature request please ask yourself if this modification is something the whole userbase will benefit from --->
|
|
||||||
<!--- If this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->
|
|
||||||
|
|
||||||
<!--- Provide a general summary of the request in the Title above -->
|
|
||||||
|
|
||||||
------------------------------
|
|
||||||
|
|
||||||
## Desired Behavior
|
|
||||||
<!--- Tell us what should happen -->
|
|
||||||
|
|
||||||
## Current Behavior
|
|
||||||
<!--- Tell us what happens instead of the expected behavior -->
|
|
||||||
|
|
||||||
## Alternatives Considered
|
|
||||||
<!--- Tell us what other options you have tried or considered -->
|
|
||||||
14
.github/ISSUE_TEMPLATE/issue.feature.yml
vendored
Normal file
14
.github/ISSUE_TEMPLATE/issue.feature.yml
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Based on the issue template
|
||||||
|
name: Feature request
|
||||||
|
description: Suggest an idea for this project
|
||||||
|
title: "[FEAT] <title>"
|
||||||
|
labels: [enhancement]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
# DEPRECATION NOTICE
|
||||||
|
This image is deprecated. We will not offer support for this image and it will not be updated.
|
||||||
|
|
||||||
|
|
||||||
|
Overseerr has now merged with Jellyseerr, we recommend migrating to the official Seerr image: https://github.com/seerr-team/seerr
|
||||||
9
.github/PULL_REQUEST_TEMPLATE.md
vendored
9
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -1,3 +1,8 @@
|
|||||||
|
# DEPRECATION NOTICE
|
||||||
|
This image is deprecated. We will not offer support for this image and it will not be updated.
|
||||||
|
|
||||||
|
|
||||||
|
Overseerr has now merged with Jellyseerr, we recommend migrating to the official Seerr image: https://github.com/seerr-team/seerr
|
||||||
<!--- Provide a general summary of your changes in the Title above -->
|
<!--- Provide a general summary of your changes in the Title above -->
|
||||||
|
|
||||||
[linuxserverurl]: https://linuxserver.io
|
[linuxserverurl]: https://linuxserver.io
|
||||||
@ -6,7 +11,7 @@
|
|||||||
|
|
||||||
<!--- Before submitting a pull request please check the following -->
|
<!--- Before submitting a pull request please check the following -->
|
||||||
|
|
||||||
<!--- If this is a fix for a typo in code or documentation in 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 -->
|
||||||
<!--- Ask yourself if this modification is something the whole userbase will benefit from, if this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->
|
<!--- Ask yourself if this modification is something the whole userbase will benefit from, if this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->
|
||||||
<!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message -->
|
<!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message -->
|
||||||
<!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
|
<!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
|
||||||
@ -21,7 +26,7 @@
|
|||||||
|
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
- [ ] I have read the [contributing](https://github.com/linuxserver/docker-overseerr/blob/master/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
|
- [ ] I have read the [contributing](https://github.com/linuxserver/docker-overseerr/blob/main/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
|
||||||
|
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
|
|||||||
92
.github/workflows/external_trigger.yml
vendored
92
.github/workflows/external_trigger.yml
vendored
@ -1,92 +0,0 @@
|
|||||||
name: External Trigger Main
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
external-trigger-main:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2.3.3
|
|
||||||
|
|
||||||
- name: External Trigger
|
|
||||||
if: github.ref == 'refs/heads/main'
|
|
||||||
run: |
|
|
||||||
if [ -n "${{ secrets.PAUSE_EXTERNAL_TRIGGER_OVERSEERR_MAIN }}" ]; then
|
|
||||||
echo "**** Github secret PAUSE_EXTERNAL_TRIGGER_OVERSEERR_MAIN is set; skipping trigger. ****"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
echo "**** External trigger running off of main branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_OVERSEERR_MAIN\". ****"
|
|
||||||
echo "**** Retrieving external version ****"
|
|
||||||
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/sct/overseerr/releases/latest" | jq -r '. | .tag_name')
|
|
||||||
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
|
|
||||||
echo "**** Can't retrieve external version, exiting ****"
|
|
||||||
FAILURE_REASON="Can't retrieve external version for overseerr branch main"
|
|
||||||
GHA_TRIGGER_URL="https://github.com/linuxserver/docker-overseerr/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,
|
|
||||||
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n**Trigger URL:** '"${GHA_TRIGGER_URL}"' \n"}],
|
|
||||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
EXT_RELEASE=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
|
|
||||||
echo "**** External version: ${EXT_RELEASE} ****"
|
|
||||||
echo "**** Retrieving last pushed version ****"
|
|
||||||
image="linuxserver/overseerr"
|
|
||||||
tag="latest"
|
|
||||||
token=$(curl -sX GET \
|
|
||||||
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Foverseerr%3Apull" \
|
|
||||||
| jq -r '.token')
|
|
||||||
multidigest=$(curl -s \
|
|
||||||
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
|
|
||||||
--header "Authorization: Bearer ${token}" \
|
|
||||||
"https://ghcr.io/v2/${image}/manifests/${tag}" \
|
|
||||||
| jq -r 'first(.manifests[].digest)')
|
|
||||||
digest=$(curl -s \
|
|
||||||
--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 \
|
|
||||||
--header "Authorization: Bearer ${token}" \
|
|
||||||
"https://ghcr.io/v2/${image}/blobs/${digest}" \
|
|
||||||
| jq -r '.container_config')
|
|
||||||
IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}')
|
|
||||||
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
|
|
||||||
if [ -z "${IMAGE_VERSION}" ]; then
|
|
||||||
echo "**** Can't retrieve last pushed version, exiting ****"
|
|
||||||
FAILURE_REASON="Can't retrieve last pushed version for overseerr tag latest"
|
|
||||||
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"}],
|
|
||||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo "**** Last pushed version: ${IMAGE_VERSION} ****"
|
|
||||||
if [ "${EXT_RELEASE}" == "${IMAGE_VERSION}" ]; then
|
|
||||||
echo "**** Version ${EXT_RELEASE} already pushed, exiting ****"
|
|
||||||
exit 0
|
|
||||||
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-overseerr/job/main/lastBuild/api/json | jq -r '.building') == "true" ]; then
|
|
||||||
echo "**** New version ${EXT_RELEASE} found; but there already seems to be an active build on Jenkins; exiting ****"
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
echo "**** New version ${EXT_RELEASE} found; old version was ${IMAGE_VERSION}. Triggering new build ****"
|
|
||||||
response=$(curl -iX POST \
|
|
||||||
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-overseerr/job/main/buildWithParameters?PACKAGE_CHECK=false \
|
|
||||||
--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 "**** Attempting to change the Jenkins job description ****"
|
|
||||||
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 overseerr tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}"
|
|
||||||
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
|
|
||||||
"description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}],
|
|
||||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
fi
|
|
||||||
43
.github/workflows/external_trigger_scheduler.yml
vendored
43
.github/workflows/external_trigger_scheduler.yml
vendored
@ -1,43 +0,0 @@
|
|||||||
name: External Trigger Scheduler
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '15 * * * *'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
external-trigger-scheduler:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2.3.3
|
|
||||||
with:
|
|
||||||
fetch-depth: '0'
|
|
||||||
|
|
||||||
- name: External Trigger Scheduler
|
|
||||||
run: |
|
|
||||||
echo "**** Branches found: ****"
|
|
||||||
git for-each-ref --format='%(refname:short)' refs/remotes
|
|
||||||
echo "**** Pulling the yq docker image ****"
|
|
||||||
docker pull ghcr.io/linuxserver/yq
|
|
||||||
for br in $(git for-each-ref --format='%(refname:short)' refs/remotes)
|
|
||||||
do
|
|
||||||
br=$(echo "$br" | sed 's|origin/||g')
|
|
||||||
echo "**** Evaluating branch ${br} ****"
|
|
||||||
ls_branch=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-overseerr/${br}/jenkins-vars.yml \
|
|
||||||
| docker run --rm -i --entrypoint yq ghcr.io/linuxserver/yq -r .ls_branch)
|
|
||||||
if [ "$br" == "$ls_branch" ]; then
|
|
||||||
echo "**** Branch ${br} appears to be live; checking workflow. ****"
|
|
||||||
if curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-overseerr/${br}/.github/workflows/external_trigger.yml > /dev/null 2>&1; then
|
|
||||||
echo "**** Workflow exists. Triggering external trigger workflow for branch ${br} ****."
|
|
||||||
curl -iX POST \
|
|
||||||
-H "Authorization: token ${{ secrets.CR_PAT }}" \
|
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
|
||||||
-d "{\"ref\":\"refs/heads/${br}\"}" \
|
|
||||||
https://api.github.com/repos/linuxserver/docker-overseerr/actions/workflows/external_trigger.yml/dispatches
|
|
||||||
else
|
|
||||||
echo "**** Workflow doesn't exist; skipping trigger. ****"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "**** ${br} appears to be a dev branch; skipping trigger. ****"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
10
.github/workflows/greetings.yml
vendored
10
.github/workflows/greetings.yml
vendored
@ -2,12 +2,18 @@ name: Greetings
|
|||||||
|
|
||||||
on: [pull_request_target, issues]
|
on: [pull_request_target, issues]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
greeting:
|
greeting:
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/first-interaction@v1
|
- uses: actions/first-interaction@v1
|
||||||
with:
|
with:
|
||||||
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [bug](https://github.com/linuxserver/docker-overseerr/blob/master/.github/ISSUE_TEMPLATE/issue.bug.md) or [feature](https://github.com/linuxserver/docker-overseerr/blob/master/.github/ISSUE_TEMPLATE/issue.feature.md) issue templates!'
|
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-overseerr/blob/master/.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-overseerr/blob/main/.github/PULL_REQUEST_TEMPLATE.md)!'
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
38
.github/workflows/package_trigger.yml
vendored
38
.github/workflows/package_trigger.yml
vendored
@ -1,38 +0,0 @@
|
|||||||
name: Package Trigger Main
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
package-trigger-main:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2.3.3
|
|
||||||
|
|
||||||
- name: Package Trigger
|
|
||||||
if: github.ref == 'refs/heads/main'
|
|
||||||
run: |
|
|
||||||
if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_OVERSEERR_MAIN }}" ]; then
|
|
||||||
echo "**** Github secret PAUSE_PACKAGE_TRIGGER_OVERSEERR_MAIN is set; skipping trigger. ****"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
if [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-overseerr/job/main/lastBuild/api/json | jq -r '.building') == "true" ]; then
|
|
||||||
echo "**** There already seems to be an active build on Jenkins; skipping package trigger ****"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
echo "**** Package trigger running off of main branch. To disable, set a Github secret named \"PAUSE_PACKAGE_TRIGGER_OVERSEERR_MAIN\". ****"
|
|
||||||
response=$(curl -iX POST \
|
|
||||||
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-overseerr/job/main/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 "**** 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"
|
|
||||||
50
.github/workflows/package_trigger_scheduler.yml
vendored
50
.github/workflows/package_trigger_scheduler.yml
vendored
@ -1,50 +0,0 @@
|
|||||||
name: Package Trigger Scheduler
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '02 3 * * 2'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
package-trigger-scheduler:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2.3.3
|
|
||||||
with:
|
|
||||||
fetch-depth: '0'
|
|
||||||
|
|
||||||
- name: Package Trigger Scheduler
|
|
||||||
run: |
|
|
||||||
echo "**** Branches found: ****"
|
|
||||||
git for-each-ref --format='%(refname:short)' refs/remotes
|
|
||||||
echo "**** Pulling the yq docker image ****"
|
|
||||||
docker pull ghcr.io/linuxserver/yq
|
|
||||||
for br in $(git for-each-ref --format='%(refname:short)' refs/remotes)
|
|
||||||
do
|
|
||||||
br=$(echo "$br" | sed 's|origin/||g')
|
|
||||||
echo "**** Evaluating branch ${br} ****"
|
|
||||||
ls_branch=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-overseerr/${br}/jenkins-vars.yml \
|
|
||||||
| docker run --rm -i --entrypoint yq ghcr.io/linuxserver/yq -r .ls_branch)
|
|
||||||
if [ "${br}" == "${ls_branch}" ]; then
|
|
||||||
echo "**** Branch ${br} appears to be live; checking workflow. ****"
|
|
||||||
if curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-overseerr/${br}/.github/workflows/package_trigger.yml > /dev/null 2>&1; then
|
|
||||||
echo "**** Workflow exists. Triggering package trigger workflow for branch ${br}. ****"
|
|
||||||
triggered_branches="${triggered_branches}${br} "
|
|
||||||
curl -iX POST \
|
|
||||||
-H "Authorization: token ${{ secrets.CR_PAT }}" \
|
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
|
||||||
-d "{\"ref\":\"refs/heads/${br}\"}" \
|
|
||||||
https://api.github.com/repos/linuxserver/docker-overseerr/actions/workflows/package_trigger.yml/dispatches
|
|
||||||
sleep 30
|
|
||||||
else
|
|
||||||
echo "**** Workflow doesn't exist; skipping trigger. ****"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "**** ${br} appears to be a dev branch; skipping trigger. ****"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
echo "**** Package check build(s) triggered for branch(es): ${triggered_branches} ****"
|
|
||||||
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) Triggered for overseerr** \n**Branch(es):** '"${triggered_branches}"' \n**Build URL:** '"https://ci.linuxserver.io/blue/organizations/jenkins/Docker-Pipeline-Builders%2Fdocker-overseerr/activity/"' \n"}],
|
|
||||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
12
.github/workflows/permissions.yml
vendored
Normal file
12
.github/workflows/permissions.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name: Permission check
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
paths:
|
||||||
|
- '**/run'
|
||||||
|
- '**/finish'
|
||||||
|
- '**/check'
|
||||||
|
- 'root/migrations/*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
permission_check:
|
||||||
|
uses: linuxserver/github-workflows/.github/workflows/init-svc-executable-permissions.yml@v1
|
||||||
23
.github/workflows/stale.yml
vendored
23
.github/workflows/stale.yml
vendored
@ -1,23 +0,0 @@
|
|||||||
name: Mark stale issues and pull requests
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "30 1 * * *"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
stale:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/stale@v1
|
|
||||||
with:
|
|
||||||
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
|
|
||||||
stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
|
|
||||||
stale-issue-label: 'no-issue-activity'
|
|
||||||
stale-pr-label: 'no-pr-activity'
|
|
||||||
days-before-stale: 30
|
|
||||||
days-before-close: 365
|
|
||||||
exempt-issue-labels: 'awaiting-approval,work-in-progress'
|
|
||||||
exempt-pr-labels: 'awaiting-approval,work-in-progress'
|
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
88
Dockerfile
88
Dockerfile
@ -1,4 +1,6 @@
|
|||||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.13
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
|
FROM ghcr.io/linuxserver/baseimage-alpine:3.22
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
@ -8,52 +10,56 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
|||||||
LABEL maintainer="nemchik"
|
LABEL maintainer="nemchik"
|
||||||
|
|
||||||
# set environment variables
|
# set environment variables
|
||||||
ENV HOME="/config"
|
ENV HOME="/config" \
|
||||||
|
TMPDIR=/run/overseerr-temp
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install build packages ****" && \
|
echo "**** install build packages ****" && \
|
||||||
apk add --no-cache --virtual=build-dependencies \
|
apk add --no-cache --virtual=build-dependencies \
|
||||||
curl \
|
build-base \
|
||||||
g++ \
|
python3 && \
|
||||||
make \
|
echo "**** install runtime packages ****" && \
|
||||||
python3 && \
|
apk add --no-cache \
|
||||||
echo "**** symlink python3 for compatibility ****" && \
|
yarn && \
|
||||||
ln -s /usr/bin/python3 /usr/bin/python && \
|
if [ -z ${OVERSEERR_VERSION+x} ]; then \
|
||||||
echo "**** install runtime packages ****" && \
|
OVERSEERR_VERSION=$(curl -sX GET "https://api.github.com/repos/sct/overseerr/releases/latest" \
|
||||||
apk add --no-cache \
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||||
yarn && \
|
fi && \
|
||||||
if [ -z ${OVERSEERR_VERSION+x} ]; then \
|
export COMMIT_TAG="${OVERSEERR_VERSION}" && \
|
||||||
OVERSEERR_VERSION=$(curl -sX GET "https://api.github.com/repos/sct/overseerr/releases/latest" \
|
curl -o \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
/tmp/overseerr.tar.gz -L \
|
||||||
fi && \
|
"https://github.com/sct/overseerr/archive/${OVERSEERR_VERSION}.tar.gz" && \
|
||||||
export COMMIT_TAG="${OVERSEERR_VERSION}" && \
|
mkdir -p /app/overseerr && \
|
||||||
curl -o \
|
tar xzf \
|
||||||
/tmp/overseerr.tar.gz -L \
|
/tmp/overseerr.tar.gz -C \
|
||||||
"https://github.com/sct/overseerr/archive/${OVERSEERR_VERSION}.tar.gz" && \
|
/app/overseerr/ --strip-components=1 && \
|
||||||
mkdir -p /app/overseerr && \
|
cd /app/overseerr && \
|
||||||
tar xzf \
|
export NODE_OPTIONS=--max_old_space_size=2048 && \
|
||||||
/tmp/overseerr.tar.gz -C \
|
CYPRESS_INSTALL_BINARY=0 yarn --frozen-lockfile --network-timeout 1000000 && \
|
||||||
/app/overseerr/ --strip-components=1 && \
|
yarn build && \
|
||||||
cd /app/overseerr && \
|
yarn install --production --ignore-scripts --prefer-offline && \
|
||||||
NODE_OPTIONS=--max_old_space_size=1024 && \
|
yarn cache clean && \
|
||||||
export NODE_OPTIONS && \
|
rm -rf \
|
||||||
yarn --frozen-lockfile --network-timeout 1000000 && \
|
/app/overseerr/src \
|
||||||
yarn build && \
|
/app/overseerr/server && \
|
||||||
yarn install --production --ignore-scripts --prefer-offline && \
|
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json && \
|
||||||
yarn cache clean && \
|
rm -rf /app/overseerr/config && \
|
||||||
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json && \
|
ln -s /config /app/overseerr/config && \
|
||||||
rm -rf /app/overseerr/config && \
|
touch /config/DOCKER && \
|
||||||
ln -s /config /app/overseerr/config && \
|
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 && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/root/.cache \
|
/tmp/* \
|
||||||
/tmp/*
|
$HOME/.cache \
|
||||||
|
/app/overseerr/.next/cache/* \
|
||||||
|
/run/overseerr-temp
|
||||||
|
|
||||||
# copy local files
|
# copy local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 5055
|
EXPOSE 5055
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.13
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
|
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.22
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
@ -8,52 +10,56 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
|||||||
LABEL maintainer="nemchik"
|
LABEL maintainer="nemchik"
|
||||||
|
|
||||||
# set environment variables
|
# set environment variables
|
||||||
ENV HOME="/config"
|
ENV HOME="/config" \
|
||||||
|
TMPDIR=/run/overseerr-temp
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install build packages ****" && \
|
echo "**** install build packages ****" && \
|
||||||
apk add --no-cache --virtual=build-dependencies \
|
apk add --no-cache --virtual=build-dependencies \
|
||||||
curl \
|
build-base \
|
||||||
g++ \
|
python3 && \
|
||||||
make \
|
echo "**** install runtime packages ****" && \
|
||||||
python3 && \
|
apk add --no-cache \
|
||||||
echo "**** symlink python3 for compatibility ****" && \
|
yarn && \
|
||||||
ln -s /usr/bin/python3 /usr/bin/python && \
|
if [ -z ${OVERSEERR_VERSION+x} ]; then \
|
||||||
echo "**** install runtime packages ****" && \
|
OVERSEERR_VERSION=$(curl -sX GET "https://api.github.com/repos/sct/overseerr/releases/latest" \
|
||||||
apk add --no-cache \
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||||
yarn && \
|
fi && \
|
||||||
if [ -z ${OVERSEERR_VERSION+x} ]; then \
|
export COMMIT_TAG="${OVERSEERR_VERSION}" && \
|
||||||
OVERSEERR_VERSION=$(curl -sX GET "https://api.github.com/repos/sct/overseerr/releases/latest" \
|
curl -o \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
/tmp/overseerr.tar.gz -L \
|
||||||
fi && \
|
"https://github.com/sct/overseerr/archive/${OVERSEERR_VERSION}.tar.gz" && \
|
||||||
export COMMIT_TAG="${OVERSEERR_VERSION}" && \
|
mkdir -p /app/overseerr && \
|
||||||
curl -o \
|
tar xzf \
|
||||||
/tmp/overseerr.tar.gz -L \
|
/tmp/overseerr.tar.gz -C \
|
||||||
"https://github.com/sct/overseerr/archive/${OVERSEERR_VERSION}.tar.gz" && \
|
/app/overseerr/ --strip-components=1 && \
|
||||||
mkdir -p /app/overseerr && \
|
cd /app/overseerr && \
|
||||||
tar xzf \
|
export NODE_OPTIONS=--max_old_space_size=2048 && \
|
||||||
/tmp/overseerr.tar.gz -C \
|
CYPRESS_INSTALL_BINARY=0 yarn --frozen-lockfile --network-timeout 1000000 && \
|
||||||
/app/overseerr/ --strip-components=1 && \
|
yarn build && \
|
||||||
cd /app/overseerr && \
|
yarn install --production --ignore-scripts --prefer-offline && \
|
||||||
NODE_OPTIONS=--max_old_space_size=1024 && \
|
yarn cache clean && \
|
||||||
export NODE_OPTIONS && \
|
rm -rf \
|
||||||
yarn --frozen-lockfile --network-timeout 1000000 && \
|
/app/overseerr/src \
|
||||||
yarn build && \
|
/app/overseerr/server && \
|
||||||
yarn install --production --ignore-scripts --prefer-offline && \
|
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json && \
|
||||||
yarn cache clean && \
|
rm -rf /app/overseerr/config && \
|
||||||
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json && \
|
ln -s /config /app/overseerr/config && \
|
||||||
rm -rf /app/overseerr/config && \
|
touch /config/DOCKER && \
|
||||||
ln -s /config /app/overseerr/config && \
|
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 && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/root/.cache \
|
/tmp/* \
|
||||||
/tmp/*
|
$HOME/.cache \
|
||||||
|
/app/overseerr/.next/cache/* \
|
||||||
|
/run/overseerr-temp
|
||||||
|
|
||||||
# copy local files
|
# copy local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 5055
|
EXPOSE 5055
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|||||||
@ -1,59 +0,0 @@
|
|||||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.13
|
|
||||||
|
|
||||||
# set version label
|
|
||||||
ARG BUILD_DATE
|
|
||||||
ARG VERSION
|
|
||||||
ARG OVERSEERR_VERSION
|
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
||||||
LABEL maintainer="nemchik"
|
|
||||||
|
|
||||||
# set environment variables
|
|
||||||
ENV HOME="/config"
|
|
||||||
|
|
||||||
RUN \
|
|
||||||
echo "**** install build packages ****" && \
|
|
||||||
apk add --no-cache --virtual=build-dependencies \
|
|
||||||
curl \
|
|
||||||
g++ \
|
|
||||||
make \
|
|
||||||
python3 && \
|
|
||||||
echo "**** symlink python3 for compatibility ****" && \
|
|
||||||
ln -s /usr/bin/python3 /usr/bin/python && \
|
|
||||||
echo "**** install runtime packages ****" && \
|
|
||||||
apk add --no-cache \
|
|
||||||
yarn && \
|
|
||||||
if [ -z ${OVERSEERR_VERSION+x} ]; then \
|
|
||||||
OVERSEERR_VERSION=$(curl -sX GET "https://api.github.com/repos/sct/overseerr/releases/latest" \
|
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
|
||||||
fi && \
|
|
||||||
export COMMIT_TAG="${OVERSEERR_VERSION}" && \
|
|
||||||
curl -o \
|
|
||||||
/tmp/overseerr.tar.gz -L \
|
|
||||||
"https://github.com/sct/overseerr/archive/${OVERSEERR_VERSION}.tar.gz" && \
|
|
||||||
mkdir -p /app/overseerr && \
|
|
||||||
tar xzf \
|
|
||||||
/tmp/overseerr.tar.gz -C \
|
|
||||||
/app/overseerr/ --strip-components=1 && \
|
|
||||||
cd /app/overseerr && \
|
|
||||||
NODE_OPTIONS=--max_old_space_size=1024 && \
|
|
||||||
export NODE_OPTIONS && \
|
|
||||||
yarn --frozen-lockfile --network-timeout 1000000 && \
|
|
||||||
yarn build && \
|
|
||||||
yarn install --production --ignore-scripts --prefer-offline && \
|
|
||||||
yarn cache clean && \
|
|
||||||
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json && \
|
|
||||||
rm -rf /app/overseerr/config && \
|
|
||||||
ln -s /config /app/overseerr/config && \
|
|
||||||
echo "**** cleanup ****" && \
|
|
||||||
apk del --purge \
|
|
||||||
build-dependencies && \
|
|
||||||
rm -rf \
|
|
||||||
/root/.cache \
|
|
||||||
/tmp/*
|
|
||||||
|
|
||||||
# copy local files
|
|
||||||
COPY root/ /
|
|
||||||
|
|
||||||
# ports and volumes
|
|
||||||
EXPOSE 5055
|
|
||||||
VOLUME /config
|
|
||||||
830
Jenkinsfile
vendored
830
Jenkinsfile
vendored
@ -1,830 +0,0 @@
|
|||||||
pipeline {
|
|
||||||
agent {
|
|
||||||
label 'X86-64-MULTI'
|
|
||||||
}
|
|
||||||
options {
|
|
||||||
buildDiscarder(logRotator(numToKeepStr: '10', daysToKeepStr: '60'))
|
|
||||||
parallelsAlwaysFailFast()
|
|
||||||
}
|
|
||||||
// Input to determine if this is a package check
|
|
||||||
parameters {
|
|
||||||
string(defaultValue: 'false', description: 'package check run', name: 'PACKAGE_CHECK')
|
|
||||||
}
|
|
||||||
// Configuration for the variables used for this specific repo
|
|
||||||
environment {
|
|
||||||
BUILDS_DISCORD=credentials('build_webhook_url')
|
|
||||||
GITHUB_TOKEN=credentials('498b4638-2d02-4ce5-832d-8a57d01d97ab')
|
|
||||||
GITLAB_TOKEN=credentials('b6f0f1dd-6952-4cf6-95d1-9c06380283f0')
|
|
||||||
GITLAB_NAMESPACE=credentials('gitlab-namespace-id')
|
|
||||||
EXT_GIT_BRANCH = 'master'
|
|
||||||
EXT_USER = 'sct'
|
|
||||||
EXT_REPO = 'overseerr'
|
|
||||||
BUILD_VERSION_ARG = 'OVERSEERR_VERSION'
|
|
||||||
LS_USER = 'linuxserver'
|
|
||||||
LS_REPO = 'docker-overseerr'
|
|
||||||
CONTAINER_NAME = 'overseerr'
|
|
||||||
DOCKERHUB_IMAGE = 'linuxserver/overseerr'
|
|
||||||
DEV_DOCKERHUB_IMAGE = 'lsiodev/overseerr'
|
|
||||||
PR_DOCKERHUB_IMAGE = 'lspipepr/overseerr'
|
|
||||||
DIST_IMAGE = 'alpine'
|
|
||||||
MULTIARCH='true'
|
|
||||||
CI='true'
|
|
||||||
CI_WEB='true'
|
|
||||||
CI_PORT='5055'
|
|
||||||
CI_SSL='false'
|
|
||||||
CI_DELAY='300'
|
|
||||||
CI_DOCKERENV='TZ=US/Pacific'
|
|
||||||
CI_AUTH='user:password'
|
|
||||||
CI_WEBPATH=''
|
|
||||||
}
|
|
||||||
stages {
|
|
||||||
// Setup all the basic environment variables needed for the build
|
|
||||||
stage("Set ENV Variables base"){
|
|
||||||
steps{
|
|
||||||
script{
|
|
||||||
env.EXIT_STATUS = ''
|
|
||||||
env.LS_RELEASE = sh(
|
|
||||||
script: '''docker run --rm ghcr.io/linuxserver/alexeiled-skopeo sh -c 'skopeo inspect docker://docker.io/'${DOCKERHUB_IMAGE}':latest 2>/dev/null' | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''',
|
|
||||||
returnStdout: true).trim()
|
|
||||||
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' ''',
|
|
||||||
returnStdout: true).trim()
|
|
||||||
env.GITHUB_DATE = sh(
|
|
||||||
script: '''date '+%Y-%m-%dT%H:%M:%S%:z' ''',
|
|
||||||
returnStdout: true).trim()
|
|
||||||
env.COMMIT_SHA = sh(
|
|
||||||
script: '''git rev-parse HEAD''',
|
|
||||||
returnStdout: true).trim()
|
|
||||||
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.PULL_REQUEST = env.CHANGE_ID
|
|
||||||
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.md ./.github/ISSUE_TEMPLATE/issue.feature.md ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/greetings.yml ./.github/workflows/stale.yml ./root/donate.txt ./.github/workflows/package_trigger.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/external_trigger.yml ./.github/workflows/external_trigger_scheduler.yml'
|
|
||||||
}
|
|
||||||
script{
|
|
||||||
env.LS_RELEASE_NUMBER = sh(
|
|
||||||
script: '''echo ${LS_RELEASE} |sed 's/^.*-ls//g' ''',
|
|
||||||
returnStdout: true).trim()
|
|
||||||
}
|
|
||||||
script{
|
|
||||||
env.LS_TAG_NUMBER = sh(
|
|
||||||
script: '''#! /bin/bash
|
|
||||||
tagsha=$(git rev-list -n 1 ${LS_RELEASE} 2>/dev/null)
|
|
||||||
if [ "${tagsha}" == "${COMMIT_SHA}" ]; then
|
|
||||||
echo ${LS_RELEASE_NUMBER}
|
|
||||||
elif [ -z "${GIT_COMMIT}" ]; then
|
|
||||||
echo ${LS_RELEASE_NUMBER}
|
|
||||||
else
|
|
||||||
echo $((${LS_RELEASE_NUMBER} + 1))
|
|
||||||
fi''',
|
|
||||||
returnStdout: true).trim()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* #######################
|
|
||||||
Package Version Tagging
|
|
||||||
####################### */
|
|
||||||
// Grab the current package versions in Git to determine package tag
|
|
||||||
stage("Set Package tag"){
|
|
||||||
steps{
|
|
||||||
script{
|
|
||||||
env.PACKAGE_TAG = sh(
|
|
||||||
script: '''#!/bin/bash
|
|
||||||
if [ -e package_versions.txt ] ; then
|
|
||||||
cat package_versions.txt | md5sum | cut -c1-8
|
|
||||||
else
|
|
||||||
echo none
|
|
||||||
fi''',
|
|
||||||
returnStdout: true).trim()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* ########################
|
|
||||||
External Release Tagging
|
|
||||||
######################## */
|
|
||||||
// If this is a stable github release use the latest endpoint from github to determine the ext tag
|
|
||||||
stage("Set ENV github_stable"){
|
|
||||||
steps{
|
|
||||||
script{
|
|
||||||
env.EXT_RELEASE = sh(
|
|
||||||
script: '''curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. | .tag_name' ''',
|
|
||||||
returnStdout: true).trim()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// If this is a stable or devel github release generate the link for the build message
|
|
||||||
stage("Set ENV github_link"){
|
|
||||||
steps{
|
|
||||||
script{
|
|
||||||
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/releases/tag/' + env.EXT_RELEASE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Sanitize the release tag and strip illegal docker or github characters
|
|
||||||
stage("Sanitize tag"){
|
|
||||||
steps{
|
|
||||||
script{
|
|
||||||
env.EXT_RELEASE_CLEAN = sh(
|
|
||||||
script: '''echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g' ''',
|
|
||||||
returnStdout: true).trim()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// If this is a main build use live docker endpoints
|
|
||||||
stage("Set ENV live build"){
|
|
||||||
when {
|
|
||||||
branch "main"
|
|
||||||
environment name: 'CHANGE_ID', value: ''
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
script{
|
|
||||||
env.IMAGE = env.DOCKERHUB_IMAGE
|
|
||||||
env.GITHUBIMAGE = 'ghcr.io/' + env.LS_USER + '/' + env.CONTAINER_NAME
|
|
||||||
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/' + env.CONTAINER_NAME
|
|
||||||
if (env.MULTIARCH == 'true') {
|
|
||||||
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm32v7-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
|
||||||
} else {
|
|
||||||
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
|
||||||
}
|
|
||||||
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
|
||||||
env.META_TAG = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
|
||||||
env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// If this is a dev build use dev docker endpoints
|
|
||||||
stage("Set ENV dev build"){
|
|
||||||
when {
|
|
||||||
not {branch "main"}
|
|
||||||
environment name: 'CHANGE_ID', value: ''
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
script{
|
|
||||||
env.IMAGE = env.DEV_DOCKERHUB_IMAGE
|
|
||||||
env.GITHUBIMAGE = 'ghcr.io/' + env.LS_USER + '/lsiodev-' + env.CONTAINER_NAME
|
|
||||||
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lsiodev-' + env.CONTAINER_NAME
|
|
||||||
if (env.MULTIARCH == 'true') {
|
|
||||||
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm32v7-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
|
||||||
} else {
|
|
||||||
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
|
||||||
}
|
|
||||||
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
|
||||||
env.META_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
|
||||||
env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN
|
|
||||||
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DEV_DOCKERHUB_IMAGE + '/tags/'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// If this is a pull request build use dev docker endpoints
|
|
||||||
stage("Set ENV PR build"){
|
|
||||||
when {
|
|
||||||
not {environment name: 'CHANGE_ID', value: ''}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
script{
|
|
||||||
env.IMAGE = env.PR_DOCKERHUB_IMAGE
|
|
||||||
env.GITHUBIMAGE = 'ghcr.io/' + env.LS_USER + '/lspipepr-' + env.CONTAINER_NAME
|
|
||||||
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lspipepr-' + env.CONTAINER_NAME
|
|
||||||
if (env.MULTIARCH == 'true') {
|
|
||||||
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + '|arm32v7-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
|
||||||
} else {
|
|
||||||
env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
|
||||||
}
|
|
||||||
env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
|
||||||
env.META_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
|
||||||
env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN
|
|
||||||
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/pull/' + env.PULL_REQUEST
|
|
||||||
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.PR_DOCKERHUB_IMAGE + '/tags/'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Run ShellCheck
|
|
||||||
stage('ShellCheck') {
|
|
||||||
when {
|
|
||||||
environment name: 'CI', value: 'true'
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
withCredentials([
|
|
||||||
string(credentialsId: 'ci-tests-s3-key-id', variable: 'S3_KEY'),
|
|
||||||
string(credentialsId: 'ci-tests-s3-secret-access-key', variable: 'S3_SECRET')
|
|
||||||
]) {
|
|
||||||
script{
|
|
||||||
env.SHELLCHECK_URL = 'https://ci-tests.linuxserver.io/' + env.IMAGE + '/' + env.META_TAG + '/shellcheck-result.xml'
|
|
||||||
}
|
|
||||||
sh '''curl -sL https://raw.githubusercontent.com/linuxserver/docker-shellcheck/master/checkrun.sh | /bin/bash'''
|
|
||||||
sh '''#! /bin/bash
|
|
||||||
set -e
|
|
||||||
docker pull ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest
|
|
||||||
docker run --rm \
|
|
||||||
-e DESTINATION=\"${IMAGE}/${META_TAG}/shellcheck-result.xml\" \
|
|
||||||
-e FILE_NAME="shellcheck-result.xml" \
|
|
||||||
-e MIMETYPE="text/xml" \
|
|
||||||
-v ${WORKSPACE}:/mnt \
|
|
||||||
-e SECRET_KEY=\"${S3_SECRET}\" \
|
|
||||||
-e ACCESS_KEY=\"${S3_KEY}\" \
|
|
||||||
-t ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest \
|
|
||||||
python /upload.py'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Use helper containers to render templated files
|
|
||||||
stage('Update-Templates') {
|
|
||||||
when {
|
|
||||||
branch "main"
|
|
||||||
environment name: 'CHANGE_ID', value: ''
|
|
||||||
expression {
|
|
||||||
env.CONTAINER_NAME != null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh '''#! /bin/bash
|
|
||||||
set -e
|
|
||||||
TEMPDIR=$(mktemp -d)
|
|
||||||
docker pull ghcr.io/linuxserver/jenkins-builder:latest
|
|
||||||
docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH=main -v ${TEMPDIR}:/ansible/jenkins ghcr.io/linuxserver/jenkins-builder:latest
|
|
||||||
# Stage 1 - Jenkinsfile update
|
|
||||||
if [[ "$(md5sum Jenkinsfile | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile | awk '{ print $1 }')" ]]; then
|
|
||||||
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 ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile ${TEMPDIR}/repo/${LS_REPO}/
|
|
||||||
git add Jenkinsfile
|
|
||||||
git commit -m 'Bot Updating Templated Files'
|
|
||||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
|
|
||||||
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
|
||||||
echo "Updating Jenkinsfile"
|
|
||||||
rm -Rf ${TEMPDIR}
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
echo "Jenkinsfile is up to date."
|
|
||||||
fi
|
|
||||||
# Stage 2 - Delete old templates
|
|
||||||
OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md"
|
|
||||||
for i in ${OLD_TEMPLATES}; do
|
|
||||||
if [[ -f "${i}" ]]; then
|
|
||||||
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [[ -n "${TEMPLATES_TO_DELETE}" ]]; then
|
|
||||||
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
|
|
||||||
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
|
|
||||||
for i in ${TEMPLATES_TO_DELETE}; do
|
|
||||||
git rm "${i}"
|
|
||||||
done
|
|
||||||
git commit -m 'Bot Updating Templated Files'
|
|
||||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
|
|
||||||
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
|
||||||
echo "Deleting old templates"
|
|
||||||
rm -Rf ${TEMPDIR}
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
echo "No templates to delete"
|
|
||||||
fi
|
|
||||||
# Stage 3 - Update templates
|
|
||||||
CURRENTHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
|
|
||||||
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
|
|
||||||
NEWHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
|
|
||||||
if [[ "${CURRENTHASH}" != "${NEWHASH}" ]] || ! grep -q '.jenkins-external' "${WORKSPACE}/.gitignore" 2>/dev/null; then
|
|
||||||
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
|
|
||||||
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
|
|
||||||
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
|
|
||||||
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
|
|
||||||
cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/ || :
|
|
||||||
cd ${TEMPDIR}/repo/${LS_REPO}/
|
|
||||||
if ! grep -q '.jenkins-external' .gitignore 2>/dev/null; then
|
|
||||||
echo ".jenkins-external" >> .gitignore
|
|
||||||
git add .gitignore
|
|
||||||
fi
|
|
||||||
git add ${TEMPLATED_FILES}
|
|
||||||
git commit -m 'Bot Updating Templated Files'
|
|
||||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
|
|
||||||
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
|
||||||
else
|
|
||||||
echo "false" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
|
||||||
fi
|
|
||||||
mkdir -p ${TEMPDIR}/gitbook
|
|
||||||
git clone https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/gitbook/docker-documentation
|
|
||||||
if [[ ("${BRANCH_NAME}" == "master") || ("${BRANCH_NAME}" == "main") ]] && [[ (! -f ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md) || ("$(md5sum ${TEMPDIR}/gitbook/docker-documentation/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}/gitbook/docker-documentation/images/
|
|
||||||
cd ${TEMPDIR}/gitbook/docker-documentation/
|
|
||||||
git add images/docker-${CONTAINER_NAME}.md
|
|
||||||
git commit -m 'Bot Updating Documentation'
|
|
||||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git --all
|
|
||||||
fi
|
|
||||||
mkdir -p ${TEMPDIR}/unraid
|
|
||||||
git clone https://github.com/linuxserver/docker-templates.git ${TEMPDIR}/unraid/docker-templates
|
|
||||||
git clone https://github.com/linuxserver/templates.git ${TEMPDIR}/unraid/templates
|
|
||||||
if [[ -f ${TEMPDIR}/unraid/docker-templates/linuxserver.io/img/${CONTAINER_NAME}-icon.png ]]; then
|
|
||||||
sed -i "s|master/linuxserver.io/img/linuxserver-ls-logo.png|master/linuxserver.io/img/${CONTAINER_NAME}-icon.png|" ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml
|
|
||||||
fi
|
|
||||||
if [[ ("${BRANCH_NAME}" == "master") || ("${BRANCH_NAME}" == "main") ]] && [[ (! -f ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml) || ("$(md5sum ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml | awk '{ print $1 }')") ]]; then
|
|
||||||
if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
|
|
||||||
echo "Image is on the ignore list, skipping Unraid template upload"
|
|
||||||
else
|
|
||||||
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
|
|
||||||
cd ${TEMPDIR}/unraid/templates/
|
|
||||||
git add unraid/${CONTAINER_NAME}.xml
|
|
||||||
git commit -m 'Bot Updating Unraid Template'
|
|
||||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/templates.git --all
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
rm -Rf ${TEMPDIR}'''
|
|
||||||
script{
|
|
||||||
env.FILES_UPDATED = sh(
|
|
||||||
script: '''cat /tmp/${COMMIT_SHA}-${BUILD_NUMBER}''',
|
|
||||||
returnStdout: true).trim()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Exit the build if the Templated files were just updated
|
|
||||||
stage('Template-exit') {
|
|
||||||
when {
|
|
||||||
branch "main"
|
|
||||||
environment name: 'CHANGE_ID', value: ''
|
|
||||||
environment name: 'FILES_UPDATED', value: 'true'
|
|
||||||
expression {
|
|
||||||
env.CONTAINER_NAME != null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
script{
|
|
||||||
env.EXIT_STATUS = 'ABORTED'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* #######################
|
|
||||||
GitLab Mirroring
|
|
||||||
####################### */
|
|
||||||
// Ping into Gitlab to mirror this repo and have a registry endpoint
|
|
||||||
stage("GitLab Mirror"){
|
|
||||||
when {
|
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
|
||||||
}
|
|
||||||
steps{
|
|
||||||
sh '''curl -H "Content-Type: application/json" -H "Private-Token: ${GITLAB_TOKEN}" -X POST https://gitlab.com/api/v4/projects \
|
|
||||||
-d '{"namespace_id":'${GITLAB_NAMESPACE}',\
|
|
||||||
"name":"'${LS_REPO}'",
|
|
||||||
"mirror":true,\
|
|
||||||
"import_url":"https://github.com/linuxserver/'${LS_REPO}'.git",\
|
|
||||||
"issues_access_level":"disabled",\
|
|
||||||
"merge_requests_access_level":"disabled",\
|
|
||||||
"repository_access_level":"enabled",\
|
|
||||||
"visibility":"public"}' '''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* ###############
|
|
||||||
Build Container
|
|
||||||
############### */
|
|
||||||
// Build Docker container for push to LS Repo
|
|
||||||
stage('Build-Single') {
|
|
||||||
when {
|
|
||||||
environment name: 'MULTIARCH', value: 'false'
|
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
echo "Running on node: ${NODE_NAME}"
|
|
||||||
sh "docker build --no-cache --pull -t ${IMAGE}:${META_TAG} \
|
|
||||||
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Build MultiArch Docker containers for push to LS Repo
|
|
||||||
stage('Build-Multi') {
|
|
||||||
when {
|
|
||||||
environment name: 'MULTIARCH', value: 'true'
|
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
|
||||||
}
|
|
||||||
parallel {
|
|
||||||
stage('Build X86') {
|
|
||||||
steps {
|
|
||||||
echo "Running on node: ${NODE_NAME}"
|
|
||||||
sh "docker build --no-cache --pull -t ${IMAGE}:amd64-${META_TAG} \
|
|
||||||
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Build ARMHF') {
|
|
||||||
agent {
|
|
||||||
label 'ARMHF'
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
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 "docker build --no-cache --pull -f Dockerfile.armhf -t ${IMAGE}:arm32v7-${META_TAG} \
|
|
||||||
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
|
|
||||||
sh "docker tag ${IMAGE}:arm32v7-${META_TAG} ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}"
|
|
||||||
retry(5) {
|
|
||||||
sh "docker push ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}"
|
|
||||||
}
|
|
||||||
sh '''docker rmi \
|
|
||||||
${IMAGE}:arm32v7-${META_TAG} \
|
|
||||||
ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} || :'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Build ARM64') {
|
|
||||||
agent {
|
|
||||||
label 'ARM64'
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
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 "docker build --no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} \
|
|
||||||
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
|
|
||||||
sh "docker tag ${IMAGE}:arm64v8-${META_TAG} ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}"
|
|
||||||
retry(5) {
|
|
||||||
sh "docker push ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}"
|
|
||||||
}
|
|
||||||
sh '''docker rmi \
|
|
||||||
${IMAGE}:arm64v8-${META_TAG} \
|
|
||||||
ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || :'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Take the image we just built and dump package versions for comparison
|
|
||||||
stage('Update-packages') {
|
|
||||||
when {
|
|
||||||
branch "main"
|
|
||||||
environment name: 'CHANGE_ID', value: ''
|
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh '''#! /bin/bash
|
|
||||||
set -e
|
|
||||||
TEMPDIR=$(mktemp -d)
|
|
||||||
if [ "${MULTIARCH}" == "true" ]; then
|
|
||||||
LOCAL_CONTAINER=${IMAGE}:amd64-${META_TAG}
|
|
||||||
else
|
|
||||||
LOCAL_CONTAINER=${IMAGE}:${META_TAG}
|
|
||||||
fi
|
|
||||||
if [ "${DIST_IMAGE}" == "alpine" ]; then
|
|
||||||
docker run --rm --entrypoint '/bin/sh' -v ${TEMPDIR}:/tmp ${LOCAL_CONTAINER} -c '\
|
|
||||||
apk info -v > /tmp/package_versions.txt && \
|
|
||||||
sort -o /tmp/package_versions.txt /tmp/package_versions.txt && \
|
|
||||||
chmod 777 /tmp/package_versions.txt'
|
|
||||||
elif [ "${DIST_IMAGE}" == "ubuntu" ]; then
|
|
||||||
docker run --rm --entrypoint '/bin/sh' -v ${TEMPDIR}:/tmp ${LOCAL_CONTAINER} -c '\
|
|
||||||
apt list -qq --installed | sed "s#/.*now ##g" | cut -d" " -f1 > /tmp/package_versions.txt && \
|
|
||||||
sort -o /tmp/package_versions.txt /tmp/package_versions.txt && \
|
|
||||||
chmod 777 /tmp/package_versions.txt'
|
|
||||||
fi
|
|
||||||
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"
|
|
||||||
if [ "${NEW_PACKAGE_TAG}" != "${PACKAGE_TAG}" ]; then
|
|
||||||
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
|
|
||||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f main
|
|
||||||
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
|
|
||||||
cd ${TEMPDIR}/${LS_REPO}/
|
|
||||||
wait
|
|
||||||
git add package_versions.txt
|
|
||||||
git commit -m 'Bot Updating Package Versions'
|
|
||||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
|
|
||||||
echo "true" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
|
||||||
echo "Package tag updated, stopping build process"
|
|
||||||
else
|
|
||||||
echo "false" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
|
||||||
echo "Package tag is same as previous continue with build process"
|
|
||||||
fi
|
|
||||||
rm -Rf ${TEMPDIR}'''
|
|
||||||
script{
|
|
||||||
env.PACKAGE_UPDATED = sh(
|
|
||||||
script: '''cat /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}''',
|
|
||||||
returnStdout: true).trim()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Exit the build if the package file was just updated
|
|
||||||
stage('PACKAGE-exit') {
|
|
||||||
when {
|
|
||||||
branch "main"
|
|
||||||
environment name: 'CHANGE_ID', value: ''
|
|
||||||
environment name: 'PACKAGE_UPDATED', value: 'true'
|
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh '''#! /bin/bash
|
|
||||||
echo "Packages were updated. Cleaning up the image and exiting."
|
|
||||||
if [ "${MULTIARCH}" == "true" ]; then
|
|
||||||
docker rmi ${IMAGE}:amd64-${META_TAG}
|
|
||||||
else
|
|
||||||
docker rmi ${IMAGE}:${META_TAG}
|
|
||||||
fi'''
|
|
||||||
script{
|
|
||||||
env.EXIT_STATUS = 'ABORTED'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Exit the build if this is just a package check and there are no changes to push
|
|
||||||
stage('PACKAGECHECK-exit') {
|
|
||||||
when {
|
|
||||||
branch "main"
|
|
||||||
environment name: 'CHANGE_ID', value: ''
|
|
||||||
environment name: 'PACKAGE_UPDATED', value: 'false'
|
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
|
||||||
expression {
|
|
||||||
params.PACKAGE_CHECK == 'true'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh '''#! /bin/bash
|
|
||||||
echo "There are no package updates. Cleaning up the image and exiting."
|
|
||||||
if [ "${MULTIARCH}" == "true" ]; then
|
|
||||||
docker rmi ${IMAGE}:amd64-${META_TAG}
|
|
||||||
else
|
|
||||||
docker rmi ${IMAGE}:${META_TAG}
|
|
||||||
fi'''
|
|
||||||
script{
|
|
||||||
env.EXIT_STATUS = 'ABORTED'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* #######
|
|
||||||
Testing
|
|
||||||
####### */
|
|
||||||
// Run Container tests
|
|
||||||
stage('Test') {
|
|
||||||
when {
|
|
||||||
environment name: 'CI', value: 'true'
|
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
withCredentials([
|
|
||||||
string(credentialsId: 'ci-tests-s3-key-id', variable: 'S3_KEY'),
|
|
||||||
string(credentialsId: 'ci-tests-s3-secret-access-key ', variable: 'S3_SECRET')
|
|
||||||
]) {
|
|
||||||
script{
|
|
||||||
env.CI_URL = 'https://ci-tests.linuxserver.io/' + env.IMAGE + '/' + env.META_TAG + '/index.html'
|
|
||||||
}
|
|
||||||
sh '''#! /bin/bash
|
|
||||||
set -e
|
|
||||||
docker pull ghcr.io/linuxserver/ci:latest
|
|
||||||
if [ "${MULTIARCH}" == "true" ]; then
|
|
||||||
docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}
|
|
||||||
docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}
|
|
||||||
docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm32v7-${META_TAG}
|
|
||||||
docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm64v8-${META_TAG}
|
|
||||||
fi
|
|
||||||
docker run --rm \
|
|
||||||
--shm-size=1gb \
|
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
||||||
-e IMAGE=\"${IMAGE}\" \
|
|
||||||
-e DELAY_START=\"${CI_DELAY}\" \
|
|
||||||
-e TAGS=\"${CI_TAGS}\" \
|
|
||||||
-e META_TAG=\"${META_TAG}\" \
|
|
||||||
-e PORT=\"${CI_PORT}\" \
|
|
||||||
-e SSL=\"${CI_SSL}\" \
|
|
||||||
-e BASE=\"${DIST_IMAGE}\" \
|
|
||||||
-e SECRET_KEY=\"${S3_SECRET}\" \
|
|
||||||
-e ACCESS_KEY=\"${S3_KEY}\" \
|
|
||||||
-e DOCKER_ENV=\"${CI_DOCKERENV}\" \
|
|
||||||
-e WEB_SCREENSHOT=\"${CI_WEB}\" \
|
|
||||||
-e WEB_AUTH=\"${CI_AUTH}\" \
|
|
||||||
-e WEB_PATH=\"${CI_WEBPATH}\" \
|
|
||||||
-e DO_REGION="ams3" \
|
|
||||||
-e DO_BUCKET="lsio-ci" \
|
|
||||||
-t ghcr.io/linuxserver/ci:latest \
|
|
||||||
python /ci/ci.py'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* ##################
|
|
||||||
Release Logic
|
|
||||||
################## */
|
|
||||||
// If this is an amd64 only image only push a single image
|
|
||||||
stage('Docker-Push-Single') {
|
|
||||||
when {
|
|
||||||
environment name: 'MULTIARCH', value: 'false'
|
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
withCredentials([
|
|
||||||
[
|
|
||||||
$class: 'UsernamePasswordMultiBinding',
|
|
||||||
credentialsId: '3f9ba4d5-100d-45b0-a3c4-633fd6061207',
|
|
||||||
usernameVariable: 'DOCKERUSER',
|
|
||||||
passwordVariable: 'DOCKERPASS'
|
|
||||||
]
|
|
||||||
]) {
|
|
||||||
retry(5) {
|
|
||||||
sh '''#! /bin/bash
|
|
||||||
set -e
|
|
||||||
echo $DOCKERPASS | docker login -u $DOCKERUSER --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
|
|
||||||
for PUSHIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${IMAGE}"; do
|
|
||||||
docker tag ${IMAGE}:${META_TAG} ${PUSHIMAGE}:${META_TAG}
|
|
||||||
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:latest
|
|
||||||
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:${EXT_RELEASE_TAG}
|
|
||||||
docker push ${PUSHIMAGE}:latest
|
|
||||||
docker push ${PUSHIMAGE}:${META_TAG}
|
|
||||||
docker push ${PUSHIMAGE}:${EXT_RELEASE_TAG}
|
|
||||||
done
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
sh '''#! /bin/bash
|
|
||||||
for DELETEIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${IMAGE}"; do
|
|
||||||
docker rmi \
|
|
||||||
${DELETEIMAGE}:${META_TAG} \
|
|
||||||
${DELETEIMAGE}:${EXT_RELEASE_TAG} \
|
|
||||||
${DELETEIMAGE}:latest || :
|
|
||||||
done
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// If this is a multi arch release push all images and define the manifest
|
|
||||||
stage('Docker-Push-Multi') {
|
|
||||||
when {
|
|
||||||
environment name: 'MULTIARCH', value: 'true'
|
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
withCredentials([
|
|
||||||
[
|
|
||||||
$class: 'UsernamePasswordMultiBinding',
|
|
||||||
credentialsId: '3f9ba4d5-100d-45b0-a3c4-633fd6061207',
|
|
||||||
usernameVariable: 'DOCKERUSER',
|
|
||||||
passwordVariable: 'DOCKERPASS'
|
|
||||||
]
|
|
||||||
]) {
|
|
||||||
retry(5) {
|
|
||||||
sh '''#! /bin/bash
|
|
||||||
set -e
|
|
||||||
echo $DOCKERPASS | docker login -u $DOCKERUSER --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
|
|
||||||
if [ "${CI}" == "false" ]; then
|
|
||||||
docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}
|
|
||||||
docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}
|
|
||||||
docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm32v7-${META_TAG}
|
|
||||||
docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm64v8-${META_TAG}
|
|
||||||
fi
|
|
||||||
for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}"; do
|
|
||||||
docker tag ${IMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG}
|
|
||||||
docker tag ${IMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG}
|
|
||||||
docker tag ${IMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
|
||||||
docker tag ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-latest
|
|
||||||
docker tag ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-latest
|
|
||||||
docker tag ${MANIFESTIMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-latest
|
|
||||||
docker tag ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG}
|
|
||||||
docker tag ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${EXT_RELEASE_TAG}
|
|
||||||
docker tag ${MANIFESTIMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
|
|
||||||
docker push ${MANIFESTIMAGE}:amd64-${META_TAG}
|
|
||||||
docker push ${MANIFESTIMAGE}:arm32v7-${META_TAG}
|
|
||||||
docker push ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
|
||||||
docker push ${MANIFESTIMAGE}:amd64-latest
|
|
||||||
docker push ${MANIFESTIMAGE}:arm32v7-latest
|
|
||||||
docker push ${MANIFESTIMAGE}:arm64v8-latest
|
|
||||||
docker push ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG}
|
|
||||||
docker push ${MANIFESTIMAGE}:arm32v7-${EXT_RELEASE_TAG}
|
|
||||||
docker push ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
|
|
||||||
docker manifest push --purge ${MANIFESTIMAGE}:latest || :
|
|
||||||
docker manifest create ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm32v7-latest ${MANIFESTIMAGE}:arm64v8-latest
|
|
||||||
docker manifest annotate ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:arm32v7-latest --os linux --arch arm
|
|
||||||
docker manifest annotate ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:arm64v8-latest --os linux --arch arm64 --variant v8
|
|
||||||
docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG} || :
|
|
||||||
docker manifest create ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
|
||||||
docker manifest annotate ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG} --os linux --arch arm
|
|
||||||
docker manifest annotate ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} --os linux --arch arm64 --variant v8
|
|
||||||
docker manifest push --purge ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} || :
|
|
||||||
docker manifest create ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm32v7-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
|
|
||||||
docker manifest annotate ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm32v7-${EXT_RELEASE_TAG} --os linux --arch arm
|
|
||||||
docker manifest annotate ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} --os linux --arch arm64 --variant v8
|
|
||||||
docker manifest push --purge ${MANIFESTIMAGE}:latest
|
|
||||||
docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG}
|
|
||||||
docker manifest push --purge ${MANIFESTIMAGE}:${EXT_RELEASE_TAG}
|
|
||||||
done
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
sh '''#! /bin/bash
|
|
||||||
for DELETEIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${IMAGE}"; do
|
|
||||||
docker rmi \
|
|
||||||
${DELETEIMAGE}:amd64-${META_TAG} \
|
|
||||||
${DELETEIMAGE}:amd64-latest \
|
|
||||||
${DELETEIMAGE}:amd64-${EXT_RELEASE_TAG} \
|
|
||||||
${DELETEIMAGE}:arm32v7-${META_TAG} \
|
|
||||||
${DELETEIMAGE}:arm32v7-latest \
|
|
||||||
${DELETEIMAGE}:arm32v7-${EXT_RELEASE_TAG} \
|
|
||||||
${DELETEIMAGE}:arm64v8-${META_TAG} \
|
|
||||||
${DELETEIMAGE}:arm64v8-latest \
|
|
||||||
${DELETEIMAGE}:arm64v8-${EXT_RELEASE_TAG} || :
|
|
||||||
done
|
|
||||||
docker rmi \
|
|
||||||
ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} \
|
|
||||||
ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || :
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// If this is a public release tag it in the LS Github
|
|
||||||
stage('Github-Tag-Push-Release') {
|
|
||||||
when {
|
|
||||||
branch "main"
|
|
||||||
expression {
|
|
||||||
env.LS_RELEASE != env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
|
||||||
}
|
|
||||||
environment name: 'CHANGE_ID', value: ''
|
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
|
||||||
}
|
|
||||||
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 main",\
|
|
||||||
"type": "commit",\
|
|
||||||
"tagger": {"name": "LinuxServer Jenkins","email": "jenkins@linuxserver.io","date": "'${GITHUB_DATE}'"}}' '''
|
|
||||||
echo "Pushing New release for Tag"
|
|
||||||
sh '''#! /bin/bash
|
|
||||||
curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq '. |.body' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
|
|
||||||
echo '{"tag_name":"'${META_TAG}'",\
|
|
||||||
"target_commitish": "main",\
|
|
||||||
"name": "'${META_TAG}'",\
|
|
||||||
"body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n**'${EXT_REPO}' Changes:**\\n\\n' > start
|
|
||||||
printf '","draft": false,"prerelease": false}' >> releasebody.json
|
|
||||||
paste -d'\\0' start releasebody.json > releasebody.json.done
|
|
||||||
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Use helper container to sync the current README on master to the dockerhub endpoint
|
|
||||||
stage('Sync-README') {
|
|
||||||
when {
|
|
||||||
environment name: 'CHANGE_ID', value: ''
|
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
withCredentials([
|
|
||||||
[
|
|
||||||
$class: 'UsernamePasswordMultiBinding',
|
|
||||||
credentialsId: '3f9ba4d5-100d-45b0-a3c4-633fd6061207',
|
|
||||||
usernameVariable: 'DOCKERUSER',
|
|
||||||
passwordVariable: 'DOCKERPASS'
|
|
||||||
]
|
|
||||||
]) {
|
|
||||||
sh '''#! /bin/bash
|
|
||||||
set -e
|
|
||||||
TEMPDIR=$(mktemp -d)
|
|
||||||
docker pull ghcr.io/linuxserver/jenkins-builder:latest
|
|
||||||
docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH="${BRANCH_NAME}" -v ${TEMPDIR}:/ansible/jenkins ghcr.io/linuxserver/jenkins-builder:latest
|
|
||||||
docker pull ghcr.io/linuxserver/readme-sync
|
|
||||||
docker run --rm=true \
|
|
||||||
-e DOCKERHUB_USERNAME=$DOCKERUSER \
|
|
||||||
-e DOCKERHUB_PASSWORD=$DOCKERPASS \
|
|
||||||
-e GIT_REPOSITORY=${LS_USER}/${LS_REPO} \
|
|
||||||
-e DOCKER_REPOSITORY=${IMAGE} \
|
|
||||||
-e GIT_BRANCH=master \
|
|
||||||
-v ${TEMPDIR}/docker-${CONTAINER_NAME}:/mnt \
|
|
||||||
ghcr.io/linuxserver/readme-sync bash -c 'node sync'
|
|
||||||
rm -Rf ${TEMPDIR} '''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// If this is a Pull request send the CI link as a comment on it
|
|
||||||
stage('Pull Request Comment') {
|
|
||||||
when {
|
|
||||||
not {environment name: 'CHANGE_ID', value: ''}
|
|
||||||
environment name: 'CI', value: 'true'
|
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh '''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/issues/${PULL_REQUEST}/comments \
|
|
||||||
-d '{"body": "I am a bot, here are the test results for this PR: \\n'${CI_URL}' \\n'${SHELLCHECK_URL}'"}' '''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* ######################
|
|
||||||
Send status to Discord
|
|
||||||
###################### */
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
script{
|
|
||||||
if (env.EXIT_STATUS == "ABORTED"){
|
|
||||||
sh 'echo "build aborted"'
|
|
||||||
}
|
|
||||||
else if (currentBuild.currentResult == "SUCCESS"){
|
|
||||||
sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://wiki.jenkins-ci.org/download/attachments/2916393/headshot.png","embeds": [{"color": 1681177,\
|
|
||||||
"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"}],\
|
|
||||||
"username": "Jenkins"}' ${BUILDS_DISCORD} '''
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://wiki.jenkins-ci.org/download/attachments/2916393/headshot.png","embeds": [{"color": 16711680,\
|
|
||||||
"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"}],\
|
|
||||||
"username": "Jenkins"}' ${BUILDS_DISCORD} '''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
cleanup {
|
|
||||||
cleanWs()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
265
README.md
265
README.md
@ -1,123 +1,138 @@
|
|||||||
<!-- DO NOT EDIT THIS FILE MANUALLY -->
|
<!-- DO NOT EDIT THIS FILE MANUALLY -->
|
||||||
<!-- Please read the CONTRIBUTING.md -->
|
<!-- Please read https://github.com/linuxserver/docker-overseerr/blob/main/.github/CONTRIBUTING.md -->
|
||||||
|
|
||||||
[](https://linuxserver.io)
|
[](https://linuxserver.io)
|
||||||
|
|
||||||
[](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
|
[](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
|
||||||
[](https://discord.gg/YWrKVTn "realtime support / chat with the community and the team.")
|
[](https://linuxserver.io/discord "realtime support / chat with the community and the team.")
|
||||||
[](https://discourse.linuxserver.io "post on our community forum.")
|
[](https://discourse.linuxserver.io "post on our community forum.")
|
||||||
[](https://fleet.linuxserver.io "an online web interface which displays all of our maintained images.")
|
|
||||||
[](https://github.com/linuxserver "view the source for all of our repositories.")
|
[](https://github.com/linuxserver "view the source for all of our repositories.")
|
||||||
[](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
|
[](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
|
||||||
|
|
||||||
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring:
|
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring:
|
||||||
|
|
||||||
* regular and timely application updates
|
* regular and timely application updates
|
||||||
* easy user mappings (PGID, PUID)
|
* easy user mappings (PGID, PUID)
|
||||||
* custom base image with s6 overlay
|
* custom base image with s6 overlay
|
||||||
* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
|
* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
|
||||||
* regular security updates
|
* regular security updates
|
||||||
|
|
||||||
Find us at:
|
Find us at:
|
||||||
|
|
||||||
* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
|
* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
|
||||||
* [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team.
|
* [Discord](https://linuxserver.io/discord) - realtime support / chat with the community and the team.
|
||||||
* [Discourse](https://discourse.linuxserver.io) - post on our community forum.
|
* [Discourse](https://discourse.linuxserver.io) - post on our community forum.
|
||||||
* [Fleet](https://fleet.linuxserver.io) - an online web interface which displays all of our maintained images.
|
|
||||||
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
|
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
|
||||||
* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget
|
* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget
|
||||||
|
|
||||||
|
# DEPRECATION NOTICE
|
||||||
|
This image is deprecated. We will not offer support for this image and it will not be updated.
|
||||||
|
|
||||||
|
|
||||||
|
Overseerr has now merged with Jellyseerr, we recommend migrating to the official Seerr image: https://github.com/seerr-team/seerr
|
||||||
# [linuxserver/overseerr](https://github.com/linuxserver/docker-overseerr)
|
# [linuxserver/overseerr](https://github.com/linuxserver/docker-overseerr)
|
||||||
|
|
||||||
|
[](https://scarf.sh)
|
||||||
[](https://github.com/linuxserver/docker-overseerr)
|
[](https://github.com/linuxserver/docker-overseerr)
|
||||||
[](https://github.com/linuxserver/docker-overseerr/releases)
|
[](https://github.com/linuxserver/docker-overseerr/releases)
|
||||||
[](https://github.com/linuxserver/docker-overseerr/packages)
|
[](https://github.com/linuxserver/docker-overseerr/packages)
|
||||||
[](https://gitlab.com/linuxserver.io/docker-overseerr/container_registry)
|
[](https://gitlab.com/linuxserver.io/docker-overseerr/container_registry)
|
||||||
[](https://microbadger.com/images/linuxserver/overseerr "Get your own version badge on microbadger.com")
|
[](https://quay.io/repository/linuxserver.io/overseerr)
|
||||||
[](https://hub.docker.com/r/linuxserver/overseerr)
|
[](https://hub.docker.com/r/linuxserver/overseerr)
|
||||||
[](https://hub.docker.com/r/linuxserver/overseerr)
|
[](https://hub.docker.com/r/linuxserver/overseerr)
|
||||||
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-overseerr/job/main/)
|
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-overseerr/job/main/)
|
||||||
[](https://ci-tests.linuxserver.io/linuxserver/overseerr/latest/index.html)
|
[](https://ci-tests.linuxserver.io/linuxserver/overseerr/latest/index.html)
|
||||||
|
|
||||||
[Overseerr](https://overseerr.dev/) is a free and open source software application for managing requests for your media library.
|
[Overseerr](https://overseerr.dev/) is a request management and media discovery tool built to work with your existing Plex ecosystem.
|
||||||
|
|
||||||
|
|
||||||
[](https://overseerr.dev/)
|
[](https://overseerr.dev/)
|
||||||
|
|
||||||
## Supported Architectures
|
## Supported Architectures
|
||||||
|
|
||||||
Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
|
We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://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 `ghcr.io/linuxserver/overseerr` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
|
Simply pulling `lscr.io/linuxserver/overseerr:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
|
||||||
|
|
||||||
The architectures supported by this image are:
|
The architectures supported by this image are:
|
||||||
|
|
||||||
| Architecture | Tag |
|
| Architecture | Available | Tag |
|
||||||
| :----: | --- |
|
| :----: | :----: | ---- |
|
||||||
| x86-64 | amd64-latest |
|
| x86-64 | ✅ | amd64-\<version tag\> |
|
||||||
| arm64 | arm64v8-latest |
|
| arm64 | ✅ | arm64v8-\<version tag\> |
|
||||||
| armhf | arm32v7-latest |
|
|
||||||
|
|
||||||
## Version Tags
|
## Version Tags
|
||||||
|
|
||||||
This image provides various versions that are available via tags. `latest` tag usually provides the latest stable version. Others are considered under development and caution must be exercised when using them.
|
This image provides various versions that are available via tags. Please read the descriptions carefully and exercise caution when using unstable or development tags.
|
||||||
|
|
||||||
| Tag | Description |
|
| Tag | Available | Description |
|
||||||
| :----: | --- |
|
| :----: | :----: |--- |
|
||||||
| latest | Stable releases from GitHub |
|
| latest | ✅ | Stable releases from GitHub |
|
||||||
| develop | Development releases from commits in upstream develop branch |
|
| develop | ✅ | Development releases from commits in upstream develop branch |
|
||||||
|
|
||||||
|
## Application Setup
|
||||||
|
|
||||||
|
Access the webui at `<your-ip>:5055`, for more information check out [Overseerr](https://overseerr.dev/).
|
||||||
|
|
||||||
|
## Read-Only Operation
|
||||||
|
|
||||||
|
This image can be run with a read-only container filesystem. For details please [read the docs](https://docs.linuxserver.io/misc/read-only/).
|
||||||
|
|
||||||
|
## Non-Root Operation
|
||||||
|
|
||||||
|
This image can be run with a non-root user. For details please [read the docs](https://docs.linuxserver.io/misc/non-root/).
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Here are some example snippets to help you get started creating a container.
|
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
|
||||||
|
|
||||||
### docker-compose ([recommended](https://docs.linuxserver.io/general/docker-compose))
|
>[!NOTE]
|
||||||
|
>Unless a parameter is flagged as 'optional', it is *mandatory* and a value must be provided.
|
||||||
|
|
||||||
Compatible with docker-compose v2 schemas.
|
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
version: "2.1"
|
|
||||||
services:
|
services:
|
||||||
overseerr:
|
overseerr:
|
||||||
image: ghcr.io/linuxserver/overseerr
|
image: lscr.io/linuxserver/overseerr:latest
|
||||||
container_name: overseerr
|
container_name: overseerr
|
||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
- TZ=America/New_York
|
- TZ=Etc/UTC
|
||||||
volumes:
|
volumes:
|
||||||
- /path/to/appdata/config:/config
|
- /path/to/overseerr/config:/config
|
||||||
ports:
|
ports:
|
||||||
- 5055:5055
|
- 5055:5055
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
|
||||||
### docker cli
|
### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/))
|
||||||
|
|
||||||
```
|
```bash
|
||||||
docker run -d \
|
docker run -d \
|
||||||
--name=overseerr \
|
--name=overseerr \
|
||||||
-e PUID=1000 \
|
-e PUID=1000 \
|
||||||
-e PGID=1000 \
|
-e PGID=1000 \
|
||||||
-e TZ=America/New_York \
|
-e TZ=Etc/UTC \
|
||||||
-p 5055:5055 \
|
-p 5055:5055 \
|
||||||
-v /path/to/appdata/config:/config \
|
-v /path/to/overseerr/config:/config \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
ghcr.io/linuxserver/overseerr
|
lscr.io/linuxserver/overseerr:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
|
||||||
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
|
Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
|
||||||
|
|
||||||
| Parameter | Function |
|
| Parameter | Function |
|
||||||
| :----: | --- |
|
| :----: | --- |
|
||||||
| `-p 5055` | Port for Overseerr's web interface. |
|
| `-p 5055:5055` | Port for Overseerr's web interface. |
|
||||||
| `-e PUID=1000` | for UserID - see below for explanation |
|
| `-e PUID=1000` | for UserID - see below for explanation |
|
||||||
| `-e PGID=1000` | for GroupID - see below for explanation |
|
| `-e PGID=1000` | for GroupID - see below for explanation |
|
||||||
| `-e TZ=America/New_York` | Specify a timezone to use EG America/New_York |
|
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
|
||||||
| `-v /config` | Contains all relevant configuration files. |
|
| `-v /config` | Persistent config files |
|
||||||
|
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
|
||||||
|
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
|
||||||
|
|
||||||
## Environment variables from files (Docker secrets)
|
## Environment variables from files (Docker secrets)
|
||||||
|
|
||||||
@ -125,11 +140,11 @@ You can set any environment variable from a file by using a special prepend `FIL
|
|||||||
|
|
||||||
As an example:
|
As an example:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
-e FILE__PASSWORD=/run/secrets/mysecretpassword
|
-e FILE__MYVAR=/run/secrets/mysecretvariable
|
||||||
```
|
```
|
||||||
|
|
||||||
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
|
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
|
||||||
|
|
||||||
## Umask for running applications
|
## Umask for running applications
|
||||||
|
|
||||||
@ -138,93 +153,161 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
|
|||||||
|
|
||||||
## User / Group Identifiers
|
## User / Group Identifiers
|
||||||
|
|
||||||
When using volumes (`-v` flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
|
When using volumes (`-v` flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
|
||||||
|
|
||||||
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
|
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
|
||||||
|
|
||||||
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
|
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
$ id username
|
id your_user
|
||||||
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Example output:
|
||||||
|
|
||||||
|
```text
|
||||||
## Application Setup
|
uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)
|
||||||
|
```
|
||||||
Access the webui at `<your-ip>:5055`, for more information check out [Overseerr](https://overseerr.dev/).
|
|
||||||
|
|
||||||
|
|
||||||
## Docker Mods
|
## Docker Mods
|
||||||
|
|
||||||
[](https://mods.linuxserver.io/?mod=overseerr "view available mods for this container.") [](https://mods.linuxserver.io/?mod=universal "view available universal mods.")
|
[](https://mods.linuxserver.io/?mod=overseerr "view available mods for this container.") [](https://mods.linuxserver.io/?mod=universal "view available universal mods.")
|
||||||
|
|
||||||
We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.
|
We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.
|
||||||
|
|
||||||
|
|
||||||
## Support Info
|
## Support Info
|
||||||
|
|
||||||
* Shell access whilst the container is running: `docker exec -it overseerr /bin/bash`
|
* Shell access whilst the container is running:
|
||||||
* To monitor the logs of the container in realtime: `docker logs -f overseerr`
|
|
||||||
* container version number
|
```bash
|
||||||
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' overseerr`
|
docker exec -it overseerr /bin/bash
|
||||||
* image version number
|
```
|
||||||
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver/overseerr`
|
|
||||||
|
* To monitor the logs of the container in realtime:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker logs -f overseerr
|
||||||
|
```
|
||||||
|
|
||||||
|
* Container version number:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker inspect -f '{{ index .Config.Labels "build_version" }}' overseerr
|
||||||
|
```
|
||||||
|
|
||||||
|
* Image version number:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/overseerr:latest
|
||||||
|
```
|
||||||
|
|
||||||
## Updating Info
|
## Updating Info
|
||||||
|
|
||||||
Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.
|
Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.
|
||||||
|
|
||||||
Below are the instructions for updating containers:
|
Below are the instructions for updating containers:
|
||||||
|
|
||||||
### Via Docker Compose
|
### Via Docker Compose
|
||||||
* Update all images: `docker-compose pull`
|
|
||||||
* or update a single image: `docker-compose pull overseerr`
|
* Update images:
|
||||||
* Let compose update all containers as necessary: `docker-compose up -d`
|
* All images:
|
||||||
* or update a single container: `docker-compose up -d overseerr`
|
|
||||||
* You can also remove the old dangling images: `docker image prune`
|
```bash
|
||||||
|
docker-compose pull
|
||||||
|
```
|
||||||
|
|
||||||
|
* Single image:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose pull overseerr
|
||||||
|
```
|
||||||
|
|
||||||
|
* Update containers:
|
||||||
|
* All containers:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
* Single container:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose up -d overseerr
|
||||||
|
```
|
||||||
|
|
||||||
|
* You can also remove the old dangling images:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker image prune
|
||||||
|
```
|
||||||
|
|
||||||
### Via Docker Run
|
### Via Docker Run
|
||||||
* Update the image: `docker pull ghcr.io/linuxserver/overseerr`
|
|
||||||
* Stop the running container: `docker stop overseerr`
|
* Update the image:
|
||||||
* Delete the container: `docker rm overseerr`
|
|
||||||
|
```bash
|
||||||
|
docker pull lscr.io/linuxserver/overseerr:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
* Stop the running container:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker stop overseerr
|
||||||
|
```
|
||||||
|
|
||||||
|
* Delete the container:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker rm overseerr
|
||||||
|
```
|
||||||
|
|
||||||
* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
|
* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
|
||||||
* You can also remove the old dangling images: `docker image prune`
|
* You can also remove the old dangling images:
|
||||||
|
|
||||||
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
|
```bash
|
||||||
* Pull the latest image at its tag and replace it with the same env variables in one run:
|
docker image prune
|
||||||
```
|
```
|
||||||
docker run --rm \
|
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
||||||
containrrr/watchtower \
|
|
||||||
--run-once overseerr
|
|
||||||
```
|
|
||||||
* You can also remove the old dangling images: `docker image prune`
|
|
||||||
|
|
||||||
**Note:** We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using [Docker Compose](https://docs.linuxserver.io/general/docker-compose).
|
|
||||||
|
|
||||||
### Image Update Notifications - Diun (Docker Image Update Notifier)
|
### Image Update Notifications - Diun (Docker Image Update Notifier)
|
||||||
* We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
|
|
||||||
|
>[!TIP]
|
||||||
|
>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
|
||||||
|
|
||||||
If you want to make local modifications to these images for development purposes or just to customize the logic:
|
If you want to make local modifications to these images for development purposes or just to customize the logic:
|
||||||
```
|
|
||||||
|
```bash
|
||||||
git clone https://github.com/linuxserver/docker-overseerr.git
|
git clone https://github.com/linuxserver/docker-overseerr.git
|
||||||
cd docker-overseerr
|
cd docker-overseerr
|
||||||
docker build \
|
docker build \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--pull \
|
--pull \
|
||||||
-t ghcr.io/linuxserver/overseerr:latest .
|
-t lscr.io/linuxserver/overseerr:latest .
|
||||||
```
|
```
|
||||||
|
|
||||||
The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static`
|
The ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static`
|
||||||
```
|
|
||||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
```bash
|
||||||
|
docker run --rm --privileged lscr.io/linuxserver/qemu-static --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
|
||||||
|
|
||||||
|
* **05.07.25:** - Rebase to Alpine 3.22.
|
||||||
|
* **05.07.25:** - Rebase to Alpine 3.22.
|
||||||
|
* **24.12.24:** - Rebase to Alpine 3.21.
|
||||||
|
* **31.05.24:** - Rebase to Alpine 3.20.
|
||||||
|
* **23.12.23:** - Rebase to Alpine 3.19.
|
||||||
|
* **25.05.23:** - Rebase to Alpine 3.18, deprecate armhf.
|
||||||
|
* **18.12.22:** - Rebase main to 3.17.
|
||||||
|
* **27.10.22:** - Rebase main to 3.16, migrate to s6v3.
|
||||||
|
* **20.08.22:** - Don't install cypress.
|
||||||
|
* **01.04.22:** - Rebase main branch to Alpine 3.15.
|
||||||
|
* **27.01.22:** - Rebase develop branch to Alpine 3.15.
|
||||||
|
* **04.01.22:** - Remove cached files.
|
||||||
|
* **10.10.21:** - Add additional post-build cleanup.
|
||||||
|
* **19.09.21:** - Rebase to alpine 3.14. Update code formatting. Increase js mem limit.
|
||||||
* **05.04.21:** - Initial Release.
|
* **05.04.21:** - Initial Release.
|
||||||
|
|||||||
@ -24,8 +24,8 @@ repo_vars:
|
|||||||
- CI_PORT='5055'
|
- CI_PORT='5055'
|
||||||
- CI_SSL='false'
|
- CI_SSL='false'
|
||||||
- CI_DELAY='300'
|
- CI_DELAY='300'
|
||||||
- CI_DOCKERENV='TZ=US/Pacific'
|
- CI_DOCKERENV=''
|
||||||
- CI_AUTH='user:password'
|
- CI_AUTH=''
|
||||||
- CI_WEBPATH=''
|
- CI_WEBPATH=''
|
||||||
sponsor_links:
|
sponsor_links:
|
||||||
- { name: "Overseerr Github Sponsors", url: "https://github.com/sponsors/sct" }
|
- { name: "Overseerr Github Sponsors", url: "https://github.com/sponsors/sct" }
|
||||||
|
|||||||
1816
package_versions.txt
Executable file
1816
package_versions.txt
Executable file
File diff suppressed because it is too large
Load Diff
@ -5,46 +5,93 @@ project_name: overseerr
|
|||||||
project_url: "https://overseerr.dev/"
|
project_url: "https://overseerr.dev/"
|
||||||
project_logo: "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/overseerr.png"
|
project_logo: "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/overseerr.png"
|
||||||
project_blurb: |
|
project_blurb: |
|
||||||
[{{ project_name|capitalize }}]({{ project_url }}) is a free and open source software application for managing requests for your media library.
|
[{{ project_name|capitalize }}]({{ project_url }}) is a request management and media discovery tool built to work with your existing Plex ecosystem.
|
||||||
|
|
||||||
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: "Media Requesters"
|
||||||
|
# deprecation information
|
||||||
|
project_deprecation_status: true
|
||||||
|
project_deprecation_message: "Overseerr has now merged with Jellyseerr, we recommend migrating to the official Seerr image: https://github.com/seerr-team/seerr"
|
||||||
# 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"}
|
||||||
- { arch: "{{ arch_armhf }}", tag: "arm32v7-latest"}
|
|
||||||
|
|
||||||
# development version
|
# development version
|
||||||
development_versions: true
|
development_versions: true
|
||||||
development_versions_items:
|
development_versions_items:
|
||||||
- { tag: "latest", desc: "Stable releases from GitHub" }
|
- {tag: "latest", desc: "Stable releases from GitHub"}
|
||||||
- { tag: "develop", desc: "Development releases from commits in upstream develop branch" }
|
- {tag: "develop", desc: "Development releases from commits in upstream develop branch"}
|
||||||
|
|
||||||
# container parameters
|
# container parameters
|
||||||
common_param_env_vars_enabled: true
|
common_param_env_vars_enabled: true
|
||||||
param_container_name: "{{ project_name }}"
|
param_container_name: "{{ project_name }}"
|
||||||
|
|
||||||
param_usage_include_env: true
|
|
||||||
param_env_vars:
|
|
||||||
- { env_var: "TZ", env_value: "America/New_York", desc: "Specify a timezone to use EG America/New_York"}
|
|
||||||
|
|
||||||
param_usage_include_ports: true
|
param_usage_include_ports: true
|
||||||
param_ports:
|
param_ports:
|
||||||
- { external_port: "5055", internal_port: "5055", port_desc: "Port for Overseerr's web interface." }
|
- {external_port: "5055", internal_port: "5055", port_desc: "Port for Overseerr's web interface."}
|
||||||
|
|
||||||
param_usage_include_vols: true
|
param_usage_include_vols: true
|
||||||
param_volumes:
|
param_volumes:
|
||||||
- { vol_path: "/config", vol_host_path: "/path/to/appdata/config", desc: "Contains all relevant configuration files." }
|
- {vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Persistent config files"}
|
||||||
|
readonly_supported: true
|
||||||
# optional parameters
|
nonroot_supported: true
|
||||||
opt_param_usage_include_vols: false
|
|
||||||
|
|
||||||
# application setup block
|
# application setup block
|
||||||
app_setup_block_enabled: true
|
app_setup_block_enabled: true
|
||||||
app_setup_block: |
|
app_setup_block: |
|
||||||
Access the webui at `<your-ip>:5055`, for more information check out [Overseerr](https://overseerr.dev/).
|
Access the webui at `<your-ip>:5055`, for more information check out [Overseerr](https://overseerr.dev/).
|
||||||
|
# init diagram
|
||||||
|
init_diagram: |
|
||||||
|
"overseerr: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-overseerr-config -> init-config-end
|
||||||
|
init-config -> init-crontab-config
|
||||||
|
init-mods-end -> init-custom-files
|
||||||
|
init-config-end -> init-deprecate
|
||||||
|
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-overseerr-config
|
||||||
|
init-custom-files -> init-services
|
||||||
|
init-deprecate -> init-services
|
||||||
|
init-services -> svc-cron
|
||||||
|
svc-cron -> legacy-services
|
||||||
|
init-services -> svc-overseerr
|
||||||
|
svc-overseerr -> legacy-services
|
||||||
|
}
|
||||||
|
Base Images: {
|
||||||
|
"baseimage-alpine:3.22"
|
||||||
|
}
|
||||||
|
"overseerr:latest" <- Base Images
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
- { date: "05.04.21:", desc: "Initial Release." }
|
- {date: "05.07.25:", desc: "Rebase to Alpine 3.22."}
|
||||||
|
- {date: "05.07.25:", desc: "Rebase to Alpine 3.22."}
|
||||||
|
- {date: "24.12.24:", desc: "Rebase to Alpine 3.21."}
|
||||||
|
- {date: "31.05.24:", desc: "Rebase to Alpine 3.20."}
|
||||||
|
- {date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
|
||||||
|
- {date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf."}
|
||||||
|
- {date: "18.12.22:", desc: "Rebase main to 3.17."}
|
||||||
|
- {date: "27.10.22:", desc: "Rebase main to 3.16, migrate to s6v3."}
|
||||||
|
- {date: "20.08.22:", desc: "Don't install cypress."}
|
||||||
|
- {date: "01.04.22:", desc: "Rebase main branch to Alpine 3.15."}
|
||||||
|
- {date: "27.01.22:", desc: "Rebase develop branch to Alpine 3.15."}
|
||||||
|
- {date: "04.01.22:", desc: "Remove cached files."}
|
||||||
|
- {date: "10.10.21:", desc: "Add additional post-build cleanup."}
|
||||||
|
- {date: "19.09.21:", desc: "Rebase to alpine 3.14. Update code formatting. Increase js mem limit."}
|
||||||
|
- {date: "05.04.21:", desc: "Initial Release."}
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
# permissions
|
|
||||||
chown -R abc:abc \
|
|
||||||
/config
|
|
||||||
17
root/etc/s6-overlay/s6-rc.d/init-deprecate/run
Executable file
17
root/etc/s6-overlay/s6-rc.d/init-deprecate/run
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
echo '
|
||||||
|
╔════════════════════════════════════════════════════╗
|
||||||
|
╠════════════════════════════════════════════════════╣
|
||||||
|
║ ║
|
||||||
|
║ This image is deprecated. ║
|
||||||
|
║ We will not offer support for this image ║
|
||||||
|
║ and it will not be updated. ║
|
||||||
|
║ ║
|
||||||
|
╠════════════════════════════════════════════════════╣
|
||||||
|
╚════════════════════════════════════════════════════╝
|
||||||
|
|
||||||
|
Overseerr has now merged with Jellyseerr, we recommend migrating to the official Seerr image: https://github.com/seerr-team/seerr
|
||||||
|
|
||||||
|
══════════════════════════════════════════════════════'
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-deprecate/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-deprecate/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
oneshot
|
||||||
0
root/etc/s6-overlay/s6-rc.d/init-deprecate/up
Normal file
0
root/etc/s6-overlay/s6-rc.d/init-deprecate/up
Normal file
10
root/etc/s6-overlay/s6-rc.d/init-overseerr-config/run
Executable file
10
root/etc/s6-overlay/s6-rc.d/init-overseerr-config/run
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
mkdir -p /run/overseerr-temp
|
||||||
|
|
||||||
|
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||||
|
lsiown -R abc:abc \
|
||||||
|
/config \
|
||||||
|
/run/overseerr-temp
|
||||||
|
fi
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-overseerr-config/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-overseerr-config/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-overseerr-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-overseerr-config/up
Normal file
@ -0,0 +1 @@
|
|||||||
|
/etc/s6-overlay/s6-rc.d/init-overseerr-config/run
|
||||||
@ -0,0 +1 @@
|
|||||||
|
3
|
||||||
14
root/etc/s6-overlay/s6-rc.d/svc-overseerr/run
Executable file
14
root/etc/s6-overlay/s6-rc.d/svc-overseerr/run
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
export CONFIG_DIRECTORY="/config"
|
||||||
|
|
||||||
|
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||||
|
exec \
|
||||||
|
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 5055" \
|
||||||
|
cd /app/overseerr s6-setuidgid abc /usr/bin/yarn start
|
||||||
|
else
|
||||||
|
exec \
|
||||||
|
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 5055" \
|
||||||
|
cd /app/overseerr /usr/bin/yarn start
|
||||||
|
fi
|
||||||
1
root/etc/s6-overlay/s6-rc.d/svc-overseerr/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-overseerr/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
cd /app/overseerr || exit
|
|
||||||
|
|
||||||
export CONFIG_DIRECTORY="/config"
|
|
||||||
|
|
||||||
exec \
|
|
||||||
s6-setuidgid abc /usr/bin/yarn start
|
|
||||||
Loading…
x
Reference in New Issue
Block a user