Created
May 31, 2020 11:12
-
-
Save unicomp21/047236ec0526ba65d65f8c11d4864393 to your computer and use it in GitHub Desktop.
Building Google Filament w/ a Dockerfile
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
This is what I use to routinely check the webgl build for filament. | |
#build.sh
sudo docker build -t filament:001 --file Dockerfile ../../
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#Dockerfile
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y cmake ninja-build python3-distutils
RUN apt-get install -y clang-7 libglu1-mesa-dev libc++-7-dev libc++abi-7-dev
RUN apt-get install -y libxi-dev
RUN apt-get install -y emacs-nox git curl wget unzip
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-7 100
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-7 100
RUN update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100
WORKDIR /tmp
RUN git clone https://github.com/emscripten-core/emsdk.git
WORKDIR /tmp/emsdk
RUN /bin/bash -c "source ./emsdk_env.sh"
ENV PATH="/tmp/emsdk:/tmp/emsdk/upstream/emscripten:/tmp/emsdk/node/12.9.1_64bit/bin:${PATH}"
ENV EMSDK /tmp/emsdk
ENV EM_CONFIG /root/.emscripten
ENV EMSDK_NODE /tmp/emsdk/node/12.9.1_64bit/bin/node
RUN ./emsdk install latest
RUN ./emsdk activate latest
WORKDIR /tmp
RUN git clone https://github.com/google/filament.git
WORKDIR /tmp/filament
#RUN git checkout -b v1.4.5
RUN ./build.sh -p webgl release