You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Konstantin Boudnik (JIRA)" <ji...@apache.org> on 2015/12/23 20:41:47 UTC

[jira] [Comment Edited] (BIGTOP-2171) shared gradle directory on slave containers should be writable for non-root users

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

Konstantin Boudnik edited comment on BIGTOP-2171 at 12/23/15 7:41 PM:
----------------------------------------------------------------------

Looks like something like this should be solving the problem for us. But I'd like to hear from people more advanced in docker
{code}
diff --git docker/bigtop-slaves/centos-6/Dockerfile docker/bigtop-slaves/centos-6/Dockerfile
index 3071d48..787e0db 100644
--- docker/bigtop-slaves/centos-6/Dockerfile
+++ docker/bigtop-slaves/centos-6/Dockerfile
@@ -17,5 +17,6 @@ MAINTAINER oflebbe@apache.org
 
 COPY bigtop_toolchain /etc/puppet/modules/bigtop_toolchain
 COPY gradle.home /usr/share/gradle.home
+RUN chmod -R 777 /usr/share/gradle.home
 
 RUN puppet apply -e "include bigtop_toolchain::installer"
{code}


was (Author: cos):
Looks like something like this should be solving the problem for us. But I'd like to head from people more advanced in docker
{code}
diff --git docker/bigtop-slaves/centos-6/Dockerfile docker/bigtop-slaves/centos-6/Dockerfile
index 3071d48..787e0db 100644
--- docker/bigtop-slaves/centos-6/Dockerfile
+++ docker/bigtop-slaves/centos-6/Dockerfile
@@ -17,5 +17,6 @@ MAINTAINER oflebbe@apache.org
 
 COPY bigtop_toolchain /etc/puppet/modules/bigtop_toolchain
 COPY gradle.home /usr/share/gradle.home
+RUN chmod -R 777 /usr/share/gradle.home
 
 RUN puppet apply -e "include bigtop_toolchain::installer"
{code}

> shared gradle directory on slave containers should be writable for non-root users
> ---------------------------------------------------------------------------------
>
>                 Key: BIGTOP-2171
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-2171
>             Project: Bigtop
>          Issue Type: Bug
>          Components: docker
>    Affects Versions: 1.1.0
>            Reporter: Konstantin Boudnik
>             Fix For: 1.1.0
>
>
> After BIGTOP-2110 slave docker images do auto-setting for GRADLE_HOME and GRADLE_USER_HOME in order to share pre-populated cache. 
> However, these directories aren't writable for non-root users, which leads to gradle build failures if ran by not-privileged users. E.g. smoke tests will be failing because of that.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)