-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
executable file
·31 lines (24 loc) · 1.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM mottosso/mayabase-rocky8
MAINTAINER konstruktion@gmail.com
# Download and unpack distribution first, Docker's caching
# mechanism will ensure that this only happens once.
RUN wget https://efulfillment.autodesk.com/NetSWDLD/2025/MAYA/1AAEB4DA-FE7D-3C8A-A4F4-C217F55C55BA/ESD/Autodesk_Maya_2025_Linux_64bit.tgz -O maya.tgz && \
mkdir /maya && tar -xvf maya.tgz -C /maya && \
rm maya.tgz && \
rpm -Uvh /maya/Packages/Maya*.rpm && \
rm -r /maya
# Make mayapy the default Python
RUN echo alias hpython="\"/usr/autodesk/maya/bin/mayapy\"" >> ~/.bashrc && \
echo alias hpip="\"mayapy -m pip\"" >> ~/.bashrc
# Setup environment
ENV MAYA_LOCATION=/usr/autodesk/maya/
ENV PATH=$MAYA_LOCATION/bin:$PATH
# Avoid warning about this variable not set, the path is its default value
RUN mkdir /var/tmp/runtime-root && \
chmod 0700 /var/tmp/runtime-root
ENV XDG_RUNTIME_DIR=/var/tmp/runtime-root
# Workaround for "Segmentation fault (core dumped)"
# See https://forums.autodesk.com/t5/maya-general/render-crash-on-linux/m-p/5608552/highlight/true
ENV MAYA_DISABLE_CIP=1
# Cleanup
WORKDIR /root