From 21b0ef194d4f3cac74901f7b8cd9639916d58415 Mon Sep 17 00:00:00 2001 From: Hazen Babcock Date: Fri, 25 Nov 2016 08:56:25 -0500 Subject: [PATCH] Initial commit --- plplot/ubuntu_latest/Dockerfile | 58 +++++++++++++++++++++++++++++ plplot/ubuntu_latest/test_plplot.sh | 23 ++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 plplot/ubuntu_latest/Dockerfile create mode 100644 plplot/ubuntu_latest/test_plplot.sh diff --git a/plplot/ubuntu_latest/Dockerfile b/plplot/ubuntu_latest/Dockerfile new file mode 100644 index 0000000..5667499 --- /dev/null +++ b/plplot/ubuntu_latest/Dockerfile @@ -0,0 +1,58 @@ +# Distro +FROM ubuntu:latest +MAINTAINER Hazen Babcock + +# Update sources +RUN apt update +RUN apt --yes install apt-utils + +# Get dependencies, these are in alphabetical order +RUN apt --yes install camlidl +RUN apt --yes install cmake +RUN apt --yes install default-jdk +RUN apt --yes install default-jre +RUN apt --yes install fonts-freefont-ttf +RUN apt --yes install gcc +RUN apt --yes install gdc +RUN apt --yes install gfortran +RUN apt --yes install git +RUN apt --yes install gnat +RUN apt --yes install g++ +RUN apt --yes install itcl3 +RUN apt --yes install itcl3-dev +RUN apt --yes install libcairo-dev +RUN apt --yes install libgtk2.0-dev +RUN apt --yes install libhpdf-dev +RUN apt --yes install liblasi-dev +RUN apt --yes install liblua5.2-dev +RUN apt --yes install liboctave-dev +RUN apt --yes install libpango1.0-dev +RUN apt --yes install libqhull-dev +RUN apt --yes install libshp-dev +RUN apt --yes install libxml-dom-perl +RUN apt --yes install libxml-parser-perl +RUN apt --yes install libwxgtk3.0-dev +RUN apt --yes install lua5.2 +RUN apt --yes install ocaml +RUN apt --yes install octave +RUN apt --yes install pdl +RUN apt --yes install python-dev +RUN apt --yes install python-numpy +RUN apt --yes install python-qt4 +RUN apt --yes install python-qt4-dev +RUN apt --yes install qt4-dev-tools +RUN apt --yes install sip-dev +RUN apt --yes install swig + +# Set working directory +WORKDIR /plplot + +# Get PLplot +RUN git clone git://git.code.sf.net/p/plplot/plplot plplot +RUN mkdir plplot-build + +# Copy in the test shell script +COPY ./test_plplot.sh ./ + +# This is what what gets run when this is started. +CMD sh test_plplot.sh diff --git a/plplot/ubuntu_latest/test_plplot.sh b/plplot/ubuntu_latest/test_plplot.sh new file mode 100644 index 0000000..d2238c5 --- /dev/null +++ b/plplot/ubuntu_latest/test_plplot.sh @@ -0,0 +1,23 @@ + +# Move to source directory & update source. +cd plplot +pwd +git fetch origin +git merge origin/master + +# +# Move to build directory, build and test. Note that all the files +# that are generated will disappear as soon as this stops running +# so we'll capture everything by redirecting the output to a file. +# +cd ../plplot-build +pwd +echo "" +cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF +echo "" +more CMakeCache.txt +echo "" +make VERBOSE=1 +echo "" +ctest --verbose +echo ""