nutools/lib/dkbuild/dot-dkbuild.env

26 lines
813 B
Bash
Raw Normal View History

2023-01-10 11:09:46 +04:00
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
2023-11-18 06:58:58 +04:00
_valid_profiles=(
prod test devel
jclain
)
_default_profile=devel
[ -z "$DKBUILD_NO_SETPROFILES" ] && setprofiles "$_default_profile" "${_valid_profiles[@]}"
2023-08-07 11:42:03 +04:00
if profile jclain; then
setenv REGISTRY=docker.jclain.fr
2023-08-22 10:43:43 +04:00
setenv PRIVAREG=docker.jclain.fr
2023-08-07 11:42:03 +04:00
elif profile prod test; then
2023-08-22 10:32:14 +04:00
setenv REGISTRY=pubdocker.univ-reunion.fr
2023-08-22 10:43:43 +04:00
setenv PRIVAREG=pridocker.univ-reunion.fr
2023-11-17 23:12:10 +04:00
host_mappings=(
pridocker.univ-reunion.fr:10.85.1.56
pubdocker.univ-reunion.fr:10.85.1.57
repos.univ-reunion.fr:10.85.1.57
git.univ-reunion.fr:10.85.1.55
)
default docker host-mappings="${host_mappings[*]}"
2023-11-18 06:58:58 +04:00
elif profile devel; then
2023-08-11 09:55:46 +04:00
setenv REGISTRY=docker.devel.self
2023-08-22 10:43:43 +04:00
setenv PRIVAREG=docker.devel.self
2023-01-10 11:09:46 +04:00
fi