Skip to content

add windows Dockerfile template #23

Merged
merged 1 commit into from
Jul 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion configBuilder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down