update dockerfile

This commit is contained in:
LingZhaoHui 2022-08-14 23:53:28 +08:00
parent 7c820bb4d0
commit 7e4ab29a48

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