Add -w parameter for windows path (#1351)

* add -w parameter for windows path

* add -w parameter for windows path
This commit is contained in:
Martin Muller 2020-02-25 17:44:32 +01:00 committed by GitHub
parent 2e126b787d
commit 00d236e186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -37,4 +37,4 @@ RUN addgroup -g ${GROUPID} ${GROUPNAME} && \
EXPOSE 8080
USER ${USERNAME}
ENTRYPOINT [ "/entrypoint.sh" ]
ENTRYPOINT [ "sh", "/entrypoint.sh" ]

View File

@ -5,6 +5,7 @@ show_help() {
echo ""
echo "-k or --keycloak if you want to use keycloak as identity provider"
echo "-d or --down delete all container"
echo "-wp or --windows-path convert to Windows path"
echo "-hi or --host-ip set the host ip"
echo "-hp or --host-port set the host port. Default 8080"
echo "-w or --wait wait for backend. Default true"
@ -16,6 +17,10 @@ set_keycloak(){
KEYCLOAK="true"
}
set_windows_path(){
export COMPOSE_CONVERT_WINDOWS_PATHS=1
}
down(){
docker-compose down
exit 0
@ -49,6 +54,7 @@ while [[ $1 == -* ]]; do
case "$1" in
-h|--help|-\?) show_help; exit 0;;
-k|--keycloak) set_keycloak; shift;;
-wp|--windows-path) set_windows_path; shift;;
-d|--down) down; shift;;
-aca) redeploy_aca; shift;;
-w|--wait) set_wait $2; shift 2;;