`vpn` environment : misc containers refactor
This merge requests covers pieces of #138 (closed) "VPN/container env better packaging".
- change
config.envVPN configuration files handling- goal: no
config.envused indocker-compose.ymlfile, so that we candocker buildwhen theconfig.envdon't exist - goal: no
config.envunder git tracking, so that they don'tgit diffwhen running - principle:
config.envhandling does not rely anymore on theenv_filetag ofdocker-compose.yml(aka passing env variable to container). We now source theconfig.envfile when needed aka (1) in theentrypoint.shscript (2) in the.bashrcof the container's account (note: this will only be done when using bash, but anyway sourcing.bashrcis optional, it is done for convenience so that VPN env is already set when connecting to container) - changes for user: see
README_tempo.mdaka- template for
vpnserverconfig file now inconfig.env.templateso start with acp config.env.template config.env -
config.envsyntax changed fromVAR=valuetoexport VAR=value
- template for
- goal: no
- misc: set easy to understand hostname in containers (eg: node containers have hostname
fedbiomed-vpn-node) - misc: add
EXPOSE(informtational tag) to dockerfile to document exported ports (good practice)