[ 
https://issues.apache.org/jira/browse/BEAM-13314?focusedWorklogId=737863&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-737863
 ]

ASF GitHub Bot logged work on BEAM-13314:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Mar/22 23:37
            Start Date: 07/Mar/22 23:37
    Worklog Time Spent: 10m 
      Work Description: tvalentyn commented on a change in pull request #16938:
URL: https://github.com/apache/beam/pull/16938#discussion_r821196498



##########
File path: website/www/site/content/en/documentation/runtime/environments.md
##########
@@ -171,6 +171,49 @@ creates a Java 8 SDK image with appropriate licenses in 
`/opt/apache/beam/third_
 
 By default, no licenses/notices are added to the docker images.
 
+#### Build an existing container image to make it compatible with Apache Beam 
Runners {#modify-existing-base-image}
+Beam offers a way to take a Beam container image and customize it. But if you 
have an existing base image to be compatible with Apache Beam Runners, use a 
[multi-stage 
build](https://docs.docker.com/develop/develop-images/multistage-build/) 
process to copy over the necessary artifacts from a default Apache Beam base 
image and provide your custom container image.
+
+
+1. Copy necessary artifacts from Apache Beam base image to your image.
+  ```
+  # This can be any container image,
+ FROM python:3.8-slim
+
+ # Install SDK. (needed for Python SDK)
+ RUN pip install --no-cache-dir apache-beam[gcp]==2.25.0

Review comment:
       I thought using Dockerfile params (ARG) in the FROM statement wasn't 
possible. That's what I was referring to.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 737863)
    Time Spent: 3h  (was: 2h 50m)

> Revise recommendations to manage Python pipeline dependencies. 
> ---------------------------------------------------------------
>
>                 Key: BEAM-13314
>                 URL: https://issues.apache.org/jira/browse/BEAM-13314
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core, website
>            Reporter: Valentyn Tymofieiev
>            Assignee: Anand Inguva
>            Priority: P2
>              Labels: usability
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> The page  
> https://beam.apache.org/documentation/sdks/python-pipeline-dependencies/ 
> recommends managing Python dependencies via requirements files.
> This approach is currently inefficient in light of introduction and adoption 
> of PEP-517 by some packages, see: 
> https://lists.apache.org/thread/trljnxo39c0cmff790yff3h8n5okqt3q  and the 
> rest of the thread, and does not mention Custom Containers or SDK prebuilding 
> workflows.
>  
> We should revise it and document best practices.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to