Skip to content

Instantly share code, notes, and snippets.

@StephenRadachy
Last active September 5, 2022 07:36
Show Gist options
  • Save StephenRadachy/4ed1ddef6b5b07af6d2a0cafa65c98a9 to your computer and use it in GitHub Desktop.
Save StephenRadachy/4ed1ddef6b5b07af6d2a0cafa65c98a9 to your computer and use it in GitHub Desktop.
POC Docker image that demonstrates building usd_from_gltf
FROM stephenradachy/usd-docker:19.11
LABEL description="POC Docker image that demonstrates building usd_from_gltf"
LABEL author="Stephen J Radachy <stephen@radachy.com>"
# Configuration
ARG UFG_RELEASE="3bf441e0eb5b6cfbe487bbf1e2b42b7447c43d02"
ARG UFG_REPO="/UFG"
ARG UFG_INSTALL="/usr/local/UFG"
ENV USD_DIR="/usr/local/USD"
ENV LD_LIBRARY_PATH="${USD_DIR}/lib:${UFG_REPO}/lib"
ENV PATH="${PATH}:${UFG_INSTALL}/bin"
ENV PYTHONPATH="${PYTHONPATH}:${UFG_INSTALL}/python"
# Build + install usd_from_gltf
RUN git init "${UFG_REPO}" && \
cd "${UFG_REPO}" && \
git remote add origin https://github.com/google/usd_from_gltf.git && \
git fetch --depth 1 origin "${UFG_RELEASE}" && \
git checkout FETCH_HEAD
RUN python "${UFG_REPO}/tools/ufginstall/ufginstall.py" -v "${UFG_INSTALL}" "${USD_DIR}" && \
cp -r "${UFG_REPO}/tools/ufgbatch" "${UFG_INSTALL}/python" &&\
rm -rf "${UFG_REPO}" "${UFG_INSTALL}/build" "${UFG_INSTALL}/src"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment