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

[MINOR] Docker file end bind mount point #109

Merged
merged 1 commit into from
Dec 15, 2022

Conversation

singjc
Copy link
Contributor

@singjc singjc commented Nov 26, 2022

I added a final working directory (/data/) in the Dockerfile, because I found that when using the click.argument parser to collect files based on wild glob expansion (i.e. *.sqMass), I would get an error on failing to find the path to files when calling pyprophet from docker. So I explicitly set the end working directory of the docker image to /data/ in the Dockerfile, and then bind the local directory to /data/ when running from docker.

docker run -it --rm -v $PWD:/data/ pyprophet/pyprophet:2.1.10 pyprophet filter --in /data/merged.osw  *.sqMass
Usage: pyprophet filter [OPTIONS] [SQMASSFILES]...
Try 'pyprophet filter --help' for help.

Error: Invalid value for '[SQMASSFILES]...': Path 'test.sqMass' does not exist.

@grosenberger grosenberger merged commit 14c6344 into PyProphet:master Dec 15, 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.

2 participants