GetDKAN / dkan-tools

CLI tools for DKAN site management
https://getdkan.github.io/dkan-tools/
15 stars 14 forks source link

Update php.ini within containers #324

Closed Katsivelisp closed 2 years ago

Katsivelisp commented 2 years ago

Hello,

I was wondering what's the way to update PHP variables (such as max_file_uploads) within the containers that are generated by DKAN tools. I noticed that these can be configured within the php.ini found in the dkan-cli container, but I would rather not access the container and change them manually.

So, is there a way to modify php.ini and apply changes to the running containers without re-building/resetting my custom project?

Thanks for the good work!

dafeder commented 2 years ago

Hi @Katsivelisp! The cli container in DKAN tools, which is where PHP runs from, scans src/docker/etc/php in your project folder for ini files. So anything you put there should get picked up.

See https://github.com/GetDKAN/dkan-cli/blob/master/Dockerfile#L8

You will probably need to restart your cli container after making any changes.

Katsivelisp commented 2 years ago

Hi @dafeder. This works great, thank you!