This is an automated email from the ASF dual-hosted git repository.
dianfu pushed a commit to branch release-1.12
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.12 by this push:
new 1b3ae80 [hotfix][docs] Fix the PyFlink version specified in the
Dockerfile
1b3ae80 is described below
commit 1b3ae80c16e527cc829393a5d29a6011829880f7
Author: Dian Fu <[email protected]>
AuthorDate: Fri Dec 18 14:26:29 2020 +0800
[hotfix][docs] Fix the PyFlink version specified in the Dockerfile
---
docs/deployment/resource-providers/standalone/docker.md | 8 ++++++++
docs/deployment/resource-providers/standalone/docker.zh.md | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/docs/deployment/resource-providers/standalone/docker.md
b/docs/deployment/resource-providers/standalone/docker.md
index 21613e2..e23fb5b 100644
--- a/docs/deployment/resource-providers/standalone/docker.md
+++ b/docs/deployment/resource-providers/standalone/docker.md
@@ -296,7 +296,11 @@ There are also more [advanced
ways](#advanced-customization) for customizing the
To build a custom image which has Python and PyFlink prepared, you can refer
to the following Dockerfile:
{% highlight Dockerfile %}
+{% if site.is_stable %}
FROM flink:{{site.version}}
+{% else %}
+FROM flink:latest
+{% endif %}
# install python3 and pip3
RUN apt-get update -y && \
@@ -304,7 +308,11 @@ apt-get install -y python3.7 python3-pip python3.7-dev &&
rm -rf /var/lib/apt/li
RUN ln -s /usr/bin/python3 /usr/bin/python
# install Python Flink
+{% if site.is_stable %}
RUN pip3 install apache-flink[=={{site.version}}]
+{% else %}
+RUN pip3 install apache-flink
+{% endif %}
{% endhighlight %}
Build the image named as **pyflink:latest**:
diff --git a/docs/deployment/resource-providers/standalone/docker.zh.md
b/docs/deployment/resource-providers/standalone/docker.zh.md
index ab9a35b..4893b12 100644
--- a/docs/deployment/resource-providers/standalone/docker.zh.md
+++ b/docs/deployment/resource-providers/standalone/docker.zh.md
@@ -296,7 +296,11 @@ There are also more [advanced
ways](#advanced-customization) for customizing the
To build a custom image which has Python and PyFlink prepared, you can refer
to the following Dockerfile:
{% highlight Dockerfile %}
+{% if site.is_stable %}
FROM flink:{{site.version}}
+{% else %}
+FROM flink:latest
+{% endif %}
# install python3 and pip3
RUN apt-get update -y && \
@@ -304,7 +308,11 @@ apt-get install -y python3.7 python3-pip python3.7-dev &&
rm -rf /var/lib/apt/li
RUN ln -s /usr/bin/python3 /usr/bin/python
# install Python Flink
+{% if site.is_stable %}
RUN pip3 install apache-flink[=={{site.version}}]
+{% else %}
+RUN pip3 install apache-flink
+{% endif %}
{% endhighlight %}
Build the image named as **pyflink:latest**: