[ 
https://issues.apache.org/jira/browse/RANGER-3310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chia-Ping Tsai updated RANGER-3310:
-----------------------------------
    Description: 
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".However, the local maven repo is NOT mounted to correct location 
($HOME/.m2) if we don't pass "mvn xxx" to "build_ranger_using_docker.sh".

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.



  was: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 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".However, the local maven repo is NOT mounted to correct 
> location ($HOME/.m2) if we don't pass "mvn xxx" to 
> "build_ranger_using_docker.sh".
> 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)

Reply via email to