TheNeuralBit commented on a change in pull request #12837:
URL: https://github.com/apache/beam/pull/12837#discussion_r496881878



##########
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:
       Thanks @nielsbasjes that's a great example. Before pursuing a script 
like that though I think we should make sure there's some way we can make it 
possible to build and run docker containers from within this dev container. Do 
we just need to add some binding for `unix:///var/run/docker.sock`?
   
   This [blog 
post](https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/)
 has a suggestion:
   ```
   docker run -v /var/run/docker.sock:/var/run/docker.sock ...
   ```
   
   If that makes it possible to run `./gradlew 
:sdks:python:container:py37:docker` and we can roll it into a 
`start-build-env.sh` script I'd be in favor
   




----------------------------------------------------------------
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:
[email protected]


Reply via email to