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

Display proper build errors #306

Open
johanhenriksson opened this issue Apr 25, 2021 · 0 comments
Open

Display proper build errors #306

johanhenriksson opened this issue Apr 25, 2021 · 0 comments
Labels
cli Command Line Tool help wanted Extra attention is needed high High Priority

Comments

@johanhenriksson
Copy link
Collaborator

Getting an ugly stack trace when the base image dockerfile is invalid:

-- BASE -------------------------------------------------------------------------------------------------------------------------------------------
{'message': 'dockerfile parse error line 15: unknown instruction: WGET'}
Traceback (most recent call last):
  File "/Users/johanh/dev/dopeking2/.venv/bin/cowait", line 33, in <module>
    sys.exit(load_entry_point('cowait', 'console_scripts', 'cowait')())
  File "/Users/johanh/dev/pipeline/cowait/__main__.py", line 14, in main
    app(obj=config)
  File "/Users/johanh/dev/dopeking2/.venv/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/johanh/dev/dopeking2/.venv/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/johanh/dev/dopeking2/.venv/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/johanh/dev/dopeking2/.venv/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/johanh/dev/dopeking2/.venv/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/johanh/dev/dopeking2/.venv/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/johanh/dev/pipeline/cowait/cli/app/image.py", line 35, in build
    push=push,
  File "/Users/johanh/dev/pipeline/cowait/cli/commands/build.py", line 83, in build
    raise RuntimeError('Failed to build base image')
RuntimeError: Failed to build base image
@johanhenriksson johanhenriksson added high High Priority help wanted Extra attention is needed cli Command Line Tool labels Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Command Line Tool help wanted Extra attention is needed high High Priority
Projects
None yet
Development

No branches or pull requests

1 participant