From 80432edbd0d70965bec9eef663075d02b61e348f Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Sun, 15 Nov 2020 21:26:59 -0800 Subject: [PATCH] add 2 new ubuntu docker files --- docker/Dockerfile.ubuntu_precise | 27 +++++++++++++++++++++++++++ docker/Dockerfile.ubuntu_trusty | 22 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 docker/Dockerfile.ubuntu_precise create mode 100644 docker/Dockerfile.ubuntu_trusty diff --git a/docker/Dockerfile.ubuntu_precise b/docker/Dockerfile.ubuntu_precise new file mode 100644 index 00000000..da72e6db --- /dev/null +++ b/docker/Dockerfile.ubuntu_precise @@ -0,0 +1,27 @@ +# Build time +FROM ubuntu:precise as build + +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update +RUN apt-get -y install wget +RUN mkdir -p /tmp/cmake +WORKDIR /tmp/cmake +RUN wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.tar.gz +RUN tar zxf cmake-3.14.0-Linux-x86_64.tar.gz + +RUN apt-get -y install g++ +RUN apt-get -y install libssl-dev +RUN apt-get -y install libz-dev +RUN apt-get -y install make +RUN apt-get -y install python +RUN apt-get -y install git + +COPY . . + +ARG CMAKE_BIN_PATH=/tmp/cmake/cmake-3.14.0-Linux-x86_64/bin +ENV PATH="${CMAKE_BIN_PATH}:${PATH}" + +RUN ["make", "ws_no_python"] + +ENTRYPOINT ["ws"] +CMD ["--help"] diff --git a/docker/Dockerfile.ubuntu_trusty b/docker/Dockerfile.ubuntu_trusty new file mode 100644 index 00000000..a0701e1e --- /dev/null +++ b/docker/Dockerfile.ubuntu_trusty @@ -0,0 +1,22 @@ +# Build time +FROM ubuntu:trusty as build + +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update +RUN apt-get -y install wget +RUN mkdir -p /tmp/cmake +WORKDIR /tmp/cmake +RUN wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.tar.gz +RUN tar zxf cmake-3.14.0-Linux-x86_64.tar.gz + +RUN apt-get -y install g++ libssl-dev libz-dev make python git + +COPY . . + +ARG CMAKE_BIN_PATH=/tmp/cmake/cmake-3.14.0-Linux-x86_64/bin +ENV PATH="${CMAKE_BIN_PATH}:${PATH}" + +RUN ["make", "ws_no_python"] + +ENTRYPOINT ["ws"] +CMD ["--help"]