dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit f20030d46aa3046da4361a87a1a7f2a0ce51e371
parent 24e9eed2bfc5a0ebcb42efaa701d0c773a8e53c8
Author: rsiddharth <s@ricketyspace.net>
Date:   Fri,  1 Jun 2018 04:47:11 +0000

usr: Add local/bin/R

Diffstat:
usr/local/bin/R | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/usr/local/bin/R b/usr/local/bin/R @@ -0,0 +1,22 @@ +#!/bin/sh +# +# License: CC0-1.0 +# + +# working directory. +WD='/opt/src' + +# volume. +if [ ! -z $1 ]; then + V_OPT='--volume='$1':'$WD +else + V_OPT='--volume=/tmp:'$WD +fi + +# command +CMD='R' +if [ ! -z $2 ]; then + CMD=$2 +fi + +docker run --rm -it --workdir=$WD $V_OPT r-base:latest $CMD