这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@inetol
Copy link
Member

@inetol inetol commented May 25, 2025

Remove the patch functions and ENVs abstraction from the entrypoint, this makes it possible to run the container with immutable configuration required in some setups.

In other setups, it may be required to have the volumes/files under a specific uid/gid (other than searxng:searxng), if the entrypoint has root permissions will correct this, which may not be desired. Explicitly setting the new ENV FORCE_OWNERSHIP=false will prevent ownership from being modified.

There are also some minor consistency changes.

Related: #4818


Latest CI: https://github.com/inetol/searxng/actions/runs/15237554045

@unixfox
Copy link
Contributor

unixfox commented May 25, 2025

Thanks inetol, but isn't that doing double work with this PR: #4820? With this PR #4820, aren't you going to achieve immutable config too?

@inetol
Copy link
Member Author

inetol commented May 25, 2025

But that PR is not ready yet and it might take a couple more weeks to be, I'll rebase the changes there. For now, let's focus on what we have now.

@unixfox
Copy link
Contributor

unixfox commented May 25, 2025

I would prefer to not change around the GHA every day, it's becoming quite difficult to follow.

We have a temporary solution from searxng/searxng-docker#375, we know it's not great, hence why I created a PR to revert searxng/searxng-docker#385. But it works for now.

I would rather spend more time in testing granian (#4820) than introducing changes that will get obsolete at some point with granian.

Remove the patch functions and ENVs abstraction from the entrypoint, this makes it possible to run the container with immutable configuration required in some setups.

In other setups, it may be required to have the volumes/files under a specific uid/gid (other than searxng:searxng), if the entrypoint has root permissions will correct this, which may not be desired. Explicitly setting the new ENV `FORCE_OWNERSHIP=false` will prevent ownership from being modified.

There are also some minor consistency changes.

Related: searxng#4818
@inetol inetol force-pushed the immutable-config branch from 51614c1 to bb97482 Compare May 25, 2025 11:48
@inetol
Copy link
Member Author

inetol commented May 25, 2025

All right, I'll merge the changes there #4820

@inetol inetol closed this May 25, 2025
@inetol inetol deleted the immutable-config branch May 25, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants