kopia lustrzana https://github.com/jupyterhub/repo2docker
commit
ca144b0ed8
|
@ -137,19 +137,25 @@ class Repo2Docker(Application):
|
||||||
help='If building a git url, which ref to check out'
|
help='If building a git url, which ref to check out'
|
||||||
)
|
)
|
||||||
|
|
||||||
argparser.add_argument(
|
|
||||||
'--push',
|
|
||||||
dest='push',
|
|
||||||
action='store_true',
|
|
||||||
help='Push docker image to repository'
|
|
||||||
)
|
|
||||||
|
|
||||||
argparser.add_argument(
|
argparser.add_argument(
|
||||||
'--debug',
|
'--debug',
|
||||||
help="Turn on debug logging",
|
help="Turn on debug logging",
|
||||||
action='store_true',
|
action='store_true',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
argparser.add_argument(
|
||||||
|
'--no-build',
|
||||||
|
dest='build',
|
||||||
|
action='store_false',
|
||||||
|
help="Do not actually build the image. Useful in conjunction with --debug."
|
||||||
|
)
|
||||||
|
|
||||||
|
argparser.add_argument(
|
||||||
|
'cmd',
|
||||||
|
nargs=argparse.REMAINDER,
|
||||||
|
help='Custom command to run after building container'
|
||||||
|
)
|
||||||
|
|
||||||
argparser.add_argument(
|
argparser.add_argument(
|
||||||
'--no-run',
|
'--no-run',
|
||||||
dest='run',
|
dest='run',
|
||||||
|
@ -165,16 +171,10 @@ class Repo2Docker(Application):
|
||||||
)
|
)
|
||||||
|
|
||||||
argparser.add_argument(
|
argparser.add_argument(
|
||||||
'--no-build',
|
'--push',
|
||||||
dest='build',
|
dest='push',
|
||||||
action='store_false',
|
action='store_true',
|
||||||
help="Do not actually build the image. Useful in conjunction with --debug."
|
help='Push docker image to repository'
|
||||||
)
|
|
||||||
|
|
||||||
argparser.add_argument(
|
|
||||||
'cmd',
|
|
||||||
nargs='*',
|
|
||||||
help='Custom command to run after building container'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
return argparser
|
return argparser
|
||||||
|
|
Ładowanie…
Reference in New Issue