Skip to content

Commit

Permalink
[FLINK-34701][release] Update docker-entrypoint.sh for 1.19.0
Browse files Browse the repository at this point in the history
This closes #189
  • Loading branch information
lincoln-lil authored Mar 19, 2024
1 parent 206aa67 commit 20017e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions 1.19/scala_2.12-java11-ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ set_config_options() {
local bin_dir="$FLINK_HOME/bin"
local lib_dir="$FLINK_HOME/lib"

local config_params=""
local config_params=()

while [ $# -gt 0 ]; do
local key="$1"
local value="$2"

config_params+=" -D${key}=${value}"
config_params+=("-D${key}=${value}")

shift 2
done

if [ ! -z "${config_params}" ]; then
eval "${config_parser_script} ${config_dir} ${bin_dir} ${lib_dir} ${config_params}"
if [ "${#config_params[@]}" -gt 0 ]; then
"${config_parser_script}" "${config_dir}" "${bin_dir}" "${lib_dir}" "${config_params[@]}"
fi
}

Expand Down
8 changes: 4 additions & 4 deletions 1.19/scala_2.12-java17-ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ set_config_options() {
local bin_dir="$FLINK_HOME/bin"
local lib_dir="$FLINK_HOME/lib"

local config_params=""
local config_params=()

while [ $# -gt 0 ]; do
local key="$1"
local value="$2"

config_params+=" -D${key}=${value}"
config_params+=("-D${key}=${value}")

shift 2
done

if [ ! -z "${config_params}" ]; then
eval "${config_parser_script} ${config_dir} ${bin_dir} ${lib_dir} ${config_params}"
if [ "${#config_params[@]}" -gt 0 ]; then
"${config_parser_script}" "${config_dir}" "${bin_dir}" "${lib_dir}" "${config_params[@]}"
fi
}

Expand Down
8 changes: 4 additions & 4 deletions 1.19/scala_2.12-java8-ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ set_config_options() {
local bin_dir="$FLINK_HOME/bin"
local lib_dir="$FLINK_HOME/lib"

local config_params=""
local config_params=()

while [ $# -gt 0 ]; do
local key="$1"
local value="$2"

config_params+=" -D${key}=${value}"
config_params+=("-D${key}=${value}")

shift 2
done

if [ ! -z "${config_params}" ]; then
eval "${config_parser_script} ${config_dir} ${bin_dir} ${lib_dir} ${config_params}"
if [ "${#config_params[@]}" -gt 0 ]; then
"${config_parser_script}" "${config_dir}" "${bin_dir}" "${lib_dir}" "${config_params[@]}"
fi
}

Expand Down

0 comments on commit 20017e8

Please sign in to comment.