You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by tb...@apache.org on 2020/01/10 16:16:15 UTC

[brooklyn-dist] branch feature/docker created (now 64d7712)

This is an automated email from the ASF dual-hosted git repository.

tbouron pushed a change to branch feature/docker
in repository https://gitbox.apache.org/repos/asf/brooklyn-dist.git.


      at 64d7712  WIP: Mirror permissions

This branch includes the following new commits:

     new 64d7712  WIP: Mirror permissions

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[brooklyn-dist] 01/01: WIP: Mirror permissions

Posted by tb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tbouron pushed a commit to branch feature/docker
in repository https://gitbox.apache.org/repos/asf/brooklyn-dist.git

commit 64d771202543deb217e7d4a0321273cce10b5b1c
Author: Thomas Bouron <th...@cloudsoftcorp.com>
AuthorDate: Fri Jan 10 15:35:49 2020 +0000

    WIP: Mirror permissions
---
 Jenkinsfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 70f8461..6adee3b 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -45,7 +45,9 @@ node(label: 'ubuntu') {
 
             stage('Run tests') {
                 environmentDockerImage.inside('-i --name brooklyn-${DOCKER_TAG} -v ${WORKSPACE}/.m2:/var/maven/.m2 --mount type=bind,source="${HOME}/.m2/settings.xml",target=/var/maven/.m2/settings.xml,readonly -v /var/run/docker.sock:/var/run/docker.sock -v ${WORKSPACE}:/usr/build -w /usr/build') {
-                    sh 'mvn clean install -Prpm -Pdeb -Pdocker -Duser.home=/var/maven -Duser.name=jenkins'
+                    sh 'addgroup -gid 999 docker'
+                    sh 'usermod -aG docker $(whoami)'
+                    sh 'mvn clean install -Prpm -Pdeb -Pdocker -Duser.home=/var/maven -Duser.name=jenkins -rf :karaf-docker-image'
                 }
             }
         }