nulib/support/template.sh

23 lines
669 B
Bash
Raw Normal View History

2024-03-27 20:44:37 +04:00
#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
# Modèle de script utilisant rundk pour lancer un traitement dans un container
2024-03-27 21:39:01 +04:00
# Ce script est à la racine du projet et rundk se trouve dans sbin/
2024-04-19 12:27:08 +04:00
RUNDKDIR=sbin
2024-03-27 20:44:37 +04:00
MYDIR="$(dirname -- "$0")"; MYNAME="$(basename -- "$0")"
2024-03-27 21:39:01 +04:00
if [ -z "$_RUNDK_IN_DOCKER" ]; then
2024-04-19 12:27:08 +04:00
"$MYDIR/$RUNDKDIR/rundk" --bs --ue --ci || exit 1
exec "$MYDIR/$RUNDKDIR/rundk" "$0" "$@"
2024-03-27 21:39:01 +04:00
fi
2024-04-19 12:27:08 +04:00
source "$MYDIR/$RUNDKDIR/rundk" || exit 1
source "$PROJDIR/$VENDORDIR/nulib/php/load.sh" || exit 1
2024-03-27 20:44:37 +04:00
args=(
"description"
#"usage"
)
parse_args "$@"; set -- "${args[@]}"
echo "je tourne dans un container..."
sleep 1000