From 960f03473cdc76257653408201fd7d44fdbf366e Mon Sep 17 00:00:00 2001 From: Paul Caskey Date: Fri, 6 Jul 2018 12:32:10 -0400 Subject: [PATCH] add windows Dockerfile template --- configBuilder.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/configBuilder.sh b/configBuilder.sh index 4ee1f26..bd02fd7 100755 --- a/configBuilder.sh +++ b/configBuilder.sh @@ -584,7 +584,20 @@ sed "s#keystorePass=\"password\"#keystorePass=\"${STOREPWD}\"#" ${TOMCFG}/server # # copy Dockerfile template # -cp /Dockerfile.template ${PWD}/Dockerfile +case "$BUILD_ENV" in +LINUX | linux) + echo "Generating Dockerfile for a Linux container" + cp /Dockerfile.template ${PWD}/Dockerfile + ;; +WINDOWS | windows) + echo "Generating Dockerfile for a Windows container" + cp /Dockerfile.windows.template ${PWD}/Dockerfile + ;; +*) + echo "Environment variable BUILD_ENV was not found or had an incorrect value (only LINUX|WINDOWS is supported). Terminating." + exit 1 + ;; +esac # if the user chose to use secrets, then generate a directory containing the config with secrets removed