File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,15 @@ def __init__(self,
6464
6565 # mount the environment file
6666 volumes [self .__env_file .name ] = \
67- {'bind' : '/.environment' , 'mode' : 'rw ' }
67+ {'bind' : '/.environment.host ' , 'mode' : 'ro ' }
6868
6969 # construct a Docker container for this bug
70- cmd = '/bin/bash -v -c "sudo chown $(whoami) /.environment && source /.environment && /bin/bash"'
70+ cmd_cp = 'sudo cp /.environment.host /.environment'
71+ cmd_chown = 'sudo chown $(whoami) /.environment'
72+ cmd_source = 'source /.environment'
73+ cmd = '/bin/bash -v -c "{} && {} && {} && /bin/bash"' .format (cmd_cp ,
74+ cmd_chown ,
75+ cmd_source )
7176 client = docker .from_env () # nooooooooo
7277 self .__container = \
7378 client .containers .create (bug .image ,
You can’t perform that action at this time.
0 commit comments