Skip to content

[FLINK-37635] Add Docker Sql Gateway support #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions 1.19/scala_2.12-java11-ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

COMMAND_STANDALONE="standalone-job"
COMMAND_HISTORY_SERVER="history-server"
COMMAND_SQL_GATEWAY="sql-gateway"

# If unspecified, the hostname of the container is taken as the JobManager address
JOB_MANAGER_RPC_ADDRESS=${JOB_MANAGER_RPC_ADDRESS:-$(hostname -f)}
Expand Down Expand Up @@ -176,6 +177,12 @@ elif [ "$1" = ${COMMAND_HISTORY_SERVER} ]; then
echo "Starting History Server"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/historyserver.sh" start-foreground "${args[@]}"
elif [ "$1" = ${COMMAND_SQL_GATEWAY} ]; then
args=("${args[@]:1}")

echo "Starting Sql Gateway"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/sql-gateway.sh" start-foreground "${args[@]}"
elif [ "$1" = "taskmanager" ]; then
args=("${args[@]:1}")

Expand Down
7 changes: 7 additions & 0 deletions 1.19/scala_2.12-java17-ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

COMMAND_STANDALONE="standalone-job"
COMMAND_HISTORY_SERVER="history-server"
COMMAND_SQL_GATEWAY="sql-gateway"

# If unspecified, the hostname of the container is taken as the JobManager address
JOB_MANAGER_RPC_ADDRESS=${JOB_MANAGER_RPC_ADDRESS:-$(hostname -f)}
Expand Down Expand Up @@ -176,6 +177,12 @@ elif [ "$1" = ${COMMAND_HISTORY_SERVER} ]; then
echo "Starting History Server"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/historyserver.sh" start-foreground "${args[@]}"
elif [ "$1" = ${COMMAND_SQL_GATEWAY} ]; then
args=("${args[@]:1}")

echo "Starting Sql Gateway"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/sql-gateway.sh" start-foreground "${args[@]}"
elif [ "$1" = "taskmanager" ]; then
args=("${args[@]:1}")

Expand Down
7 changes: 7 additions & 0 deletions 1.19/scala_2.12-java8-ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

COMMAND_STANDALONE="standalone-job"
COMMAND_HISTORY_SERVER="history-server"
COMMAND_SQL_GATEWAY="sql-gateway"

# If unspecified, the hostname of the container is taken as the JobManager address
JOB_MANAGER_RPC_ADDRESS=${JOB_MANAGER_RPC_ADDRESS:-$(hostname -f)}
Expand Down Expand Up @@ -176,6 +177,12 @@ elif [ "$1" = ${COMMAND_HISTORY_SERVER} ]; then
echo "Starting History Server"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/historyserver.sh" start-foreground "${args[@]}"
elif [ "$1" = ${COMMAND_SQL_GATEWAY} ]; then
args=("${args[@]:1}")

echo "Starting Sql Gateway"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/sql-gateway.sh" start-foreground "${args[@]}"
elif [ "$1" = "taskmanager" ]; then
args=("${args[@]:1}")

Expand Down
7 changes: 7 additions & 0 deletions 1.20/scala_2.12-java11-ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

COMMAND_STANDALONE="standalone-job"
COMMAND_HISTORY_SERVER="history-server"
COMMAND_SQL_GATEWAY="sql-gateway"

# If unspecified, the hostname of the container is taken as the JobManager address
JOB_MANAGER_RPC_ADDRESS=${JOB_MANAGER_RPC_ADDRESS:-$(hostname -f)}
Expand Down Expand Up @@ -176,6 +177,12 @@ elif [ "$1" = ${COMMAND_HISTORY_SERVER} ]; then
echo "Starting History Server"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/historyserver.sh" start-foreground "${args[@]}"
elif [ "$1" = ${COMMAND_SQL_GATEWAY} ]; then
args=("${args[@]:1}")

echo "Starting Sql Gateway"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/sql-gateway.sh" start-foreground "${args[@]}"
elif [ "$1" = "taskmanager" ]; then
args=("${args[@]:1}")

Expand Down
7 changes: 7 additions & 0 deletions 1.20/scala_2.12-java17-ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

COMMAND_STANDALONE="standalone-job"
COMMAND_HISTORY_SERVER="history-server"
COMMAND_SQL_GATEWAY="sql-gateway"

