Dockerfile revamping and NGINX configuration
This MR I brings the following changes:
- files related to the frontend application have been moved in a sub-folder, and docker/nginx configuration in the docker folder. By doing this, we prevent to invalidate the cache at every
docker build
when we change a single file at the root. - Let's encrypt / TLS configuration. (Still miss something to renew the certificates)
- Dynamic URL mapping against containers : calling
/<toolName>/something
will make a request to the related upstream docker container HTTP server athttp://<ContainerHostName>:<port>/something
; the<ContainerHostName>
and<port>
being inferred by amap
in nginx. - separated frontend and tool servers.
- nginx's
server_name
values and some a few other paths are inferred through env variables, leveraging the template system shipped with the nginx image. - tweaked the CI config to push/pull the intermediate stage image so it's not rebuilt from scratch every time.
Edited by Martin Hamant