From 9bb21fac03837cadb68014c376871a10c941f1e2 Mon Sep 17 00:00:00 2001 From: Sebastien Besson Date: Fri, 12 Feb 2016 09:54:48 +0000 Subject: [PATCH] Add first version of Dockerfile to build a lightweight Octave container --- Dockerfile | 11 +++++++++++ README.md | 13 +++++++++++-- install.sh | 16 ++++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 Dockerfile create mode 100644 install.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ae7bc5c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:wily +MAINTAINER ome-devel@lists.openmicroscopy.org.uk + +ENV DEBIAN_FRONTEND noninteractive + +ADD install.sh install.sh +RUN sh ./install.sh && rm install.sh + +VOLUME ["/source"] +WORKDIR /source +CMD ["octave"] diff --git a/README.md b/README.md index d2c6eb6..e415ac6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ -# octave-docker - Dockerfile to build an Octave container +# Octave + +Lightweight development environment for testing the Bio-Formats Octave package + +## Usage + +``` +$ docker run --rm -it -v $(pwd):/source openmicroscopy/bfoctave +``` + +Mount your local source folder to the container and run it inside the container. diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..68c1072 --- /dev/null +++ b/install.sh @@ -0,0 +1,16 @@ +#! /bin/bash + +# exit if a command fails +set -e + +apt-get update +apt-get install -y software-properties-common +apt-get install -y octave +apt-get remove -y software-properties-common + +# cleanup package manager +apt-get autoclean && apt-get clean +rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +# prepare dir +mkdir /source