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