New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FLINK-29961][doc] Make referencing custom image clearer for Docker #20935
base: master
Are you sure you want to change the base?
Conversation
ea41aa4
to
03bf998
Compare
03bf998
to
8ef9ecc
Compare
8ef9ecc
to
83e8e91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liuml07 Thanks for this, I do think we can improve it a bit more. Please have a look
docs/content.zh/docs/deployment/resource-providers/standalone/docker.md
Outdated
Show resolved
Hide resolved
|
||
```Dockerfile | ||
FROM flink:{{< stable >}}{{< version >}}-scala{{< scala_version >}}{{< /stable >}}{{< unstable >}}latest{{< /unstable >}} | ||
RUN wget -P /opt/flink/lib https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka_2.12/{{< version >}}/flink-sql-connector-kafka_scala{{< scala_version >}}-{{< version >}}.jar | ||
``` | ||
|
||
and reference it (e.g via the `build`) command in the Dockerfile. | ||
and reference it (e.g via the `build`) command in the Dockerfile. | ||
and reference this Dockerfile with the `build` command in the `docker-compose.yml` file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it better to actually display the build
command that someone needs to type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0f153d2
to
1212fef
Compare
This was a hotfix PR but since the latest change introduces some example code, I created a JIRA for it. |
…docker.md Co-authored-by: MartijnVisser <martijn@2symbols.com>
1212fef
to
8ed09d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@roncohen Please also take my suggestion changes into account
docs/content.zh/docs/deployment/resource-providers/standalone/docker.md
Outdated
Show resolved
Hide resolved
docs/content.zh/docs/deployment/resource-providers/standalone/docker.md
Outdated
Show resolved
Hide resolved
You probably didn’t mean to mention me? ;) @MartijnVisser |
I honestly don't know how that happened but indeed, I didn't mean to tag you, apologies 😅 |
@liuml07 Can you take my suggested changes into account? |
…docker.md Co-authored-by: MartijnVisser <martijn@2symbols.com>
…docker.md Co-authored-by: MartijnVisser <martijn@2symbols.com>
b996109
to
5891263
Compare
5891263
to
aef1c58
Compare
|
||
```Dockerfile | ||
FROM flink:{{< stable >}}{{< version >}}-scala{{< scala_version >}}{{< /stable >}}{{< unstable >}}latest{{< /unstable >}} | ||
RUN wget -P /opt/flink/lib https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka_2.12/{{< version >}}/flink-sql-connector-kafka_scala{{< scala_version >}}-{{< version >}}.jar | ||
RUN wget -P /opt/flink/lib https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka/{{< version >}}/flink-sql-connector-kafka_scala-{{< version >}}.jar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found the Kafka connector is not including Scala version in the name. So I updated this as well.
Hi @MartijnVisser could you take another look? Thanks |
What is the purpose of the change
Make referencing custom image clearer for Docker
Brief change log
Rephrase the words how to reference custom image when building with Docker standalone mode.
Also add example code.
Verifying this change
Please make sure both new and modified tests in this PR follows the conventions defined in our code quality guide: https://flink.apache.org/contributing/code-style-and-quality-common.html#testing
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation