Pulling fbx libraries with git lfs

This commit is contained in:
Jesse Vander Does 2019-04-30 18:05:27 -07:00
parent ff17f4b436
commit 54e796af13
2 changed files with 14 additions and 7 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
.dockerignore
Dockerfile

View File

@ -3,8 +3,12 @@ FROM ubuntu:16.04
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y software-properties-common && \ apt-get install -y software-properties-common && \
add-apt-repository ppa:jonathonf/python-3.6 && \ add-apt-repository ppa:jonathonf/python-3.6 && \
add-apt-repository ppa:git-core/ppa && \
apt-get update && \ apt-get update && \
apt-get install -y python3.6 curl build-essential cmake libxml2-dev zlib1g-dev git && \ apt-get install -y python3.6 curl build-essential cmake libxml2-dev zlib1g-dev git && \
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
apt-get install -y git-lfs && \
git lfs install && \
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && \ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && \
pip install conan && \ pip install conan && \
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
@ -12,15 +16,15 @@ RUN apt-get update && \
# Install FBX SDK # Install FBX SDK
WORKDIR /fbxsdktemp WORKDIR /fbxsdktemp
RUN curl -L https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/20192/fbx20192_fbxsdk_linux.tar.gz -o fbx20192_fbxsdk_linux.tar.gz && \
tar -xvf fbx20192_fbxsdk_linux.tar.gz && \
echo "yes\nn" | ./fbx20192_fbxsdk_linux /usr && \
rm -rf /fbxsdktemp
COPY . /fbx2gltf COPY . /fbx2gltf
WORKDIR /fbx2gltf WORKDIR /fbx2gltf
RUN conan install . -i build -s build_type=Release -e FBXSDK_SDKS=sdk && \ RUN git lfs pull
conan build -bf build .
# Build and install
RUN conan install . -i build -s build_type=Release -e FBXSDK_SDKS=/fbx2gltf/sdk && \
conan build -bf build . && \
cp build/FBX2glTF /usr/bin && \
cd / && \
rm -rf /fbx2gltf