dkbuild: maj templates

This commit is contained in:
Jephté Clain 2023-01-05 08:30:01 +04:00
parent 306e77f307
commit 68a42d0f6a
14 changed files with 11 additions and 46 deletions

View File

@ -1102,6 +1102,9 @@ function load_environ() {
function define_functions_env() { function define_functions_env() {
function setversion() { function setversion() {
[ -n "$SETVERSION_DONE" ] && return [ -n "$SETVERSION_DONE" ] && return
# sans argument, retourner 0
[ $# -eq 0 ] && return
local from_file from_repo from_glob extract local from_file from_repo from_glob extract
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case "$1" in case "$1" in

View File

@ -0,0 +1,3 @@
# -*- coding: utf-8 mode: dockerfile -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
FROM $REGISTRY/debian/min:$DIST
#RUN /debian/pkg i

View File

@ -1,2 +0,0 @@
/b/t/
**/.git/

View File

@ -1,3 +0,0 @@
/b/
/Dockerfile
# autogénéré

View File

@ -1,11 +0,0 @@
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
setdists d10
# fichiers communs
copy ../common/ ./ gitignore=.
dockerfile
# -*- coding: utf-8 mode: dockerfile -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
FROM $REGISTRY/debian/min:$DIST
#RUN /debian/pkg i
build

View File

@ -1 +0,0 @@
../dkbuild.env

View File

@ -4,8 +4,8 @@ setdists d11
# fichiers communs # fichiers communs
copy ../common/ ./ gitignore=. copy ../common/ ./ gitignore=.
dockerfile dockerfile "" Dockerfile.in sed="
# -*- coding: utf-8 mode: dockerfile -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8 s/\\\$REGISTRY/$REGISTRY/
FROM $REGISTRY/debian/min:$DIST s/\\\$DIST/$DIST/
#RUN /debian/pkg i "
build build

View File

@ -1,2 +0,0 @@
/b/t/
**/.git/

View File

@ -1,3 +0,0 @@
/b/
/Dockerfile
# autogénéré

View File

@ -1,11 +0,0 @@
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
setdists d9
# fichiers communs
copy ../common/ ./ gitignore=.
dockerfile
# -*- coding: utf-8 mode: dockerfile -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
FROM $REGISTRY/debian/min:$DIST
#RUN /debian/pkg i
build

View File

@ -1 +0,0 @@
../dkbuild.env

View File

@ -1,15 +1,9 @@
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8 # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
dists=( dists=(
d11 d11
d10
#d9
) )
setdists "${dists[@]}" setdists "${dists[@]}"
if dist d11; then if dist d11; then
include d11 include d11
elif dist d10; then
include d10
elif dist d9; then
include d9
fi fi

View File

@ -1,6 +1,4 @@
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8 # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
setenv DIST=d11
if profile prod; then if profile prod; then
default checkout branch=master default checkout branch=master
elif profile test devel; then elif profile test devel; then

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8 # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
setenv REGISTRY=docker.univ-reunion.fr setenv REGISTRY=docker.univ-reunion.fr
setenv IMAGE=$REGISTRY/GROUP/NAME setenv IMAGE=$REGISTRY/GROUP/NAME
setenv DIST=d11