Skip to content

Commit

Permalink
Add --args to ctf challenge deploy for extra docker run arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
pl4nty authored Mar 15, 2023
1 parent cdabe54 commit 96f9277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctfcli/utils/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def ssh(challenge, host, protocol):
[
"ssh",
host.netloc,
f"docker run -d -p{exposed_port}:{exposed_port} --name {image_name} --restart always {image_name}",
f"docker run -d -p{exposed_port}:{exposed_port} --name {image_name} --restart always {image_name}{' '+args if args else ''}",
]
)

Expand Down

0 comments on commit 96f9277

Please sign in to comment.