├── Dockerfile ├── LICENSE └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:bionic 2 | 3 | LABEL authors="Isaac (Ike) Arias " 4 | 5 | RUN apt-get update && \ 6 | apt-get install -y \ 7 | curl \ 8 | libfreetype6 \ 9 | libglu1-mesa \ 10 | libxi6 \ 11 | libxrender1 \ 12 | xz-utils && \ 13 | apt-get -y autoremove && \ 14 | rm -rf /var/lib/apt/lists/* 15 | 16 | ENV BLENDER_MAJOR 2.82 17 | ENV BLENDER_VERSION 2.82a 18 | ENV BLENDER_URL https://download.blender.org/release/Blender${BLENDER_MAJOR}/blender-${BLENDER_VERSION}-linux64.tar.xz 19 | 20 | RUN curl -L ${BLENDER_URL} | tar -xJ -C /usr/local/ && \ 21 | mv /usr/local/blender-${BLENDER_VERSION}-linux64 /usr/local/blender 22 | 23 | VOLUME /media 24 | ENTRYPOINT ["/usr/local/blender/blender", "-b"] 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Isaac Arias 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Supported tags and respective `Dockerfile` links 2 | 3 | * [`2.82a-bionic`, `latest` (*2.82a-bionic/Dockerfile*)](https://github.com/ikester/blender-docker/blob/2.82a-bionic/Dockerfile) 4 | * [`2.82a` (*2.82a/Dockerfile*)](https://github.com/ikester/blender-docker/blob/2.82a/Dockerfile) 5 | * [`2.82` (*2.82/Dockerfile*)](https://github.com/ikester/blender-docker/blob/2.82/Dockerfile) 6 | * [`2.79` (*2.79/Dockerfile*)](https://github.com/ikester/blender-docker/blob/2.79/Dockerfile) 7 | * [`2.78c` (*2.78c/Dockerfile*)](https://github.com/ikester/blender-docker/blob/2.78c/Dockerfile) 8 | * [`2.77a` (*2.77a/Dockerfile*)](https://github.com/ikester/blender-docker/blob/2.77a/Dockerfile) 9 | * [`2.76b` (*2.76b/Dockerfile*)](https://github.com/ikester/blender-docker/blob/2.76b/Dockerfile) 10 | * [`2.75a` (*2.75a/Dockerfile*)](https://github.com/ikester/blender-docker/blob/2.75a/Dockerfile) 11 | * [`2.73a` (*2.73a/Dockerfile*)](https://github.com/ikester/blender-docker/blob/2.73a/Dockerfile) 12 | 13 | These are the Docker Hub Blender autobuild images located [here](https://hub.docker.com/r/ikester/blender-autobuild/). For manual builds [look here](https://hub.docker.com/r/ikester/blender/) instead. 14 | 15 | ![Blender Logo](https://www.blender.org/wp-content/uploads/2015/03/blender_logo_socket.png) 16 | 17 | # What is Blender? 18 | 19 | [Blender](https://www.blender.org) is a free and open source 3D animation suite. It supports the entirety of the 3D pipeline—modeling, rigging, animation, simulation, rendering, compositing and motion tracking, even video editing and game creation. Advanced users employ Blender’s API for Python scripting to customize the application and write specialized tools; often these are included in Blender’s future releases. Blender is well suited to individuals and small studios who benefit from its unified pipeline and responsive development process. 20 | 21 | # How to use this image 22 | 23 | This image is intended to be used as a command line, render-only node for `.blend` files. You will need to create the 3D files beforehand using Blender's full GUI or download one from the many Blender file sharing sites like [Blend Swap](http://www.blendswap.com). 24 | 25 | The entry point for this image is the blender non-gui command line `blender -b`. You can use the `/media/` directory to mount a volume with source files. 26 | 27 | # Rendering a single frame 28 | 29 | To render a single frame from a `blendfile.blend` file located in `/source/path` on the docker host and save the result in the same directory: 30 | 31 | ```console 32 | $ docker run --rm -v /source/path/:/media/ ikester/blender /media/blendfile.blend -o /media/frame_### -f 1 33 | ``` 34 | 35 | This will create a file named `frame_001.png` in the same directory as the source file, assuming that PNG is the default output format for that file. 36 | 37 | # Blender Command Line Reference 38 | 39 | For additional information on Blender's command line parameters and options please visit the command line reference in the [Blender Reference Manual](https://www.blender.org/manual/render/workflows/command_line.html). 40 | 41 | Or you can just run: 42 | `docker run --rm ikester/blender --help` 43 | 44 | # Dockerfile for Blender 45 | 46 | Blender versions are tracked in branches. The `master` branch will always be mapped to the tag `latest`. 47 | 48 | Please visit the [GitHub Page](https://github.com/ikester/blender-docker) for details. 49 | 50 | # License 51 | 52 | This project is released under the MIT license. Please see the `LICENSE` file for details. 53 | 54 | ### Note: This is not an official Blender repository. 55 | --------------------------------------------------------------------------------