-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add first version of Dockerfile to build a lightweight Octave container
- Loading branch information
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |