update dockerfile #6

Merged
zeekling merged 1 commits from init into main 2022-08-14 15:54:03 +00:00

20
flink/build.sh Executable file
View File

@ -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