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

Docker-image doesn't determine files #68

Open
peedy2495 opened this issue Oct 13, 2022 · 1 comment
Open

Docker-image doesn't determine files #68

peedy2495 opened this issue Oct 13, 2022 · 1 comment

Comments

@peedy2495
Copy link

Image: latest (0.4.1)

Steps to reproduce:

create folder with an cadquery example (here: /home/Peedy/Projects/docker/cadquery/test.py)
launch docker instance as described in README.md
docker run -p 5000:5000 -v /home/Peedy/Projects/docker/cadquery:/data cadquery/cadquery-server

Instance fails with usage output:

usage: cq-server [-h] [-V] {run,build,info} ...

A web server used to render 3d models from CadQuery code, and eventually build
a static website as a showcase for your projects.

options:
-h, --help show this help message and exit
-V, --version print CadQuery Server version and exit

subcommands:
type -h for subcommand usage

{run,build,info}
run run the server
build build static website
info show information about the current target and exit

@arturohernandez10
Copy link

True.
Simple fix is to pass the parameters as if you were running the command locally.

docker run -p 5000:5000 -v C:\Projects\personal\3d\cadquery-server\examples:/data cadquery/cadquery-server run

notice how the help says "usage: cq-server [-h] [-V] {run,build,info}"

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

No branches or pull requests

2 participants