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

add early error message if docker is missing #113

Conversation

ArberSephirotheca
Copy link

Describe your changes

src/soopervisor/commons: docker.py

Add new method validate_installation(), which takes Commander instance
as argument.
For backends using Docker, validate_installation() will be called at the begining of export()
method.

src/soopervisor: airflow/export.py, argo/export.py, aws/batch.py
, kubeflow/export.py

Invoke validate_installation() at the begining of export() method.

Issue ticket number and link

Closes #72

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have added thorough tests (when necessary).
  • I have added the right documentation (when needed). Product update? If yes, write one line about this update.

Add new method validate_installation(), which takes Commander instance
as argument.
For backends using Docker, it will be called at the begining of export()
method.

src/soopervisor: "airflow/export.py", "argo/export.py", "aws/batch.py"
, "kubeflow/export.py"

Add validate_installation() at the begining of export() method.
Copy link
Contributor

@edublancas edublancas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add some unit tests, you can use shuti.which and then use monkeypatch in the tests to simulate that the user does not have docker installed

Commander instance
"""

cmdr.run(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the user might now have awk installed, so this will fail. an easier way to check this is via shutil.which("docker")

@edublancas
Copy link
Contributor

closing due to inactivity

@edublancas edublancas closed this Sep 28, 2022
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

Successfully merging this pull request may close these issues.

early error message if docker is missing
2 participants