nytimes/rd-blender-docker

new version 2.91.2?

pigLoveRabbit520 opened this issue · 2 comments

new version 2.91.2?

Thanks for opening the issue @salamander-mh 🙏

Currently, we only build and publish major and minor version releases, so the next version would be 2.92 (once it comes out)

However, you can modify one of the Dockerfiles in dist to achieve a 2.91.2 container, here is an example with GPU support

FROM nvidia/cudagl:10.1-base-ubuntu18.04

# Enviorment variables
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ENV PATH "$PATH:/bin/2.91/python/bin/"
ENV BLENDER_PATH "/bin/2.91"
ENV BLENDERPIP "/bin/2.91/python/bin/pip3"
ENV BLENDERPY "/bin/2.91/python/bin/python3.7m"
ENV HW="GPU"

# Install dependencies
RUN apt-get update && apt-get install -y \ 
	wget \ 
	libopenexr-dev \ 
	bzip2 \ 
	build-essential \ 
	zlib1g-dev \ 
	libxmu-dev \ 
	libxi-dev \ 
	libxxf86vm-dev \ 
	libfontconfig1 \ 
	libxrender1 \ 
	libgl1-mesa-glx \ 
	xz-utils

# Download and install Blender
RUN wget https://mirror.clarkson.edu/blender/release/Blender2.91/blender-2.91.2-linux64.tar.xz \ 
	&& tar -xvf blender-2.91.2-linux64.tar.xz --strip-components=1 -C /bin \ 
	&& rm -rf blender-2.91.2-linux64.tar.xz \ 
	&& rm -rf blender-2.91.2-linux64 

# Download the Python source since it is not bundled with Blender
RUN wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz \ 
	&& tar -xzf Python-3.7.0.tgz \ 
	&& cp -r Python-3.7.0/Include/* $BLENDER_PATH/python/include/python3.7m/ \ 
	&& rm -rf Python-3.7.0.tgz \ 
	&& rm -rf Python-3.7.0 

# Blender comes with a super outdated version of numpy (which is needed for matplotlib / opencv) so override it with a modern one
RUN rm -rf ${BLENDER_PATH}/python/lib/python3.7/site-packages/numpy 

# Must first ensurepip to install Blender pip3 and then new numpy
RUN ${BLENDERPY} -m ensurepip && ${BLENDERPIP} install --upgrade pip && ${BLENDERPIP} install numpy

# Set the working directory
WORKDIR /

Closing this issue for now, but if this doesn't work for you feel free to re-open, open a new one.