diff options
author | Mauro Sardara <msardara+fdio@cisco.com> | 2017-06-05 18:43:52 +0200 |
---|---|---|
committer | Mauro Sardara <msardara+fdio@cisco.com> | 2017-06-05 20:32:17 +0200 |
commit | 4da1b7955fb3190c0e0646cfde99436aa140d271 (patch) | |
tree | bb9518b7aaf0c0493de03da83753d6a50f0aa9bf /dockerfile.ubuntu.xenial | |
parent | e8a980e1bc33adacb763066dc263f447656cb351 (diff) |
- Added proxy function
- Changed interface between library and application
- Support for different build type
Change-Id: I34ae75057490eb887d353e53c6d013f88bead04f
Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'dockerfile.ubuntu.xenial')
-rw-r--r-- | dockerfile.ubuntu.xenial | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dockerfile.ubuntu.xenial b/dockerfile.ubuntu.xenial new file mode 100644 index 00000000..42f141c5 --- /dev/null +++ b/dockerfile.ubuntu.xenial @@ -0,0 +1,31 @@ +# Ubuntu Dockerfile +# +# https://github.com/dockerfile/ubuntu +# + +# Pull base image. +FROM ubuntu:xenial + +# Building tools and dependencies +RUN \ + sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \ + apt-get update && \ + apt-get -y upgrade && \ + apt-get install -y git build-essential curl software-properties-common apt-transport-https nano && \ + echo "deb [trusted=yes] http://nexus.fd.io/content/repositories/fd.io.master.ubuntu.xenial.main ./" | tee /etc/apt/sources.list.d/99fd.io.master.list && \ + sh -c "echo 'deb http://archive.getdeb.net/ubuntu xenial-getdeb apps' >> /etc/apt/sources.list.d/getdeb.list" && \ + echo "deb [trusted=yes] https://engci-maven-master.cisco.com/artifactory/icn-debian xenial main" | tee /etc/apt/sources.list.d/artifactory.icndebian.list && \ + apt-get update && \ + apt-get install -y git-core build-essential \ + libhicnet-dev libhicn-dev libcurl4-openssl-dev \ + libboost-system-dev libboost-regex-dev libboost-filesystem-dev && \ + rm -rf /var/lib/apt/lists/* + +# Cmake version 3.8 +ENV CMAKE_INSTALL_SCRIPT_URL="https://cmake.org/files/v3.8/cmake-3.8.0-Linux-x86_64.sh" +ENV CMAKE_INSTALL_SCRIPT="/tmp/install_cmake.sh" +ENV CMAKE_INSTALL_LOCATION="/usr" + +RUN curl ${CMAKE_INSTALL_SCRIPT_URL} > ${CMAKE_INSTALL_SCRIPT} +RUN mkdir -p ${CMAKE_INSTALL_LOCATION} +RUN bash ${CMAKE_INSTALL_SCRIPT} --skip-license --prefix=${CMAKE_INSTALL_LOCATION} --exclude-subdir |