Update Dockerfile (#107)
author박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 20 Apr 2018 04:31:35 +0000 (13:31 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 20 Apr 2018 04:31:35 +0000 (13:31 +0900)
This commit updates Dockerfile to install google test (for testing),
and protocol buffer (for caffe support).

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
Dockerfile

index edfcca0..141466f 100644 (file)
@@ -12,3 +12,17 @@ RUN apt update
 
 # Install base dependencies
 RUN apt install -y make cmake g++
+
+# Install google test (source)
+RUN apt install -y libgtest-dev
+
+# Build and install google test static libraries
+WORKDIR /root/gtest
+RUN cmake /usr/src/gtest
+RUN make
+RUN mv *.a /usr/lib
+WORKDIR /root
+RUN rm -rf gtest
+
+# Install protocol buffer
+RUN apt install -y libprotobuf-dev protobuf-compiler