build toutes les images runphp
This commit is contained in:
parent
6e83cdb819
commit
914de961eb
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
||||||
|
source "$(dirname -- "$0")/../load.sh" || exit 1
|
||||||
|
|
||||||
|
force=
|
||||||
|
args=(
|
||||||
|
"Construire toutes les images supportées de runphp"
|
||||||
|
#"usage"
|
||||||
|
-f,--force force=1 "Créer les images même si elles existent déjà"
|
||||||
|
)
|
||||||
|
parse_args "$@"; set -- "${args[@]}"
|
||||||
|
|
||||||
|
export RUNPHP_STANDALONE="$NULIBDIR"
|
||||||
|
export RUNPHP_PROJDIR=
|
||||||
|
export RUNPHP_REGISTRY=
|
||||||
|
export RUNPHP_DIST=
|
||||||
|
export RUNPHP_BUILD_FLAVOUR=
|
||||||
|
|
||||||
|
runphp=("$MYDIR/../runphp/runphp" --bs)
|
||||||
|
[ -z "$force" ] && runphp+=(--ue)
|
||||||
|
|
||||||
|
for RUNPHP_DIST in d12 d11; do
|
||||||
|
for RUNPHP_BUILD_FLAVOUR in +ic ""; do
|
||||||
|
etitle "$RUNPHP_DIST$RUNPHP_BUILD_FLAVOUR"
|
||||||
|
"${runphp[@]}"
|
||||||
|
eend
|
||||||
|
done
|
||||||
|
done
|
|
@ -85,6 +85,8 @@ if [ -n "$RUNPHP_STANDALONE" ]; then
|
||||||
PRIVAREG=docker.io
|
PRIVAREG=docker.io
|
||||||
REGISTRY="$RUNPHP_REGISTRY"
|
REGISTRY="$RUNPHP_REGISTRY"
|
||||||
|
|
||||||
|
[ -n "$RUNPHP_BUILD_FLAVOUR" ] && BUILD_FLAVOUR="$RUNPHP_BUILD_FLAVOUR"
|
||||||
|
|
||||||
else
|
else
|
||||||
[ -n "$PROJDIR" ] || PROJDIR="$(dirname -- "$MYDIR")"
|
[ -n "$PROJDIR" ] || PROJDIR="$(dirname -- "$MYDIR")"
|
||||||
[ "${PROJDIR#/}" != "$PROJDIR" ] || PROJDIR="$(cd "$MYDIR/$PROJDIR"; pwd)"
|
[ "${PROJDIR#/}" != "$PROJDIR" ] || PROJDIR="$(cd "$MYDIR/$PROJDIR"; pwd)"
|
||||||
|
|
|
@ -36,6 +36,8 @@ if [ -n "$RUNPHP_STANDALONE" ]; then
|
||||||
PRIVAREG=docker.io
|
PRIVAREG=docker.io
|
||||||
REGISTRY="$RUNPHP_REGISTRY"
|
REGISTRY="$RUNPHP_REGISTRY"
|
||||||
|
|
||||||
|
[ -n "$RUNPHP_BUILD_FLAVOUR" ] && BUILD_FLAVOUR="$RUNPHP_BUILD_FLAVOUR"
|
||||||
|
|
||||||
else
|
else
|
||||||
[ -n "$PROJDIR" ] || PROJDIR="$(dirname -- "$MYDIR")"
|
[ -n "$PROJDIR" ] || PROJDIR="$(dirname -- "$MYDIR")"
|
||||||
[ "${PROJDIR#/}" != "$PROJDIR" ] || PROJDIR="$(cd "$MYDIR/$PROJDIR"; pwd)"
|
[ "${PROJDIR#/}" != "$PROJDIR" ] || PROJDIR="$(cd "$MYDIR/$PROJDIR"; pwd)"
|
||||||
|
|
Loading…
Reference in New Issue