# If unspecified, the hostname of the container is taken as the JobManager address
JOB_MANAGER_RPC_ADDRESS=${JOB_MANAGER_RPC_ADDRESS:-$(hostname -f)}
Expand Down Expand Up @@ -176,6 +177,12 @@ elif [ "$1" = ${COMMAND_HISTORY_SERVER} ]; then
echo "Starting History Server"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/historyserver.sh" start-foreground "${args[@]}"
elif [ "$1" = ${COMMAND_SQL_GATEWAY} ]; then
args=("${args[@]:1}")

echo "Starting Sql Gateway"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/sql-gateway.sh" start-foreground "${args[@]}"
elif [ "$1" = "taskmanager" ]; then
args=("${args[@]:1}")

Expand Down
8 changes: 8 additions & 0 deletions 1.20/scala_2.12-java8-ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

COMMAND_STANDALONE="standalone-job"
COMMAND_HISTORY_SERVER="history-server"
COMMAND_SQL_GATEWAY="sql-gateway"


# If unspecified, the hostname of the container is taken as the JobManager address
JOB_MANAGER_RPC_ADDRESS=${JOB_MANAGER_RPC_ADDRESS:-$(hostname -f)}
Expand Down Expand Up @@ -176,6 +178,12 @@ elif [ "$1" = ${COMMAND_HISTORY_SERVER} ]; then
echo "Starting History Server"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/historyserver.sh" start-foreground "${args[@]}"
elif [ "$1" = ${COMMAND_SQL_GATEWAY} ]; then
args=("${args[@]:1}")

echo "Starting Sql Gateway"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/sql-gateway.sh" start-foreground "${args[@]}"
elif [ "$1" = "taskmanager" ]; then
args=("${args[@]:1}")

Expand Down
7 changes: 7 additions & 0 deletions 2.0/scala_2.12-java11-ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

COMMAND_STANDALONE="standalone-job"
COMMAND_HISTORY_SERVER="history-server"
COMMAND_SQL_GATEWAY="sql-gateway"

# If unspecified, the hostname of the container is taken as the JobManager address
JOB_MANAGER_RPC_ADDRESS=${JOB_MANAGER_RPC_ADDRESS:-$(hostname -f)}
Expand Down Expand Up @@ -176,6 +177,12 @@ elif [ "$1" = ${COMMAND_HISTORY_SERVER} ]; then
echo "Starting History Server"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/historyserver.sh" start-foreground "${args[@]}"
elif [ "$1" = ${COMMAND_SQL_GATEWAY} ]; then
args=("${args[@]:1}")

echo "Starting Sql Gateway"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/sql-gateway.sh" start-foreground "${args[@]}"
elif [ "$1" = "taskmanager" ]; then
args=("${args[@]:1}")

Expand Down
7 changes: 7 additions & 0 deletions 2.0/scala_2.12-java17-ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

COMMAND_STANDALONE="standalone-job"
COMMAND_HISTORY_SERVER="history-server"
COMMAND_SQL_GATEWAY="sql-gateway"

# If unspecified, the hostname of the container is taken as the JobManager address
JOB_MANAGER_RPC_ADDRESS=${JOB_MANAGER_RPC_ADDRESS:-$(hostname -f)}
Expand Down Expand Up @@ -176,6 +177,12 @@ elif [ "$1" = ${COMMAND_HISTORY_SERVER} ]; then
echo "Starting History Server"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/historyserver.sh" start-foreground "${args[@]}"
elif [ "$1" = ${COMMAND_SQL_GATEWAY} ]; then
args=("${args[@]:1}")

echo "Starting Sql Gateway"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/sql-gateway.sh" start-foreground "${args[@]}"
elif [ "$1" = "taskmanager" ]; then
args=("${args[@]:1}")

Expand Down
7 changes: 7 additions & 0 deletions 2.0/scala_2.12-java21-ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

COMMAND_STANDALONE="standalone-job"
COMMAND_HISTORY_SERVER="history-server"
COMMAND_SQL_GATEWAY="sql-gateway"

# If unspecified, the hostname of the container is taken as the JobManager address
JOB_MANAGER_RPC_ADDRESS=${JOB_MANAGER_RPC_ADDRESS:-$(hostname -f)}
Expand Down Expand Up @@ -176,6 +177,12 @@ elif [ "$1" = ${COMMAND_HISTORY_SERVER} ]; then
echo "Starting History Server"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/historyserver.sh" start-foreground "${args[@]}"
elif [ "$1" = ${COMMAND_SQL_GATEWAY} ]; then
args=("${args[@]:1}")

echo "Starting Sql Gateway"

exec $(drop_privs_cmd) "$FLINK_HOME/bin/sql-gateway.sh" start-foreground "${args[@]}"
elif [ "$1" = "taskmanager" ]; then
args=("${args[@]:1}")

Expand Down