diff --git a/2025/Dockerfile b/2025/Dockerfile index 27dcb55..6c7c695 100644 --- a/2025/Dockerfile +++ b/2025/Dockerfile @@ -1,8 +1,6 @@ FROM ubuntu:22.04 ENV DEBIAN_FRONTEND=noninteractive -# Install libxp6 from: https://launchpad.net/~zeehio/+archive/ubuntu/libxp -# The archive has removed libxp6, there won't be any new build for Ubuntu > 22.04. 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 \ @@ -40,9 +38,6 @@ RUN apt-get update && apt-get install -y \ libxkbfile1 \ libcg -# Download and install Maya. -# Remove the 'Example/' directory that take ~1G. -# Symlink mayapy <==> python. RUN apt-get update && apt-get install -y alien \ && wget --no-check-certificate -O maya.tgz https://efulfillment.autodesk.com/NetSWDLD/2025/MAYA/1AAEB4DA-FE7D-3C8A-A4F4-C217F55C55BA/ESD/Autodesk_Maya_2025_Linux_64bit.tgz \ && mkdir maya \ diff --git a/README.md b/README.md index 20e0811..94c200f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,10 @@ Autodesk Maya images on `ubuntu:22.04`. ## Supported tags -- [`2025`, `latest`](https://github.com/tahv/docker-mayapy/blob/main/2025/Dockerfile) +- [`2025`, `latest`](https://github.com/tahv/docker-mayapy/blob/main/2025/Dockerfile) (Python `3.11.14`) + + + ## Reference @@ -24,7 +27,6 @@ docker run -it --rm tahv/mayapy:2025 Start `mayapy` inside the container. ```python -# Launch mayapy from bash $ mayapy # Initialize maya in standalone mode @@ -95,16 +97,20 @@ Pre-installed: `/usr/autodesk/maya/bin` is added to `PATH` and include the following: -- `pip` +- `pip` (invoke it with `python -m pip`) - `mayapy` -- `python` (is a symlink of `mayapy`) +- `python` (symlink of `mayapy`) ### libxp6 -In its official [install instruction](https://www.autodesk.com/support/technical/article/caas/tsarticles/ts/5ZZjP3R0R7hzPyhDYkd8IS.html), -Autodesk instruct to install libxp6 from [ppa:zeehio/libxp](https://launchpad.net/~zeehio/+archive/ubuntu/libxp). +libxp6 is installed from [ppa:zeehio/libxp](https://launchpad.net/~zeehio/+archive/ubuntu/libxp) +as recommanded by Autodesk official [install instruction](https://www.autodesk.com/support/technical/article/caas/tsarticles/ts/5ZZjP3R0R7hzPyhDYkd8IS.html). -The archive has removed libxp6 because it is obsolete. The last built is on Ubuntu 22.04. +The archive has removed libxp6 because it is obsolete and the last built is on Ubuntu 22.04. + +### Removed directories + +- `/usr/autodesk/maya/Examples` was removed to save ~1G space. ## Development @@ -113,6 +119,11 @@ Clone the repo, cd into it and build the image from one of the directories. ```bash git clone https://github.com/tahv/docker-mayapy cd docker-mayapy -docker build --platform linux/amd64 -t mayapy 2025 +docker build --platform linux/amd64 -t tahv/mayapy:2025 2025 ``` +In the container, list the missing dependencies with this command. + +```bash +ldd /usr/autodesk/maya/lib/* 2> /dev/null | sed -nE 's/\s*(.+) => not found/\1/p' | sort --unique +```