Skip to content

Commit

Permalink
Merge pull request #2072 from amnonh/allow_local_from_file
Browse files Browse the repository at this point in the history
Allow local from file
  • Loading branch information
amnonh authored Oct 1, 2023
2 parents 552d725 + 049772e commit 524dbb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions start-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,14 @@ if [ -z "$VERSIONS" ]; then
exit 1
fi

DOCKER_PARAMS_ORIGIN="$DOCKER_PARAM"
DOCKER_PARAM=""
for val in $DOCKER_PARAMS_ORIGIN; do
if [[ "$DOCKER_PARAM" != *"$val"* ]]; then
DOCKER_PARAM="$DOCKER_PARAM $val"
fi
done

if [[ $DOCKER_PARAM = *"--net=host"* ]]; then
if [ ! -z "$ALERTMANAGER_PORT" ] || [ ! -z "$GRAFANA_PORT" ] || [ ! -z $PROMETHEUS_PORT ]; then
echo "Port mapping is not supported with host network, remove the -l flag from the command line"
Expand Down
2 changes: 1 addition & 1 deletion start-grafana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ fi
if [ -z "$GRAFANA_AUTH_ANONYMOUS" ]; then
GRAFANA_AUTH_ANONYMOUS=true
fi
DOCKER_PARAM=""
EXTERNAL_VOLUME=""
BIND_ADDRESS=""
if [ -z "$ANONYMOUS_ROLE" ]; then
Expand All @@ -32,6 +31,7 @@ DEFAULT_THEME="light"
if [ -f env.sh ]; then
. env.sh
fi
DOCKER_PARAM=""

BRANCH_VERSION=$CURRENT_VERSION
if [ -z ${DEFAULT_VERSION[$CURRENT_VERSION]} ]; then
Expand Down

0 comments on commit 524dbb1

Please sign in to comment.