Skip to content

Commit

Permalink
Add first version of Dockerfile to build a lightweight Octave container
Browse files Browse the repository at this point in the history
  • Loading branch information
sbesson committed Feb 12, 2016
1 parent f205328 commit 9bb21fa
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ubuntu:wily
MAINTAINER [email protected]

ENV DEBIAN_FRONTEND noninteractive

ADD install.sh install.sh
RUN sh ./install.sh && rm install.sh

VOLUME ["/source"]
WORKDIR /source
CMD ["octave"]
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
16 changes: 16 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9bb21fa

Please sign in to comment.