Skip to content

Commit

Permalink
scripts/buildrpm.py: add user parameter to docker run cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
fstab50 committed Sep 10, 2019
1 parent c796999 commit 8ecb0bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/buildrpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ def docker_init(src, builddir, osimage, param_dict, debug):
cname = param_dict['DockerContainer'] # container id
host_mnt = VOLMNT # host volume mount point
container_mnt = CONTAINER_VOLMNT # container volume internal mnt pt
docker_user = 'builder'
bash_cmd = '/bin/sleep 30'
buildscript = 'docker-buildrpm.sh'

Expand Down Expand Up @@ -777,6 +778,7 @@ def docker_init(src, builddir, osimage, param_dict, debug):
image=imagename,
command=bash_cmd,
volumes={host_mnt: {'bind': container_mnt, 'mode': 'rw'}},
user=docker_user,
detach=True
)

Expand Down

0 comments on commit 8ecb0bb

Please sign in to comment.