You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/10/09 09:59:00 UTC

[jira] [Work logged] (BEAM-10891) Dockerfile for development container

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

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

                Author: ASF GitHub Bot
            Created on: 09/Oct/20 09:58
            Start Date: 09/Oct/20 09:58
    Worklog Time Spent: 10m 
      Work Description: nielsbasjes commented on a change in pull request #12837:
URL: https://github.com/apache/beam/pull/12837#discussion_r502321007



##########
File path: website/www/site/content/en/contribute/_index.md
##########
@@ -94,6 +94,11 @@ $ go get github.com/linkedin/goavro
 
 gLinux users should configure their machines for sudoless Docker.
 
+Alternatively, you can use the [Dockerfile](https://github.com/apache/beam/blob/master/Dockerfile) to setup a container meeting the requirements above, and mounting the directory that contains the Beam repo to the container. e.g.:
+```shell script
+docker run -it --mount type=bind,source=/Users/jsmith/Desktop/beam,target=/workspaces/beam <CONTAINER_ID> bash
+```

Review comment:
       This /var/run/docker.sock trick seems like something other projects would like also.
   I do wonder how portable this is. I expect this to work under Linux. But how does that work on a Mac or even something like Windows?
   I also wonder is this will work on all Linux systems. For one I have read that CentOS 8 no longer installs docker in favor of Podman/Buildah (but there is a podman-docker package so you can still have the same commands). 
   
   Looking at this effort I propose to have multiple goals to achieve:
   
   1. Have the docker image that can do "most" of the build (i.e. skip the parts that need docker). 
       Seems like this is already there now.
   1. Include the script I mentioned so developers can already use this for a lot of the work. 
       Should be an easy addition.
   1. Figure out how to run docker commands inside this environment and add that as a later enhancement.
       I expect this to be a major additional effort because of the variations in underlying implementations.
       A first version can simply be `if /var/run/docker.sock then "enable this" else "simply don't" ` 
   
   




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


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

    Worklog Id:     (was: 497858)
    Time Spent: 1.5h  (was: 1h 20m)

> Dockerfile for development container
> ------------------------------------
>
>                 Key: BEAM-10891
>                 URL: https://issues.apache.org/jira/browse/BEAM-10891
>             Project: Beam
>          Issue Type: Improvement
>          Components: website
>            Reporter: Omar Ismail
>            Assignee: Omar Ismail
>            Priority: P2
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Create Dockerfile as alternative to instructions presented in https://beam.apache.org/contribute/#prerequisites



--
This message was sent by Atlassian Jira
(v8.3.4#803005)