Closed struffel closed 2 years ago
Hi @StruffelProductions, from the build log it looks like you're missing Python development headers in your Docker image. I think the name of the package on Ubuntu is python3-dev
-- try including that in your apt-get install
line.
Yes, this seems to have fixed it. Thanks. I needed a few more additional dependencies but I was able to figure those out by myself. Here is the final dockerfile in case someone else comes across this issue:
# --- BUILD PIXAR USD ---
FROM ubuntu:20.04 as setup-usd
ENV DEBIAN_FRONTEND=noninteractive
ENV USD_VERSION=21.11
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
unzip \
wget \
python3-dev \
libglu1-mesa-dev \
freeglut3-dev \
mesa-common-dev
RUN mkdir "/usd-setup"
RUN mkdir "/usd-artifacts"
RUN wget -O /usd-setup/usd-source.zip https://github.com/PixarAnimationStudios/USD/archive/refs/tags/v$USD_VERSION.zip
RUN unzip /usd-setup/usd-source.zip -d /usd-setup
RUN python3 /usd-setup/USD-$USD_VERSION/build_scripts/build_usd.py --no-usdview /usd-artifacts
# --- BUILD FINAL IMAGE ---
FROM ubuntu:20.04 as final
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
python3-dev
RUN mkdir -p "/opt/PixarAnimationStudios/USD"
ENV PATH="/opt/PixarAnimationStudios/USD/bin:$PATH"
ENV PYTHONPATH="/opt/PixarAnimationStudios/USD/lib/python:$PYTHONPATH"
COPY --from=setup-usd /usd-artifacts /opt/PixarAnimationStudios/USD/
CMD /bin/bash
Description of Issue
I am trying to build a Docker image which includes USD. Here is the Dockerfile:
However, the installation script fails. Commenting out the last line of the Dockerfile and manually running it in the container displays this text:
After a short while the script terminates with the error:
The log file it mentions is pretty long, so I uploaded it to Google Drive.
Steps to Reproduce
docker build .
System Information (OS, Hardware)
Host: ThinkPad P14s running Windows 10 21H2
Container: Based on the Official Docker Ubuntu image (20.04).
Package Versions
(Not quite sure which information you need here, sorry!) Python 3.8.10 USD v21.11 gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Build Flags
--no-usdview
given to the installation script