Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
HazenBabcock committed Nov 25, 2016
1 parent d3675ee commit bead90b
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 0 deletions.
58 changes: 58 additions & 0 deletions plplot/centos_latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Distro
FROM centos:latest
MAINTAINER Hazen Babcock <[email protected]>

# Update sources
RUN yum -y upgrade

# Get dependencies, these are in alphabetical order
#
# Missing:
# D compiler
# haru
# LASi
# octave
# PDL (Perl Data Language)
# qhull
# shapelib
# ttf fonts
# wxWidgets
#
RUN yum -y install cairo-devel
RUN yum -y install cmake
RUN yum -y install gcc
RUN yum -y install gcc-c++
RUN yum -y install gcc-gfortran
RUN yum -y install gcc-gnat
RUN yum -y install git
RUN yum -y install gtk2-devel
RUN yum -y install java-1.8.0-openjdk-devel
RUN yum -y install lua
RUN yum -y install lua-devel
RUN yum -y install numpy
RUN yum -y install ocaml
RUN yum -y install pango-devel
RUN yum -y install perl-XML-DOM
RUN yum -y install perl-XML-Parser
RUN yum -y install python
RUN yum -y install PyQt4-devel
RUN yum -y install qt-devel
RUN yum -y install sip-devel
RUN yum -y install swig
RUN yum -y install tcl-devel

# 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 ./

# Record when this image was made
RUN date > image_date.txt

# This is what what gets run when this is started.
CMD sh test_plplot.sh
23 changes: 23 additions & 0 deletions plplot/centos_latest/test_plplot.sh
Original file line number Diff line number Diff line change
@@ -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 -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
echo "<!-- cache -->"
more CMakeCache.txt
echo "<!-- make -->"
make VERBOSE=1
echo "<!-- ctest -->"
ctest --verbose
echo "<!-- done -->"
61 changes: 61 additions & 0 deletions plplot/debian_stable/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Distro
FROM debian:stable
MAINTAINER Hazen Babcock <[email protected]>

# 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 ./

# Record when this image was made
RUN date > image_date.txt

# This is what what gets run when this is started.
CMD sh test_plplot.sh
23 changes: 23 additions & 0 deletions plplot/debian_stable/test_plplot.sh
Original file line number Diff line number Diff line change
@@ -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 -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
echo "<!-- cache -->"
more CMakeCache.txt
echo "<!-- make -->"
make VERBOSE=1
echo "<!-- ctest -->"
ctest --verbose
echo "<!-- done -->"

0 comments on commit bead90b

Please sign in to comment.