Refactor docker script
authorSangwan Kwon <sangwan.kwon@samsung.com>
Tue, 28 Apr 2020 07:03:43 +0000 (16:03 +0900)
committer권상완/Security 2Lab(SR)/Engineer/삼성전자 <sangwan.kwon@samsung.com>
Wed, 29 Apr 2020 04:05:26 +0000 (13:05 +0900)
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
.docker/Dockerfile

index a0ae105..4244390 100644 (file)
@@ -14,10 +14,11 @@ RUN apt-get update && \
     update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 10 && \
     update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 20
 
-# glog & gtest
+# glog & gtest & gflag
 RUN cd /usr/src && \
     git clone https://github.com/google/glog.git && \
-    git clone https://github.com/google/googletest.git
+    git clone https://github.com/google/googletest.git && \
+    git clone https://github.com/gflags/gflags.git
 
 RUN cd /usr/src/glog && \
     cmake . && make && make install
@@ -25,31 +26,9 @@ RUN cd /usr/src/glog && \
 RUN cd /usr/src/googletest && \
     cmake . && make && make install
 
-# boost
-RUN apt-get install -qq libboost-all-dev
-
-# sqlite3 - shell
-RUN apt-get install -qq libsqlite3-dev libreadline-dev
-
-# gflags
-RUN cd /usr/src && \
-    git clone https://github.com/gflags/gflags.git
-
 RUN cd /usr/src/gflags && \
-    git checkout v2.2.1 && \
     cmake . && make && make install
 
-# table gen dependencies
-RUN apt-get install -qq python-pip && \
-    pip install Jinja2
-
-# table dependencies
+# build dependencies
 RUN apt-get update --fix-missing
-RUN apt-get install -qq libprocps-dev libsystemd-dev \
-                        libudev-dev iptables-dev uuid-dev libssl-dev
-
-# linenoise
-RUN cd /usr/src && \
-    git clone https://github.com/arangodb/linenoise-ng.git && \
-    cd /usr/src/linenoise-ng && \
-    cmake -DCMAKE_BUILD_TYPE=Release . && make && make install
+RUN apt-get install -qq libboost-all-dev libsqlite3-dev libsystemd-dev