]> source.dussan.org Git - gitea.git/commit
Add environment variable support for Docker image (#2201)
authorTao Wang <twang2218@gmail.com>
Tue, 31 Oct 2017 08:55:46 +0000 (19:55 +1100)
committerLunny Xiao <xiaolunwen@gmail.com>
Tue, 31 Oct 2017 08:55:46 +0000 (16:55 +0800)
commitd545e32b5623b12ed2c4405be2484ffdfa9432e5
tree127e32dc2a822dd29f5934dbbf7164b40637445e
parentb0b24a2dbb8bca7e99e432d383716d6d811b7981
Add environment variable support for Docker image (#2201)

* Add `gettext` dependencies as we need `envsubst` command;
* Modified s6's gitea setup script, instead of `cp` the template if no
`app.ini` exist, it will substitude the envvars and generate the new
`app.ini`;
* Make `/docker/etc/templates/app.ini` a template contains environment
variables;

Signed-off-by: Tao Wang <twang2218@gmail.com>
Dockerfile
Dockerfile.aarch64
Dockerfile.rpi
docker/etc/s6/gitea/setup
docker/etc/templates/app.ini