Skip to content

Commit 1100e09

Browse files
FreakTheMightyzellski
authored andcommitted
Dockerize FBX2glTF (facebookincubator#184)
Added dockerfile and docker-compose.
1 parent 1cc57c9 commit 1100e09

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.dockerignore
2+
Dockerfile
3+

Dockerfile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM ubuntu:16.04
2+
3+
RUN apt-get update && \
4+
apt-get install -y software-properties-common && \
5+
add-apt-repository ppa:jonathonf/python-3.6 && \
6+
add-apt-repository ppa:git-core/ppa && \
7+
apt-get update && \
8+
apt-get install -y python3.6 curl build-essential cmake libxml2-dev zlib1g-dev git && \
9+
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && \
10+
pip install conan && \
11+
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
12+
13+
COPY . /fbx2gltf
14+
15+
WORKDIR /fbx2gltf
16+
17+
# Install FBX SDK
18+
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 && \
19+
tar -xvf fbx20192_fbxsdk_linux.tar.gz && \
20+
echo "yes\nn" | ./fbx20192_fbxsdk_linux /fbx2gltf/sdk/Linux/2019.2 && \
21+
rm -rf /fbxsdktemp
22+
23+
# Build and install
24+
RUN conan install . -i docker-build -s build_type=Release -s compiler=gcc -s compiler.version=5 -s compiler.libcxx=libstdc++11 && \
25+
conan build -bf docker-build . && \
26+
cp docker-build/FBX2glTF /usr/bin && \
27+
cd / && \
28+
rm -rf /fbx2gltf /root/.conan

docker-compose.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: '3.7'
2+
services:
3+
fbx2gltf:
4+
build:
5+
context: .

0 commit comments

Comments
 (0)