[ https://issues.apache.org/jira/browse/HADOOP-14739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16689034#comment-16689034 ]
Akira Ajisaka commented on HADOOP-14739: ---------------------------------------- Thank you for the reply! bq. Set USER_NAME and USER_ID globally, so no need to check for OS. Yes. We don't need to check the platform because the variables are set by the same logic in both Mac and Linux. bq. Set GROUP_ID as-is if platform is Linux and any distro except Ubuntu Set GROUP_ID=100 if platform is Linux and distro is Ubuntu No. I'd like to set GROUP_ID as-is if platform is Linux (including Ubuntu), and set GROUP_ID=100 if the platform is Mac. In the following code, normally {{GROUP_ID}} is set to 20 in Mac, {noformat} GROUP_ID=$(id -g "${USER_NAME}") {noformat} and the Docker container (Ubuntu) will create group {{USER_NAME}} that has gid 20, but the gid is already used by dialout group. {noformat} RUN groupadd --non-unique -g ${GROUP_ID} ${USER_NAME} {noformat} I'd like to avoid such situation. > Add build instruction for docker for Mac instead of docker toolbox. > ------------------------------------------------------------------- > > Key: HADOOP-14739 > URL: https://issues.apache.org/jira/browse/HADOOP-14739 > Project: Hadoop Common > Issue Type: Improvement > Components: build, documentation > Reporter: Akira Ajisaka > Assignee: Dinesh Chitlangia > Priority: Minor > Labels: newbie > Attachments: HADOOP-14739.001.patch, HADOOP-14739.002.patch > > > HADOOP-12575 added build instruction for docker toolbox. > Now Docker for Mac (https://www.docker.com/docker-mac) is available and it > can skip some procedures written in BUILDING.txt. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org