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 memory/CPU limit, and parameters to docker run #8

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

thomasyu888
Copy link
Contributor

@thomasyu888 thomasyu888 commented Apr 29, 2021

  • Add in memory + CPU parameters (implement CPU limitation)
  • Don't rely on hardcoded paths in the model, require the model to take --input and --output parameters.
  • Remove status check in run docker step

@thomasyu888 thomasyu888 requested a review from vpchung March 8, 2022 11:27
Copy link
Member

@vpchung vpchung left a comment

Choose a reason for hiding this comment

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

Looks good, just one minor comment.

mem_limit='6g', stderr=True)
container = client.containers.run(
docker_image,
"--input /data --output /output",
Copy link
Member

Choose a reason for hiding this comment

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

We normally specify the input directory as /input -- should we update the template to /data instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think these need to be parameters to the cwl file.

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.

2 participants