Add environment variable RUN_ON_FAIL (#11997)

Co-authored-by: Andre Bruch <ab@andrebruch.com>
Signed-off-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
iternity-dotcom
2021-04-21 01:23:11 +02:00
committed by Harshavardhana
parent 57ae6edeac
commit 4438124948
5 changed files with 9 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ MINT_MODE=${MINT_MODE:-core}
SERVER_REGION=${SERVER_REGION:-us-east-1}
ENABLE_HTTPS=${ENABLE_HTTPS:-0}
ENABLE_VIRTUAL_STYLE=${ENABLE_VIRTUAL_STYLE:-0}
RUN_ON_FAIL=${RUN_ON_FAIL:-0}
GO111MODULE=on
if [ -z "$SERVER_ENDPOINT" ]; then
@@ -136,6 +137,7 @@ function main()
export ENABLE_HTTPS
export SERVER_REGION
export ENABLE_VIRTUAL_STYLE
export RUN_ON_FAIL
export GO111MODULE
echo "Running with"
@@ -147,6 +149,7 @@ function main()
echo "MINT_DATA_DIR: $MINT_DATA_DIR"
echo "MINT_MODE: $MINT_MODE"
echo "ENABLE_VIRTUAL_STYLE: $ENABLE_VIRTUAL_STYLE"
echo "RUN_ON_FAIL: $RUN_ON_FAIL"
echo
echo "To get logs, run 'docker cp ${CONTAINER_ID}:/mint/log /tmp/mint-logs'"
echo