Build images#2028
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2028 +/- ##
=======================================
Coverage 95.61% 95.61%
=======================================
Files 30 30
Lines 8881 8881
Branches 1311 1311
=======================================
Hits 8492 8492
Misses 240 240
Partials 149 149 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Got it. Confirmed the new image is working. I will try docker next. |
| or docker/podman. | ||
|
|
||
| ``` | ||
| podman run -it -v /tmp:/tmp -e DISPLAY=$DISPLAY -t ghcr.io/cadquery/cadquery-docker:master ipython -i -c"from cadquery.func import *; from cadquery.vis import show; show(box(1,1,1))" |
There was a problem hiding this comment.
remove extra redundant '-t'.
| or docker/podman. | ||
|
|
||
| ``` | ||
| podman run -it -v /tmp:/tmp -e DISPLAY=$DISPLAY -t ghcr.io/cadquery/cadquery-docker:master ipython -i -c"from cadquery.func import *; from cadquery.vis import show; show(box(1,1,1))" |
There was a problem hiding this comment.
FYI, the command works for me on linux (with changes):
a. use PR branch name as master is not yet published
b. I need to add: --userns=keep-id --user "$(id -u):$(id -g)"
and: --device /dev/dri
c. For SELinux I need to add: --security-opt label=disable
and more narrow bind also works: -v /tmp/.X11-unix:/tmp/.X11-unix
No changes needed, just for future reference.
| To quickly get started you can use apptainer | ||
|
|
||
| ``` | ||
| apptainer run oras://ghcr.io/cadquery/cadquery-apptainer:master ipython -i -c"from cadquery.func import *; form cadquery.vis import show; show(box(1,1,1))" |
There was a problem hiding this comment.
typo: form caquery.vis -> from cadquery.vis
I confirm the command works for me without any other changes except for the typo and using PR branch name rather than master.
| environment.yml /opt | ||
| images/install_gl.sh /opt/install_gl.sh | ||
| images/install_env.sh /opt/install_env.sh | ||
| environment.yml /opt |
There was a problem hiding this comment.
looks like a duplicate copy?
| EnvironmentFile: environment.yml | ||
|
|
||
| %help | ||
| This container container a Python environment with CadQuery. |
|
|
||
| To see what packages are in the environment: | ||
|
|
||
| apptainer run micromamba list |
There was a problem hiding this comment.
apptainer run micromamba list
change to ->
apptainer run my_environment.sif micromamba list
This will enable to cadquery without any setup (other than installing apptainer/docker/...)