From 7e4ab29a48177195db6ebac4fa15cd80661ef8b0 Mon Sep 17 00:00:00 2001 From: zeekling Date: Sun, 14 Aug 2022 23:53:28 +0800 Subject: [PATCH] update dockerfile --- flink/build.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 flink/build.sh diff --git a/flink/build.sh b/flink/build.sh new file mode 100755 index 0000000..af3cc39 --- /dev/null +++ b/flink/build.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +docker pull flink:scala_2.12-java8 + +docker stop jobmanager +docker rm jobmanager +docker stop taskmanager +docker rm taskmanager + +FLINK_PROPERTIES="jobmanager.rpc.address: jobmanager" + +docker run -dit --name="jobmanager" \ + --network flink-network -p 8081:8081 \ + --env FLINK_PROPERTIES="${FLINK_PROPERTIES}" \ + flink:scala_2.12-java8 jobmanager + +docker run -dit --name="taskmanager" \ + --network flink-network \ + --env FLINK_PROPERTIES="${FLINK_PROPERTIES}" \ + flink:scala_2.12-java8 taskmanager -- 2.45.2