Last active
August 12, 2020 16:01
-
-
Save johanmcos/b0ca02e4575a166ff671f42eb46c69b5 to your computer and use it in GitHub Desktop.
jupyter trimesh-notebook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Trimesh-Notebook, Jupyter notebook pre-installed with Trimesh and bundled with their example files. | |
# Copyright (C) 2020 Johan M. Cos | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as | |
# published by the Free Software Foundation, either version 3 of the | |
# License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU Affero General Public License for more details. | |
# | |
# You should have received a copy of the GNU Affero General Public License | |
# along with this program. If not, see <https://www.gnu.org/licenses/>. | |
## AUTHOR: Johan M. Cos | |
## License: AGPLv3 | |
FROM jupyter/scipy-notebook:9b87b1625445 | |
RUN pip install --user --no-cache trimesh | |
RUN wget https://github.com/mikedh/trimesh/archive/3.7.14.tar.gz \ | |
&& echo '820f80bf4ca97ea098cd2ba2c457e0e4de4817ddf407951bf7e7b926544a0eca 3.7.14.tar.gz' | sha256sum -c - \ | |
&& tar -xf 3.7.14.tar.gz \ | |
&& cp -r trimesh-3.7.14/examples ./ \ | |
&& rm -r trimesh-3.7.14 3.7.14.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please note that this Dockerfile hardcodes the Trimesh version the example comes from, this allows verifying the checksum so we can feel confident that this is exactly the code that was intended to be used.
Feel free to fork it and update the version if you'd like!
The base Jupyter image is licensed under modified BSD, Trimesh is licensed under MIT, and to what extent licensing applies to Dockerfiles, I'm releasing this one under the AGPLv3.
I'm providing this Dockerfile in the hopes that it may be useful to others, it is in no way endorsed by either Jupyter or Trimesh.