Skip to content

Commit b907697

Browse files
authored
Add in no-docker and use-docker override to submit command (#970)
* Add in no-docker and use-docker override to submit command * Remove reference to TypeScript * Updated comment to be accurate about config file
1 parent 6d42100 commit b907697

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/rpdk/core/submit.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
def submit(args):
1313
project = Project()
1414
project.load()
15+
# Use CLI override opposed to config file if use-docker or no-docker switch used
16+
if args.use_docker or args.no_docker:
17+
project.settings["use_docker"] = args.use_docker
18+
project.settings["no_docker"] = args.no_docker
1519
project.submit(
1620
args.dry_run,
1721
args.endpoint_url,
@@ -51,3 +55,18 @@ def setup_subparser(subparsers, parents):
5155
help="Register the type without an explicit execution role "
5256
"(Will not be able to invoke AWS APIs).",
5357
)
58+
59+
nodocker_group = parser.add_mutually_exclusive_group()
60+
nodocker_group.add_argument(
61+
"--use-docker",
62+
action="store_true",
63+
help="""Use docker for platform-independent packaging.
64+
This is highly recommended unless you are experienced
65+
with cross-platform packaging.""",
66+
)
67+
nodocker_group.add_argument(
68+
"--no-docker",
69+
action="store_true",
70+
help="""Generally not recommended unless you are experienced
71+
with cross-platform packaging.""",
72+
)

0 commit comments

Comments
 (0)