This is an automated email from the ASF dual-hosted git repository.

mbalassi pushed a commit to branch dev-master
in repository https://gitbox.apache.org/repos/asf/flink-docker.git


The following commit(s) were added to refs/heads/dev-master by this push:
     new 7810aea  [readme] Explicitly call out copying the flink distro in 
Readme
7810aea is described below

commit 7810aea07f6d365a7da2ebb986937a7b5e4d709f
Author: Márton Balassi <[email protected]>
AuthorDate: Mon Oct 31 15:51:11 2022 +0100

    [readme] Explicitly call out copying the flink distro in Readme
---
 README.md | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index d2c3bc4..121c38a 100644
--- a/README.md
+++ b/README.md
@@ -2,11 +2,15 @@
 
 ## Building a custom docker image
 
-1. Compress Flink in `flink-dist/target/flink-1.11-SNAPSHOT-bin`: `tar czf 
flink-1.11.tgz flink-1.11-SNAPSHOT`
-2. Start web server ``docker run -it -p 9999:9999 -v `pwd`:/data 
python:3.7.7-slim-buster python -m http.server 9999``
-3. 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"`.
-4. Generate docker image (in `flink-docker/dev/flink-1.11-debian`): `docker 
build -t flink:1.11-SN .`
-5. Run custom Flink docker image: `docker run -it flink:1.11-SN jobmanager`
+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`
 

Reply via email to