Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
tahv committed May 10, 2024
1 parent b1e48f7 commit a966ee4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
5 changes: 0 additions & 5 deletions 2025/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
27 changes: 19 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
<!-- - [`2024`](https://github.com/tahv/docker-mayapy/blob/main/2024/Dockerfile) (Python `3.10.8`) -->
<!-- - [`2023`](https://github.com/tahv/docker-mayapy/blob/main/2023/Dockerfile) (Python `3.9.7`)-->
<!-- - [`2022`](https://github.com/tahv/docker-mayapy/blob/main/2022/Dockerfile) (Python `3.7.7`) -->

## Reference

Expand All @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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
```

0 comments on commit a966ee4

Please sign in to comment.