-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[ci] Add non-root user and conda environment #3226
Conversation
✔️ Deploy Preview for jovial-fermat-aa59dc canceled. 🔨 Explore the source changes: ecbc055 🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/616fbd10aadee800077c5072 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Thanks!
Related issue = #3150
Currently support
Ubuntu 20.04 support (tested locally)
Ubuntu 18.04 support (tested locally)
How to get the image:
You can build the image with
nvidia-docker build -t name:tag .
, or pull fromregistry.taichigraphics.com/taichidev-ubuntu20.04:v0.1.0
. orregistry.taichigraphics.com/taichidev-ubuntu18.04:v0.1.0
How to build and test:
nvidia-docker run --user dev -it -d --name container-name --gpus all -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix name:tag /bin/bash
(let it run in detached mode to use the provided script)nvidia-docker exec --user dev -it container-name /home/dev/scripts/ubuntu_build_test.sh SHA="commit-sha-num" PY="py-ver"
For example, you can use
nvidia-docker exec --user dev -it container-name /home/dev/scripts/ubuntu_build_test.sh SHA="c359935b81907945acba33d818933d89ec507089" PY="py38"
to build and test Taichi in Python 3.8 with that specific commit. You can use eitherpy36
,py37
,py38
,py39
.