Commit 7af38573 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Dockerfile.sh : prend désormais en argument la version de PHP, ex: 7.0

parent 55128be7
Loading
Loading
Loading
Loading
+14 −2
Changes for Dockerfile.sh: 14 added lines, 2 removed lines.
Original line number Diff line number Diff line
#!/usr/bin/env bash

#
# Script d'install d'un serveur, inspiré du Dockerfile.
# Script d'install d'un serveur, traduction du Dockerfile.
#

usage() {
  cat << EOF
Script d'install d'un serveur, traduction du Dockerfile.
Usage: $0 <version de PHP>
EOF
  exit 0;
}

[[ -z $1 ]] && usage

################################################################################################################

SYGAL_DIR=$(cd `dirname $0` && pwd)

set -e
@@ -18,7 +30,7 @@ apt-get install -y \
export UNICAEN_IMAGE_TMP_DIR=/tmp/docker-unicaen-image
git clone https://git.unicaen.fr/open-source/docker/unicaen-image.git ${UNICAEN_IMAGE_TMP_DIR}
cd ${UNICAEN_IMAGE_TMP_DIR}
bash Dockerfile.sh
bash Dockerfile.sh ${PHP_VERSION}


cd ${SYGAL_DIR}