Skip to content

Commit

Permalink
included required libraries following Autodesk documentation (#7)
Browse files Browse the repository at this point in the history
# Summary

- Updated all images to includes required libraries from Autodesk
documentation.
- Set `MAYA_NO_STANDALONE_ATEXIT=1` on all images.
- Set `MAYA_DISABLE_ADP=1` on all images.
- Updated documentation.
  • Loading branch information
tahv authored May 29, 2024
1 parent 0e97b55 commit d6dc96e
Show file tree
Hide file tree
Showing 5 changed files with 370 additions and 124 deletions.
115 changes: 79 additions & 36 deletions 2022/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

# Install Maya
# maya 2022
RUN apt-get update && apt-get install -y alien wget \
&& wget --no-check-certificate -O maya.tgz https://efulfillment.autodesk.com/NetSWDLD/2022/MAYA/7AA0A333-D72A-3C65-AB0F-0FE0F802014A/ESD/Autodesk_Maya_2022_ML_Linux_64bit.tgz \
&& mkdir maya \
Expand All @@ -17,6 +17,7 @@ RUN apt-get update && apt-get install -y alien wget \
&& ln -s /usr/autodesk/maya/bin/mayapy /usr/autodesk/maya/bin/python \
&& apt-get purge -y alien wget

# libxp6
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:zeehio/libxp || add-apt-repository -y ppa:zeehio/libxp \
Expand All @@ -25,31 +26,23 @@ RUN apt-get update \
&& add-apt-repository --remove ppa:zeehio/libxp \
&& apt-get purge -y software-properties-common

RUN apt-get update && apt-get install -y \
# Utils
wget \
git \
# Maya requirements
libgl1 \
libxkbcommon0 \
libglu1-mesa \
libxinerama1 \
libxmu6 \
libxi6 \
libjpeg62 \
libnss3 \
libxcomposite1 \
libxdamage1 \
libxrender1 \
libxrandr2 \
libxcursor1 \
libxtst6 \
libasound2 \
libcg
# libpng15
RUN apt-get update \
&& apt-get install -y wget zlib1g-dev \
&& wget -O libpng15.tgz https://sourceforge.net/projects/libpng/files/libpng15/older-releases/1.5.15/libpng-1.5.15.tar.gz \
&& tar -xvf libpng15.tgz \
&& rm libpng15.tgz \
&& cd libpng-1.5.15 \
&& ./configure --prefix=/usr/local/libpng \
&& make install \
&& cd ../ \
&& rm -r libpng-1.5.15 \
&& ln -s /usr/local/libpng/lib/libpng15.so.15 /usr/lib/libpng15.so.15 \
&& apt-get purge -y wget zlib1g-dev

# Install libssl.so.10 for Maya and Python
# libssl
RUN apt-get update \
&& apt-get install -y alien \
&& apt-get install -y alien wget \
&& wget -O libssl1.1.deb http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb \
&& dpkg -i libssl1.1.deb \
&& rm libssl1.1.deb \
Expand All @@ -60,23 +53,73 @@ RUN apt-get update \
&& rm compat-openssl10*.deb \
&& ln -s /lib64/libssl.so.10 /lib/x86_64-linux-gnu/libssl.so.10 \
&& ln -s /lib64/libcrypto.so.10 /lib/x86_64-linux-gnu/libcrypto.so.10 \
&& apt-get purge -y alien
&& apt-get purge -y alien wget

RUN wget -O libpng15.tgz https://sourceforge.net/projects/libpng/files/libpng15/older-releases/1.5.15/libpng-1.5.15.tar.gz \
&& tar -xvf libpng15.tgz \
&& rm libpng15.tgz \
&& cd libpng-1.5.15 \
&& apt-get install -y zlib1g-dev \
&& ./configure --prefix=/usr/local/libpng \
&& make install \
&& cd ../ \
&& rm -r libpng-1.5.15 \
&& ln -s /usr/local/libpng/lib/libpng15.so.15 /usr/lib/libpng15.so.15
RUN apt-get update && apt-get install -y \
# Utils
wget \
git \
# Additional required Linux libraries for Maya
libc6 \
libsm6 \
libice6 \
zlib1g \
openssl \
libnss3 \
dbus \
libpcre16-3 \
libglu1-mesa \
libglw1-mesa \
gamin \
libaudiofile-dev \
e2fsprogs \
libcap2 \
libdrm2 \
libmng2 \
flite \
speech-dispatcher \
cups \
libxau6 \
libxcomposite1 \
libxcursor1 \
libxext6 \
libxfixes3 \
libxi6 \
libxmu6 \
libxrandr2 \
libxrender1 \
libxss1 \
libxshmfence1 \
libxt6 \
libxtst6 \
libxinerama1 \
libxcb1 \
libxcb-util1 \
libxcb-ewmh2 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-render-util0 \
libxkbcommon0 \
libxkbcommon-x11-0 \
libx11-6 \
# Additional required packages for running Maya on Ubuntu
libfam0 \
libcurl4 \
libjpeg62 \
libxm4 \
libxcb-xinerama0 \
libxdamage1

# libffi6
RUN wget -O libffi6.deb http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb \
&& dpkg -i libffi6.deb \
&& rm libffi6.deb

RUN mkdir -p /usr/tmp && chmod 777 /usr/tmp \
&& mkdir -p ~/.cache/pip && chmod 777 ~/.cache/pip \
&& mkdir -p /usr/tmp/runtime-root && chmod 777 /usr/tmp/runtime-root

ENV XDG_RUNTIME_DIR=/usr/tmp/runtime-root

ENV PATH=/usr/autodesk/maya/bin:$PATH
ENV MAYA_NO_STANDALONE_ATEXIT=1
ENV MAYA_DISABLE_ADP=1
100 changes: 73 additions & 27 deletions 2023/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

# Install Maya
# maya 2023
RUN apt-get update && apt-get install -y alien wget \
&& wget --no-check-certificate -O maya.tgz https://efulfillment.autodesk.com/NetSWDLD/2023/MAYA/5EC03A3E-DC11-3DF4-B675-4504BA04FF0C/ESD/Autodesk_Maya_2023_ML_Linux_64bit.tgz \
&& mkdir maya \
Expand All @@ -15,8 +15,10 @@ RUN apt-get update && apt-get install -y alien wget \
&& rm -r maya \
&& rm -r /usr/autodesk/maya/Examples \
&& ln -s /usr/autodesk/maya/bin/mayapy /usr/autodesk/maya/bin/python \
&& ln -s /usr/autodesk/maya/lib/libfbxsdk-adsk.so /usr/lib/libfbxsdk-adsk.so \
&& apt-get purge -y alien wget

# libxp6
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:zeehio/libxp || add-apt-repository -y ppa:zeehio/libxp \
Expand All @@ -25,44 +27,88 @@ RUN apt-get update \
&& add-apt-repository --remove ppa:zeehio/libxp \
&& apt-get purge -y software-properties-common

# libpng15
RUN apt-get update \
&& apt-get install -y wget zlib1g-dev \
&& wget -O libpng15.tgz https://sourceforge.net/projects/libpng/files/libpng15/older-releases/1.5.15/libpng-1.5.15.tar.gz \
&& tar -xvf libpng15.tgz \
&& rm libpng15.tgz \
&& cd libpng-1.5.15 \
&& ./configure --prefix=/usr/local/libpng \
&& make install \
&& cd ../ \
&& rm -r libpng-1.5.15 \
&& ln -s /usr/local/libpng/lib/libpng15.so.15 /usr/lib/libpng15.so.15 \
&& apt-get purge -y wget zlib1g-dev

RUN apt-get update && apt-get install -y \
# Utils
wget \
git \
# Maya requirements
libgl1 \
libxkbcommon0 \
libglu1-mesa \
libxinerama1 \
libxmu6 \
libxi6 \
libjpeg62 \
# Additional required Linux libraries for Maya
libc6 \
libsm6 \
libice6 \
zlib1g \
openssl \
libnss3 \
dbus \
lsb-core \
libnsl2 \
libpcre16-3 \
libglu1-mesa \
libglw1-mesa \
gamin \
libaudiofile-dev \
e2fsprogs \
libcap2 \
libdrm2 \
libmng2 \
flite \
speech-dispatcher \
cups \
libxau6 \
libxcomposite1 \
libxdamage1 \
libxrender1 \
libxrandr2 \
libasound2 \
libcg \
libglib2.0-0 \
libxcursor1 \
libxtst6
libxext6 \
libxfixes3 \
libxi6 \
libxmu6 \
libxrandr2 \
libxrender1 \
libxss1 \
libxshmfence1 \
libxt6 \
libxtst6 \
libxinerama1 \
libxcb1 \
libxcb-util1 \
libxcb-ewmh2 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-render-util0 \
libxkbcommon0 \
libxkbcommon-x11-0 \
libx11-6 \
# Additional required packages for running Maya on Ubuntu
libfam0 \
libcurl4 \
libjpeg62 \
libxm4 \
libgdbm-compat4 \
libxcb-xinerama0 \
libxdamage1

RUN wget -O libpng15.tgz https://sourceforge.net/projects/libpng/files/libpng15/older-releases/1.5.15/libpng-1.5.15.tar.gz \
&& tar -xvf libpng15.tgz \
&& rm libpng15.tgz \
&& cd libpng-1.5.15 \
&& apt-get install -y zlib1g-dev \
&& ./configure --prefix=/usr/local/libpng \
&& make install \
&& cd ../ \
&& rm -r libpng-1.5.15 \
&& ln -s /usr/local/libpng/lib/libpng15.so.15 /usr/lib/libpng15.so.15
# libffi6
RUN wget -O libffi6.deb http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb \
&& dpkg -i libffi6.deb \
&& rm libffi6.deb

RUN mkdir -p /usr/tmp && chmod 777 /usr/tmp \
&& mkdir -p ~/.cache/pip && chmod 777 ~/.cache/pip \
&& mkdir -p /usr/tmp/runtime-root && chmod 777 /usr/tmp/runtime-root

ENV XDG_RUNTIME_DIR=/usr/tmp/runtime-root

ENV PATH=/usr/autodesk/maya/bin:$PATH
ENV MAYA_NO_STANDALONE_ATEXIT=1
ENV MAYA_DISABLE_ADP=1
Loading

0 comments on commit d6dc96e

Please sign in to comment.