Skip to content

Commit

Permalink
Add docker build system
Browse files Browse the repository at this point in the history
  • Loading branch information
e3bo committed Oct 27, 2017
1 parent 16bbe08 commit 4b51ad5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eric-figs/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.git
./data/*
./ouput/*
./packrat/lib*/*
./packrat/bundles/*
./packrat/src/*
12 changes: 12 additions & 0 deletions eric-figs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM r-base
MAINTAINER Eamon O'Dea <[last name without apostrophe]35@gmail.com>
RUN apt-get update && apt-get install -y -q --no-install-recommends \
libcurl4-openssl-dev \
libxml2-dev
RUN install2.r --error packrat
RUN mkdir /root/work
COPY ./packrat /root/work/packrat
COPY ./.Rprofile /root/work
RUN /usr/bin/Rscript -e "setwd(\"/root/work\"); source(\".Rprofile\"); packrat::restore()"
1 change: 1 addition & 0 deletions eric-figs/build-image
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build -t eamon/reporting-proc-eric-figs:v20171027 .

0 comments on commit 4b51ad5

Please sign in to comment.