Closed mhubig closed 4 years ago
I agree, this is problematic, but I'm afraid there's no other way - Symfony actually creates cache files out of the parameter.php
values. You can try environment variables as documented here: http://symfony.com/doc/current/configuration/external_parameters.html but I'm really not sure if that works out
@mhubig I assume you managed your way around the problem by using the entrypoint function. Thus, I am closing this issue here. If you want to keep it up, please simply give a comment.
I'm trying to build a Dockerfile to ease and speed up the deployment of Partkeepr. One particular problem I found is the use of the
parameters.php
file. In order to be able to build a stateless and reusable Docker image, I need to be able to set the values of the parameters file via some environment variables.My goal is to be able to deploy partkeepr with a
docker-compose.yml
file like this:I tried using
getenv
but it didn't work out:So my only choice for now would be an entrypoint script which takes the environment parameters and generates a working
parameters.php
file ... but this is not a very clean approach!