You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
835 B
28 lines
835 B
#!/bin/bash
|
|
|
|
SERV_DIR=$(cd $(dirname $0); pwd)
|
|
KAZ_ROOT=$(cd $(dirname $0)/../..; pwd)
|
|
. "${KAZ_ROOT}/bin/.commonFunctions.sh"
|
|
setKazVars
|
|
|
|
SRC_JIR="https://gitlab.com/mojo42/Jirafeau.git"
|
|
SRC_DEP="https://git.kaz.bzh/KAZ/depollueur.git"
|
|
JIR_VER="4.3.0"
|
|
|
|
"${KAZ_BIN_DIR}/installDepollueur.sh"
|
|
|
|
printKazMsg "\n *** Création du Dockerfile Jirafeau"
|
|
|
|
printKazMsg "\n - GIT Jirafeau "
|
|
cd "${KAZ_GIT_DIR}"
|
|
if [ ! -d "Jirafeau" ]; then
|
|
git clone "${SRC_JIR}"
|
|
fi
|
|
|
|
cd "${KAZ_GIT_DIR}/Jirafeau" && git reset --hard && git checkout ${JIR_VER}
|
|
cd "${KAZ_GIT_DIR}/Jirafeau" && rsync -a ../depollueur/src/Jirafeau/[aft].php .
|
|
|
|
printKazMsg "\n - Dockefile"
|
|
cd "${KAZ_ROOT}"
|
|
# Pour permettre la copy de git il faut que le répertoire soit visible de la racine qui lance la construction
|
|
docker build -t filekaz . -f dockers/jirafeau/Dockerfile
|
|
|