kopia lustrzana https://github.com/jupyterhub/repo2docker
change parameter handling to 'action=append'
rodzic
5f95a5ddd3
commit
d5d9b894b6
|
@ -300,7 +300,7 @@ class Repo2Docker(Application):
|
||||||
argparser.add_argument(
|
argparser.add_argument(
|
||||||
'--env', '-e',
|
'--env', '-e',
|
||||||
dest='environment',
|
dest='environment',
|
||||||
nargs='+',
|
action='append',
|
||||||
help='Environment variables to define at container run time',
|
help='Environment variables to define at container run time',
|
||||||
default=[]
|
default=[]
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,7 +16,8 @@ def test_env():
|
||||||
subprocess.check_call([
|
subprocess.check_call([
|
||||||
'repo2docker',
|
'repo2docker',
|
||||||
'-v', '{}:/home/{}'.format(tmpdir, username),
|
'-v', '{}:/home/{}'.format(tmpdir, username),
|
||||||
'-e', 'FOO={}'.format(ts), 'BAR=baz',
|
'-e', 'FOO={}'.format(ts),
|
||||||
|
'--env', 'BAR=baz',
|
||||||
'--',
|
'--',
|
||||||
tmpdir,
|
tmpdir,
|
||||||
'/bin/bash',
|
'/bin/bash',
|
||||||
|
|
Ładowanie…
Reference in New Issue