You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Nick Dimiduk (Jira)" <ji...@apache.org> on 2019/11/05 01:16:00 UTC

[jira] [Commented] (YETUS-923) Expose volume mount options for users of Docker Desktop

    [ https://issues.apache.org/jira/browse/YETUS-923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16967130#comment-16967130 ] 

Nick Dimiduk commented on YETUS-923:
------------------------------------

Attaching a patch that plumbs through the {{delegated}} volume mount option. Reduces the docker build time to ~30 minutes.

> Expose volume mount options for users of Docker Desktop
> -------------------------------------------------------
>
>                 Key: YETUS-923
>                 URL: https://issues.apache.org/jira/browse/YETUS-923
>             Project: Yetus
>          Issue Type: Improvement
>          Components: Precommit
>            Reporter: Nick Dimiduk
>            Priority: Major
>         Attachments: YETUS-923.demo.patch
>
>
> Running builds in docker using Docker Desktop on a Mac is incredibly slow. Using HBase as a testing tools, a {{man clean install -DskipTests}} run "natively" takes about ~2 minutes while the same command run within the Docker Desktop container environment takes ~45 minutes. Apparently this is to be expected, but can be improved by specifying a [volume mount option|https://docs.docker.com/docker-for-mac/osxfs-caching/]. Right now there's no way to expose such an option to the user. Ideally pre-commit could even detect the environment and apply the necessary options accordingly.



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