diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-04-15 12:14:24 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-04-15 12:14:24 +0200 |
commit | 64617bf4c8c954defeb63d737c25531a0c9e127b (patch) | |
tree | 721e4c09b508eb4c64f3ccbd738b1d1121c84d05 /jjb/functest/functest-pi.yaml | |
parent | 060f9d0f13519e5e180038ce2baa5f8ff7009c45 (diff) |
Set uid and gid to 1000 in all jobs
It works globally even if most of containers aren't
leveraging 1000 as uid (root is allowed to write
everywhere).
Change-Id: I8b2892cd9abc28a87417ad90a7dca6cd16dab319
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb/functest/functest-pi.yaml')
-rw-r--r-- | jjb/functest/functest-pi.yaml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/jjb/functest/functest-pi.yaml b/jjb/functest/functest-pi.yaml index 9afca8f4f..23dcb51dc 100644 --- a/jjb/functest/functest-pi.yaml +++ b/jjb/functest/functest-pi.yaml @@ -112,6 +112,8 @@ volumes: '{volumes}' env: '{env}' network: '{network}' + uid: '{uid}' + gid: '{gid}' DASHBOARD_URL: '{DASHBOARD_URL}' - builder: @@ -151,8 +153,8 @@ else image={repo}:{port}/{container}:{tag} fi - mkdir -p $WORKSPACE/results - chown 1000:1000 $WORKSPACE/results + sudo mkdir -p $WORKSPACE/results + sudo chown {uid}:{gid} $WORKSPACE/results sudo docker run --rm \ --privileged={privileged} \ --network={network} \ @@ -330,6 +332,8 @@ - tempest_horizon privileged: 'false' network: bridge + uid: 1000 + gid: 1000 jobs: - 'functest-pi-ollivier-functest-healthcheck-{tag}-{test}-run' @@ -386,6 +390,8 @@ - tempest_cyborg privileged: 'false' network: bridge + uid: 1000 + gid: 1000 exclude: - tag: latest test: refstack_defcore @@ -603,6 +609,8 @@ - tempest_slow_cntt privileged: 'false' network: bridge + uid: 1000 + gid: 1000 jobs: - 'functest-pi-ollivier-functest-smoke-cntt-{tag}-{test}-run' @@ -641,6 +649,8 @@ - shaker privileged: 'false' network: bridge + uid: 1000 + gid: 1000 jobs: - 'functest-pi-ollivier-functest-benchmarking-{tag}-{test}-run' @@ -677,6 +687,8 @@ - rally_jobs_cntt privileged: 'false' network: bridge + uid: 1000 + gid: 1000 jobs: - 'functest-pi-ollivier-functest-benchmarking-cntt-{tag}-{test}-run' @@ -716,6 +728,8 @@ - juju_epc privileged: 'false' network: bridge + uid: 1000 + gid: 1000 jobs: - 'functest-pi-ollivier-functest-vnf-{tag}-{test}-run' |