Created
November 9, 2019 23:08
-
-
Save StephenRadachy/aa347075a5719f2b895511a14cf89aa3 to your computer and use it in GitHub Desktop.
POC Docker image that demonstrates building USD with python bindings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:2-slim-buster | |
LABEL description="POC Docker image that demonstrates building USD with python bindings" | |
LABEL author="Stephen J Radachy <stephen@radachy.com>" | |
# Configuration | |
ARG USD_RELEASE="19.11" | |
ARG USD_REPO="/USD" | |
ARG USD_INSTALL="/usr/local/USD" | |
ENV PYTHONPATH="${PYTHONPATH}:${USD_INSTALL}/lib/python" | |
ENV PATH="${PATH}:${USD_INSTALL}/bin" | |
# Dependencies | |
RUN apt-get -qq update && apt-get install -y --no-install-recommends \ | |
git build-essential cmake nasm \ | |
libglew-dev libxrandr-dev libxcursor-dev libxinerama-dev libxi-dev zlib1g-dev && \ | |
rm -rf /var/lib/apt/lists/* | |
# Build + install USD | |
RUN git clone --branch "v${USD_RELEASE}" --depth 1 https://github.com/PixarAnimationStudios/USD.git "${USD_REPO}" | |
RUN python "${USD_REPO}/build_scripts/build_usd.py" -v --no-usdview "${USD_INSTALL}" && \ | |
rm -rf "${USD_REPO}" "${USD_INSTALL}/build" "${USD_INSTALL}/src" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment