`vpn` environment : misc containers refactor
This merge requests covers pieces of #138 (closed) "VPN/container env better packaging".
- change
config.env
VPN configuration files handling- goal: no
config.env
used indocker-compose.yml
file, so that we candocker build
when theconfig.env
don't exist - goal: no
config.env
under git tracking, so that they don'tgit diff
when running - principle:
config.env
handling does not rely anymore on theenv_file
tag ofdocker-compose.yml
(aka passing env variable to container). We now source theconfig.env
file when needed aka (1) in theentrypoint.sh
script (2) in the.bashrc
of the container's account (note: this will only be done when using bash, but anyway sourcing.bashrc
is optional, it is done for convenience so that VPN env is already set when connecting to container) - changes for user: see
README_tempo.md
aka- template for
vpnserver
config file now inconfig.env.template
so start with acp config.env.template config.env
-
config.env
syntax changed fromVAR=value
toexport 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)