Skip to content

Instantly share code, notes, and snippets.

@ducky-hong
Created November 7, 2016 04:56
Show Gist options
  • Save ducky-hong/d72c53db5eecebd93035c66d6104b205 to your computer and use it in GitHub Desktop.
Save ducky-hong/d72c53db5eecebd93035c66d6104b205 to your computer and use it in GitHub Desktop.
ubuntu for kens with gtest
FROM ubuntu:16.04
RUN sed -i 's/archive.ubuntu.com/ftp.kaist.ac.kr/g' /etc/apt/sources.list
RUN apt-get update && apt-get install -y build-essential cmake git \
&& git clone --depth 1 https://github.com/google/googletest.git \
&& cd /googletest/googletest && mkdir build && cd build \
&& cmake .. && make && cp libgtest*.a /usr/local/lib \
&& apt-get clean && cd / && rm -rf /googletest
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment