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

Am I using docker wrong? #35

Open
muppet3000 opened this issue Apr 18, 2024 · 3 comments
Open

Am I using docker wrong? #35

muppet3000 opened this issue Apr 18, 2024 · 3 comments
Labels
🐞 bug Something isn't working

Comments

@muppet3000
Copy link

Describe the bug
I've been trying to run handsdown following the steps described in the docker section but I've had no luck. I keep getting:

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "handsdown": executable file not found in $PATH: unknown.
ERRO[0001] error waiting for container: context canceled

To Reproduce
It's unclear from the documentation whether or not you should be in the repo for the project you want to build the docs for, or in the parent directory, however it doesn't make a difference same error either way:

sudo docker run -v `pwd`:/app handsdown -n PROJECT_NAME
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "handsdown": executable file not found in $PATH: unknown.
ERRO[0000] error waiting for container: context canceled

The only way I have got documentation to generate is as follows:

  1. Note that the directory I'm mounting the code to is irrelevant it just helped with testing
    sudo docker run -it -v ${PWD}:${PWD} --entrypoint=/bin/sh handsdown
  2. cd <mounted directory>
  3. python /handsdown/handsdown/main.py

Note, if you just try to run /handsdown/handsdown/main.py the user the docker container runs as doesn't have permissions and it fails

Expected behavior
The application runs and generates the documentation

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Tested on Centos 7 and Fedora latest

Additional context
N/A

@muppet3000 muppet3000 added the 🐞 bug Something isn't working label Apr 18, 2024
@vemel
Copy link
Owner

vemel commented Apr 25, 2024

Thank you for the report!

I have not used dockerized handsdown for quite a while. I will check and let you know.

@muppet3000
Copy link
Author

Thanks, if you work out what I'm doing wrong please let me know.
Alternatively if you want help correcting the Dockerfile I'll happily submit a PR with what works for me, although I'm not a python expert so there could be better ways to implement what I got to work.

@vemel
Copy link
Owner

vemel commented Apr 25, 2024

Sure, please share your suggestions here or prepare a PR. I would appreciate some help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants