[hotfix][ci] Updates actions
1 file changed
tree: e6e6ac4604c77aebc2d792a4e933de13e219e356
  1. .github/
  2. testing/
  3. .gitignore
  4. add-custom.sh
  5. add-version.sh
  6. docker-entrypoint.sh
  7. Dockerfile-ubuntu.template
  8. generator.sh
  9. LICENSE
  10. README.md
README.md

flink-docker / dev-master

Building a custom docker image

The commands shown during these steps serve as an example and assume that you have checked out flink and flink-docker in the same folder and version 1.11. Please substitute your folder structure and version.

  1. Compress Flink in flink/flink-dist/target/flink-1.11-SNAPSHOT-bin: tar czf flink-1.11.tgz flink-1.11-SNAPSHOT
  2. Copy the compressed distro to this project's root: cp flink/flink-dist/target/flink-1.11-SNAPSHOT-bin/flink-1.11.tgz flink-docker
  3. Start web server docker run -it -p 9999:9999 -v `pwd`:/data python:3.7.7-slim-buster python -m http.server 9999
  4. Generate Dockerfile ./add-custom.sh -u http://localhost:9999/data/flink-1.11.tgz -n flink-1.11 (If you are on a Mac or Windows, use host.docker.internal instead of localhost)
    • If you want to build the docker image inside Minikube, then you have to specify the resolved host.minikube.internal which you can look up via minikube ssh "cat /etc/hosts".
  5. Generate docker image (in flink-docker/dev/flink-1.11-debian): docker build -t flink:1.11-SN .
  6. Run custom Flink docker image: docker run -it flink:1.11-SN jobmanager