diff --git a/dist/3.3.1-cpu-ubuntu18.04/Dockerfile b/dist/3.3.1-cpu-ubuntu18.04/Dockerfile new file mode 100644 index 0000000..e18016e --- /dev/null +++ b/dist/3.3.1-cpu-ubuntu18.04/Dockerfile @@ -0,0 +1,56 @@ +# Dockerfile autogenerated on 06/20/2022, 07:33:14 by root +# Please do not edit this file directly + +FROM ubuntu:18.04 + +LABEL Author="Or Fleisher " +LABEL Title="Blender in Docker" + +# Environment variables +ENV BLENDER_VERSION "3.3.1" +ENV BLENDER_MAJOR_VERSION "3.3" +ENV DEBIAN_FRONTEND noninteractive +ENV LC_ALL C.UTF-8 +ENV LANG C.UTF-8 +ENV PATH "${PATH}:/bin/${BLENDER_MAJOR_VERSION}/python/bin/" +ENV BLENDER_PATH "/bin/${BLENDER_MAJOR_VERSION}" +ENV BLENDERPIP "/bin/${BLENDER_MAJOR_VERSION}/python/bin/pip3" +ENV BLENDERPY "/bin/${BLENDER_MAJOR_VERSION}/python/bin/python3.10" +ENV HW="CPU" + +# 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/Blender${BLENDER_MAJOR_VERSION}/blender-${BLENDER_VERSION}-linux-x64.tar.xz" \ + && tar -xvf blender-${BLENDER_VERSION}-linux-x64.tar.xz --strip-components=1 -C /bin \ + && rm -rf blender-${BLENDER_VERSION}-linux-x64.tar.xz \ + && rm -rf blender-${BLENDER_VERSION}-linux-x64 + +# Download the Python source since it is not bundled with Blender +RUN wget https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tgz \ + && tar -xzf Python-3.10.5.tgz \ + && cp -r Python-3.10.5/Include/* $BLENDER_PATH/python/include/python3.10/ \ + && rm -rf Python-3.10.5.tgz \ + && rm -rf Python-3.10.5 + +# 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.10/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 / \ No newline at end of file diff --git a/dist/3.3.1-gpu-ubuntu18.04/Dockerfile b/dist/3.3.1-gpu-ubuntu18.04/Dockerfile new file mode 100644 index 0000000..e60bed0 --- /dev/null +++ b/dist/3.3.1-gpu-ubuntu18.04/Dockerfile @@ -0,0 +1,56 @@ +# Dockerfile autogenerated on 06/20/2022, 07:33:14 by root +# Please do not edit this file directly + +FROM nvidia/cudagl:10.1-base-ubuntu18.04 + +LABEL Author="Or Fleisher " +LABEL Title="Blender in Docker" + +# Environment variables +ENV BLENDER_VERSION "3.3.1" +ENV BLENDER_MAJOR_VERSION "3.3" +ENV DEBIAN_FRONTEND noninteractive +ENV LC_ALL C.UTF-8 +ENV LANG C.UTF-8 +ENV PATH "${PATH}:/bin/${BLENDER_MAJOR_VERSION}/python/bin/" +ENV BLENDER_PATH "/bin/${BLENDER_MAJOR_VERSION}" +ENV BLENDERPIP "/bin/${BLENDER_MAJOR_VERSION}/python/bin/pip3" +ENV BLENDERPY "/bin/${BLENDER_MAJOR_VERSION}/python/bin/python3.10" +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/Blender${BLENDER_MAJOR_VERSION}/blender-${BLENDER_VERSION}-linux-x64.tar.xz" \ + && tar -xvf blender-${BLENDER_VERSION}-linux-x64.tar.xz --strip-components=1 -C /bin \ + && rm -rf blender-${BLENDER_VERSION}-linux-x64.tar.xz \ + && rm -rf blender-${BLENDER_VERSION}-linux-x64 + +# Download the Python source since it is not bundled with Blender +RUN wget https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tgz \ + && tar -xzf Python-3.10.5.tgz \ + && cp -r Python-3.10.5/Include/* $BLENDER_PATH/python/include/python3.10/ \ + && rm -rf Python-3.10.5.tgz \ + && rm -rf Python-3.10.5 + +# 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.10/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 / \ No newline at end of file diff --git a/manifest.json b/manifest.json index d2c2003..4f2066d 100644 --- a/manifest.json +++ b/manifest.json @@ -328,6 +328,34 @@ "BLENDERPY \"/bin/3.2/python/bin/python3.10\"", "HW=\"GPU\"" ] + }, + { + "tag": "3.3.1-cpu-ubuntu18.04", + "base_os_image": "ubuntu:18.04", + "blender_download_url": "https://mirror.clarkson.edu/blender/release/Blender3.3/blender-3.3.1-linux-x64.tar.xz", + "python_download_url": "https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tgz", + "python_version": "python3.10", + "env": [ + "PATH \"$PATH:/bin/3.3/python/bin/\"", + "BLENDER_PATH \"/bin/3.3\"", + "BLENDERPIP \"/bin/3.3/python/bin/pip3\"", + "BLENDERPY \"/bin/3.3/python/bin/python3.10\"", + "HW=\"CPU\"" + ] + }, + { + "tag": "3.3.1-gpu-ubuntu18.04", + "base_os_image": "nvidia/cudagl:10.1-base-ubuntu18.04", + "blender_download_url": "https://mirror.clarkson.edu/blender/release/Blender3.3/blender-3.3.1-linux-x64.tar.xz", + "python_download_url": "https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tgz", + "python_version": "python3.10", + "env": [ + "PATH \"$PATH:/bin/3.3/python/bin/\"", + "BLENDER_PATH \"/bin/3.3\"", + "BLENDERPIP \"/bin/3.3/python/bin/pip3\"", + "BLENDERPY \"/bin/3.3/python/bin/python3.10\"", + "HW=\"GPU\"" + ] } ] }