forked from mottosso/docker-maya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
66 lines (55 loc) · 1.58 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM centos:centos7.2.1511
MAINTAINER [email protected]
RUN yum update -y && yum install -y \
nano \
csh \
libXp \
libXmu \
libXpm \
libXi \
libtiff \
libXinerama \
elfutils \
gcc \
gcc-c++ \
zlib-devel \
python-jinja2 \
python-devel \
gstreamer-plugins-base.x86_64 \
gamin \
git \
mesa-utils \
mesa-libGL-devel \
tcsh \
xorg-x11-server-Xorg \
xorg-x11-server-Xvfb \
wget && \
yum groupinstall -y "X Window System" && \
yum clean all
RUN yum update -y && yum install -y \
gcc-c++ \
epel-release && \
yum clean all
RUN yum update -y && yum install -y \
cmake3 && \
yum clean all
RUN ln -sf /usr/bin/cmake3 /usr/local/bin/cmake
ENV LIBQUICKTIME_PLUGIN_DIR=/usr/autodesk/maya/lib
# Download and unpack distribution first, Docker's caching
# mechanism will ensure that this only happens once.
RUN wget https://edutrial.autodesk.com/NET18SWDLD/2018/MAYA/ESD/Autodesk_Maya_2018_EN_Linux_64bit.tgz -O maya.tgz && \
mkdir /maya && tar -xvf maya.tgz -C /maya && \
rm maya.tgz && \
rpm -Uvh /maya/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
# 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