You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2020/04/28 04:15:56 UTC
[GitHub] [beam] Hannah-Jiang opened a new pull request #11549: [BEAM-9136] Update doc about docker image license pulling
Hannah-Jiang opened a new pull request #11549:
URL: https://github.com/apache/beam/pull/11549
R: @ibzib
------------------------
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
- [ ] [**Choose reviewer(s)**](https://beam.apache.org/contribute/#make-your-change) and mention them in a comment (`R: @username`).
- [ ] Format the pull request title like `[BEAM-XXX] Fixes bug in ApproximateQuantiles`, where you replace `BEAM-XXX` with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
- [ ] Update `CHANGES.md` with noteworthy changes.
- [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
See the [Contributor Guide](https://beam.apache.org/contribute) for more tips on [how to make review process smoother](https://beam.apache.org/contribute/#make-reviewers-job-easier).
Post-Commit Tests Status (on master branch)
------------------------------------------------------------------------------------------------
Lang | SDK | Apex | Dataflow | Flink | Gearpump | Samza | Spark
--- | --- | --- | --- | --- | --- | --- | ---
Go | [](https://builds.apache.org/job/beam_PostCommit_Go/lastCompletedBuild/) | --- | --- | [](https://builds.apache.org/job/beam_PostCommit_Go_VR_Flink/lastCompletedBuild/) | --- | --- | [](https://builds.apache.org/job/beam_PostCommit_Go_VR_Spark/lastCompletedBuild/)
Java | [](https://builds.apache.org/job/beam_PostCommit_Java/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Apex/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow_Java11/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink_Java11/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink_Batch/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink_Streaming/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Gearpump/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Samza/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Spark_Batch/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_SparkStructuredStreaming/lastCompletedBuild/)
Python | [](https://builds.apache.org/job/beam_PostCommit_Python2/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Python35/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Python36/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Python37/lastCompletedBuild/) | --- | [](https://builds.apache.org/job/beam_PostCommit_Py_VR_Dataflow/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Py_VR_Dataflow_V2/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Py_ValCont/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PreCommit_Python2_PVR_Flink_Cron/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Python35_VR_Flink/lastCompletedBuild/) | --- | --- | [](https://builds.apache.org/job/beam_PostCommit_Python_VR_Spark/lastCompletedBuild/)
XLang | --- | --- | --- | [](https://builds.apache.org/job/beam_PostCommit_XVR_Flink/lastCompletedBuild/) | --- | --- | [](https://builds.apache.org/job/beam_PostCommit_XVR_Spark/lastCompletedBuild/)
Pre-Commit Tests Status (on master branch)
------------------------------------------------------------------------------------------------
--- |Java | Python | Go | Website
--- | --- | --- | --- | ---
Non-portable | [](https://builds.apache.org/job/beam_PreCommit_Java_Cron/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PreCommit_Python_Cron/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PreCommit_Go_Cron/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PreCommit_Website_Cron/lastCompletedBuild/)
Portable | --- | [](https://builds.apache.org/job/beam_PreCommit_Portable_Python_Cron/lastCompletedBuild/) | --- | ---
See [.test-infra/jenkins/README](https://github.com/apache/beam/blob/master/.test-infra/jenkins/README.md) for trigger phrase, status and link of all Jenkins jobs.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] aaltay commented on pull request #11549: [BEAM-9136] Update doc about docker image license pulling
Posted by GitBox <gi...@apache.org>.
aaltay commented on pull request #11549:
URL: https://github.com/apache/beam/pull/11549#issuecomment-628965670
@Hannah-Jiang - you can continue with this change now. However you will need to rebase.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Hannah-Jiang closed pull request #11549: [BEAM-9136] Update doc about docker image license pulling
Posted by GitBox <gi...@apache.org>.
Hannah-Jiang closed pull request #11549:
URL: https://github.com/apache/beam/pull/11549
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Hannah-Jiang commented on pull request #11549: [BEAM-9136] Update doc about docker image license pulling
Posted by GitBox <gi...@apache.org>.
Hannah-Jiang commented on pull request #11549:
URL: https://github.com/apache/beam/pull/11549#issuecomment-629024197
> @Hannah-Jiang - you can continue with this change now. However you will need to rebase.
Thanks for letting me know. I created a new PR https://github.com/apache/beam/pull/11549 and will close this one.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ibzib commented on pull request #11549: [BEAM-9136] Update doc about docker image license pulling
Posted by GitBox <gi...@apache.org>.
ibzib commented on pull request #11549:
URL: https://github.com/apache/beam/pull/11549#issuecomment-623596078
The folks working on the website migration have requested that we pause website changes until they are finished with #11554 ([email thread](https://lists.apache.org/thread.html/r6b999b6d7d1f6cbb94e16bb2deed2b65098a6b14c4ac98707fe0c36a%40%3Cdev.beam.apache.org%3E)). @Hannah-Jiang can you please split this PR into 2 separate PRs for release notes and website changes?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ibzib commented on a change in pull request #11549: [BEAM-9136] Update doc about docker image license pulling
Posted by GitBox <gi...@apache.org>.
ibzib commented on a change in pull request #11549:
URL: https://github.com/apache/beam/pull/11549#discussion_r416781568
##########
File path: CHANGES.md
##########
@@ -122,13 +122,22 @@ conversion to beam schema options. *Remark: Schema aware is still experimental.*
values as strings) into Python native types that are written to Avro
(Python's date, datetime types, decimal, etc). For more information
see https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#avro_conversions.
+* Licenses/notices of third party dependencies are added to Java and Python SDK docker images. ([BEAM-9136](https://issues.apache.org/jira/browse/BEAM-9136))
+
+ <b>Java SDK images</b>: By default, it checks if the licenses/notices are pullable, instead of pulling the licenses/notices. In order to pull licenses, `docker-pull-licenses` variable should ba passed.
Review comment:
```suggestion
<b>Java SDK images</b>: By default, it checks if the licenses/notices are pullable, instead of pulling the licenses/notices. In order to pull licenses, `docker-pull-licenses` variable should be passed.
```
##########
File path: CHANGES.md
##########
@@ -122,13 +122,22 @@ conversion to beam schema options. *Remark: Schema aware is still experimental.*
values as strings) into Python native types that are written to Avro
(Python's date, datetime types, decimal, etc). For more information
see https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#avro_conversions.
+* Licenses/notices of third party dependencies are added to Java and Python SDK docker images. ([BEAM-9136](https://issues.apache.org/jira/browse/BEAM-9136))
+
+ <b>Java SDK images</b>: By default, it checks if the licenses/notices are pullable, instead of pulling the licenses/notices. In order to pull licenses, `docker-pull-licenses` variable should ba passed.
+
+ <b>Python SDK images</b>: By default, it pulls licenses/notices of the third party licenses.
+
+ If you want to create lightweight images or do not want to deal with licenses, you can pass `no-licenses` variable when build docker images to skip it.
Review comment:
This depends on #11548, right?
##########
File path: CHANGES.md
##########
@@ -122,13 +122,22 @@ conversion to beam schema options. *Remark: Schema aware is still experimental.*
values as strings) into Python native types that are written to Avro
(Python's date, datetime types, decimal, etc). For more information
see https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#avro_conversions.
+* Licenses/notices of third party dependencies are added to Java and Python SDK docker images. ([BEAM-9136](https://issues.apache.org/jira/browse/BEAM-9136))
+
+ <b>Java SDK images</b>: By default, it checks if the licenses/notices are pullable, instead of pulling the licenses/notices. In order to pull licenses, `docker-pull-licenses` variable should ba passed.
Review comment:
Please say what "it" refers to here (ie the Docker gradle task)
##########
File path: CHANGES.md
##########
@@ -122,13 +122,22 @@ conversion to beam schema options. *Remark: Schema aware is still experimental.*
values as strings) into Python native types that are written to Avro
(Python's date, datetime types, decimal, etc). For more information
see https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#avro_conversions.
+* Licenses/notices of third party dependencies are added to Java and Python SDK docker images. ([BEAM-9136](https://issues.apache.org/jira/browse/BEAM-9136))
+
+ <b>Java SDK images</b>: By default, it checks if the licenses/notices are pullable, instead of pulling the licenses/notices. In order to pull licenses, `docker-pull-licenses` variable should ba passed.
+
+ <b>Python SDK images</b>: By default, it pulls licenses/notices of the third party licenses.
Review comment:
```suggestion
<b>Python SDK images</b>: By default, it pulls licenses/notices of the third party dependencies.
```
##########
File path: website/src/documentation/runtime/environments.md
##########
@@ -119,6 +119,10 @@ To build Beam SDK container images:
./gradlew [--file=path/to/new/Dockerfile] :sdks:python:container buildAll
```
+From 2.21.0, licenses of third party dependencies were added to docker images by default.
+If you want to creat lightweight images or do not like to deal with licenses, `no-licenses` variable can be used to skip adding licenses.
Review comment:
```suggestion
If you want to create lightweight images or do not like to deal with licenses, `no-licenses` variable can be used to skip adding licenses.
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Hannah-Jiang commented on a change in pull request #11549: [BEAM-9136] Update doc about docker image license pulling
Posted by GitBox <gi...@apache.org>.
Hannah-Jiang commented on a change in pull request #11549:
URL: https://github.com/apache/beam/pull/11549#discussion_r416821826
##########
File path: CHANGES.md
##########
@@ -122,13 +122,22 @@ conversion to beam schema options. *Remark: Schema aware is still experimental.*
values as strings) into Python native types that are written to Avro
(Python's date, datetime types, decimal, etc). For more information
see https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#avro_conversions.
+* Licenses/notices of third party dependencies are added to Java and Python SDK docker images. ([BEAM-9136](https://issues.apache.org/jira/browse/BEAM-9136))
+
+ <b>Java SDK images</b>: By default, it checks if the licenses/notices are pullable, instead of pulling the licenses/notices. In order to pull licenses, `docker-pull-licenses` variable should ba passed.
+
+ <b>Python SDK images</b>: By default, it pulls licenses/notices of the third party licenses.
+
+ If you want to create lightweight images or do not want to deal with licenses, you can pass `no-licenses` variable when build docker images to skip it.
Review comment:
yep, correct. The sentence is very likely to be changed. I will add WIP to the title for now.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Hannah-Jiang commented on a change in pull request #11549: [BEAM-9136] Update doc about docker image license pulling
Posted by GitBox <gi...@apache.org>.
Hannah-Jiang commented on a change in pull request #11549:
URL: https://github.com/apache/beam/pull/11549#discussion_r417745330
##########
File path: CHANGES.md
##########
@@ -122,13 +122,22 @@ conversion to beam schema options. *Remark: Schema aware is still experimental.*
values as strings) into Python native types that are written to Avro
(Python's date, datetime types, decimal, etc). For more information
see https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#avro_conversions.
+* Licenses/notices of third party dependencies are added to Java and Python SDK docker images. ([BEAM-9136](https://issues.apache.org/jira/browse/BEAM-9136))
+
+ <b>Java SDK images</b>: By default, it checks if the licenses/notices are pullable, instead of pulling the licenses/notices. In order to pull licenses, `docker-pull-licenses` variable should ba passed.
+
+ <b>Python SDK images</b>: By default, it pulls licenses/notices of the third party licenses.
+
+ If you want to create lightweight images or do not want to deal with licenses, you can pass `no-licenses` variable when build docker images to skip it.
Review comment:
It is updated with the recent consensus. PTAL.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org