Allow user to change config and scripts folder

This commit is contained in:
Roberto Bermejo Martinez
2018-09-28 21:11:22 +02:00
parent 687a6a812c
commit f2cc4b6f19
7 changed files with 37 additions and 28 deletions

View File

@@ -1,5 +1,6 @@
## Scripting
There is often an occasion where you need to run a script on code to do a transformation once code lands in the container. For this reason we have developed scripting support. By including a scripts folder in your git repository and passing the __RUN_SCRIPTS=1__ flag to your command line the container will execute your scripts. Please see the [repo layout guidelines](https://gitlab.com/ric_harvey/nginx-php-fpm/blob/master/docs/repo_layout.md) for more details on how to organise this.
In addition, you can configure __SCRIPT_FOLDER__ with your custome path.
## Using environment variables / templating
To set the variables pass them in as environment variables on the docker command line.