From 597595eb2c24f12ad26385cbc6a49074660c9149 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=95=9C=EC=A2=85/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 8 Oct 2019 13:56:38 +0900 Subject: [PATCH] Introduce Dockerfile based on Ubuntu 18.04 (#7973) This is an identical file with `infra/docker/Dockerfile` except for base Ubuntu version. This will be used for Android build which requires higher version of CMake. Signed-off-by: Hanjoung Lee --- infra/docker/Dockerfile.1804 | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 infra/docker/Dockerfile.1804 diff --git a/infra/docker/Dockerfile.1804 b/infra/docker/Dockerfile.1804 new file mode 100644 index 0000000..82f6444 --- /dev/null +++ b/infra/docker/Dockerfile.1804 @@ -0,0 +1,46 @@ +FROM ubuntu:18.04 + +ARG UBUNTU_MIRROR +ENV http_proxy $http_proxy +ENV https_proxy $https_proxy + +RUN if [ -n "$http_proxy" ] ; then echo "Acquire::http::proxy \"${http_proxy}\";" >> /etc/apt/apt.conf ; fi +RUN if [ -n "$https_proxy" ] ; then echo "Acquire::https::proxy \"${https_proxy}\";" >> /etc/apt/apt.conf ; fi +RUN if [ -n "$UBUNTU_MIRROR" ] ; then sed "s/archive.ubuntu.com/${UBUNTU_MIRROR}/g" -i /etc/apt/sources.list ; fi + +# Install 'add-apt-repository' +RUN apt-get update && apt-get -qqy install software-properties-common + +# Build tool +RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov + +# Install extra dependencies (Caffe, nnkit) +RUN apt-get update && apt-get -qqy install libboost-all-dev libgflags-dev libgoogle-glog-dev libatlas-base-dev libhdf5-dev + +# Install protocol buffer +RUN apt-get update && apt-get -qqy install libprotobuf-dev protobuf-compiler + +# Additonal tools +RUN apt-get update && apt-get -qqy install doxygen graphviz wget unzip clang-format-3.9 python3 python3-pip hdf5-tools +RUN pip3 install yapf==0.22.0 numpy + +# Install google test (source) +RUN apt-get update && apt-get -qqy install 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 gbs & sdb +RUN echo 'deb [trusted=yes] http://download.tizen.org/tools/latest-release/Ubuntu_18.04/ /' | cat >> /etc/apt/sources.list +RUN apt-get update && apt-get -qqy install gbs +RUN wget http://download.tizen.org/sdk/tizenstudio/official/binary/sdb_3.1.4_ubuntu-64.zip -O sdb.zip +RUN unzip -d tmp sdb.zip && rm sdb.zip +RUN cp tmp/data/tools/sdb /usr/bin/. && rm -rf tmp + +# Clean archives (to reduce image size) +RUN apt-get clean -y -- 2.7.4