Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctf challenge deploy with registry succeeds but faults with TypeError #98

Open
pl4nty opened this issue Sep 17, 2022 · 1 comment
Open

Comments

@pl4nty
Copy link
Contributor

pl4nty commented Sep 17, 2022

ctf challenge deploy chal registry://myregistry fails with TypeError: cannot unpack non-iterable NoneType object, because it tries to unpack data that isn't returned when deploying to a registry:

status, domain, port = DEPLOY_HANDLERS[url.scheme](

def registry(challenge, host):
# Build image
image_name = build_image(challenge=challenge)
print(f"Built {image_name}")
url = urlparse(host)
tag = f"{url.netloc}{url.path}"
subprocess.call(["docker", "tag", image_name, tag])
subprocess.call(["docker", "push", tag])

@pl4nty pl4nty changed the title ctf challenge deploy with registry fails with TypeError ctf challenge deploy with registry succeeds but faults with TypeError Sep 17, 2022
@ColdHeat
Copy link
Member

This is a known issue that we are expecting to work on later this year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants