Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more configurable options via env vars #153

Closed
wants to merge 3 commits into from

Conversation

erral
Copy link
Member

@erral erral commented Nov 11, 2024

No description provided.

skeleton/docker-entrypoint.sh Outdated Show resolved Hide resolved
@erral
Copy link
Member Author

erral commented Nov 12, 2024

@1letter

@1letter
Copy link

1letter commented Nov 12, 2024

@erral sholud not be the max_request_body_size config value also configurable in the zope.ini ?

[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 8080
threads = 2
clear_untrusted_proxy_headers = false
max_request_body_size = 1073741824

@erral
Copy link
Member Author

erral commented Nov 12, 2024

@erral sholud not be the max_request_body_size config value also configurable in the zope.ini ?

[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 8080
threads = 2
clear_untrusted_proxy_headers = false
max_request_body_size = 1073741824

Mmm.... right. Should it be ZOPE_FORM_MEMORY_LIMIT or another new variable?

@1letter
Copy link

1letter commented Nov 12, 2024

Mmm.... right. Should it be ZOPE_FORM_MEMORY_LIMIT or another new variable?

max_request_body_size should be equal or greater form-memory-limit, for me is it not important how much vars are involved, the main thing is: it should be configurable ;-)

@erral
Copy link
Member Author

erral commented Nov 22, 2024

Sorry @1letter I don't know how to do this with environment variables, it looks like they are not available when building the ini file and we would require some kind of search and replace, but I don't know whether this is the right solution.

Copy link
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly zope.ini could be built from instance.yaml using cookiecutter-zope-instance at image build time, but that should probably be a separate PR. This one looks okay to me.

@davisagli
Copy link
Member

@erral I think the CI is failing on trying to log in to Docker Hub since you submitted this PR from a fork. Could you open a new one from a branch in this repository? I just sent an invite to the Installers team which should give you access.

@erral erral closed this Jan 28, 2025
@erral
Copy link
Member Author

erral commented Jan 28, 2025

@erral I think the CI is failing on trying to log in to Docker Hub since you submitted this PR from a fork. Could you open a new one from a branch in this repository? I just sent an invite to the Installers team which should give you access.

Done, thanks!

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.

3 participants