hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsuyoshi Ozawa (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12576) Same owner of maven repository on Docker container to build user
Date Wed, 18 Nov 2015 18:07:10 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-12576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15011557#comment-15011557

Tsuyoshi Ozawa commented on HADOOP-12576:

Haohui, thank you for the clarification. I got the point.

How about adding a description in BUILDING.txt to add the user which runs docker to docker
group? A following way works on Ubuntu 14.04:

$ sudo gpasswd -a ${USER} docker
$ sudo service docker.io restart
logout and login the machine again.

> Same owner of maven repository on Docker container to build user
> ----------------------------------------------------------------
>                 Key: HADOOP-12576
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12576
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 3.0.0
>            Reporter: Kai Sasaki
>            Assignee: Kai Sasaki
>            Priority: Trivial
>              Labels: docker
>         Attachments: HADOOP-12576.01.patch
> When local maven repository has not yet created, docker container launched by {{start-build-env.sh}}
create it owned by launching user. {{docker}} command ofter be run by root user unless manipulating
docker unix groups.
> In that case, maven local repository is created by root user and building process inside
container fails. 
> It is better to make sure to create maven local repository by just the user who trying
to build before launching docker container if not exist maven local repository.

This message was sent by Atlassian JIRA

View raw message