From 325d2c0f857dbf018fbaf526aa2fe642276781b5 Mon Sep 17 00:00:00 2001 From: Johannes Schickling Date: Thu, 6 Nov 2014 12:23:12 +0100 Subject: [PATCH] rust --- rust/Dockerfile | 20 ++++++++++++++++++++ rust/README.md | 11 +++++++++++ 2 files changed, 31 insertions(+) create mode 100644 rust/Dockerfile create mode 100644 rust/README.md diff --git a/rust/Dockerfile b/rust/Dockerfile new file mode 100644 index 0000000..2cabae5 --- /dev/null +++ b/rust/Dockerfile @@ -0,0 +1,20 @@ +FROM debian:wheezy +MAINTAINER Johannes Schickling "schickling.j@gmail.com" + +# install curl (needed to install rust) +RUN apt-get update && apt-get install -y curl gdb + +# install rust & cargo +RUN curl -s https://static.rust-lang.org/rustup.sh | sh + +# cleanup package manager +RUN apt-get remove --purge -y curl && apt-get autoclean && apt-get clean +RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +# prepare dir +RUN mkdir -p /usr/src/app + +VOLUME ["/usr/src/app"] +WORKDIR /usr/src/app + +CMD ["bash"] diff --git a/rust/README.md b/rust/README.md new file mode 100644 index 0000000..8edee14 --- /dev/null +++ b/rust/README.md @@ -0,0 +1,11 @@ +# octave + +Lightweight nightly rust image including cargo and gdb + +## Usage + +```sh +$ docker run --rm -it -v /local/source:/usr/src/app schickling/rust +``` + +Mount your local source folder to the container and compile & run code inside.