[
https://issues.apache.org/jira/browse/RANGER-3310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17359806#comment-17359806
]
Chia-Ping Tsai commented on RANGER-3310:
----------------------------------------
[~madhan] Could you take a look? The build slow down as it needs to download
all dependencies (especially, ranger requires a bunch of dependencies). Also,
the heavily download may violate the rules of apache
(https://infra.apache.org/infra-ban.html).
> build_ranger_using_docker.sh does not reuse maven local cache
> -------------------------------------------------------------
>
> Key: RANGER-3310
> URL: https://issues.apache.org/jira/browse/RANGER-3310
> Project: Ranger
> Issue Type: Bug
> Components: build-infra
> Reporter: Chia-Ping Tsai
> Assignee: Chia-Ping Tsai
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The command 'stat -c "%u" pom.xml' is used to get the UID from host. However,
> the command is not supported by macOS. Hence, macOS users can't pass 'mvn
> xxxx' to call build_ranger_using_docker.sh since it causes error like "stat:
> illegal option -- c". The maven cache of host is mounted to correct path when
> the command line starts with "mvn". In other words, macOS users can't reuse
> maven cache and all dependencies have to be download again...
> This patch aims to add following changes.
> 1. instead of using gosu, we directly align UDI inside/outside containers
> (the container can modify the .m2 folder of host)
> 2. mount the m2 folder to correct path when running container.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)