cadquery-server
cadquery-server copied to clipboard
Docker-image doesn't determine files
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
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}"