Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
vcabeli committed Aug 11, 2020
2 parents c6a2872 + 774437e commit 529a1fb
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions r-apt/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
localDockerfile
1 change: 1 addition & 0 deletions r-base/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
local
1 change: 1 addition & 0 deletions r-bspm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
r-cran-bspm*
22 changes: 22 additions & 0 deletions r-bspm/focal/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Emacs, make this -*- mode: sh; -*-

FROM rocker/r-ubuntu:20.04

LABEL org.label-schema.license="GPL-2.0" \
org.label-schema.vcs-url="https://github.com/rocker-org/rocker" \
maintainer="Dirk Eddelbuettel <edd@debian.org>"

## This was not needed before but we need it now
#ENV DEBIAN_FRONTEND noninteractive

RUN add-apt-repository --yes "ppa:edd/r-4.0" \
&& apt-get install -y --no-install-recommends \
sudo \
r-cran-bspm \
&& echo "bspm::enable()" >> /etc/R/Rprofile.site \
&& echo "options(bspm.sudo=TRUE)" >> /etc/R/Rprofile.site \
&& echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/90local-no-recommends \
&& echo "docker ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/local-docker-user \
&& chmod 0440 /etc/sudoers.d/local-docker-user

CMD ["bash"]
26 changes: 26 additions & 0 deletions r-bspm/testing/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Emacs, make this -*- mode: sh; -*-

FROM r-base:latest

LABEL org.label-schema.license="GPL-2.0" \
org.label-schema.vcs-url="https://github.com/rocker-org/rocker" \
maintainer="Dirk Eddelbuettel <edd@debian.org>"

## We use the PPA to install r-cran-bspm; we do not need it afterwards
COPY eddelbuettel-ppa.list /etc/apt/sources.list.d

## This was not needed before but we need it now
#ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
sudo \
r-cran-bspm \
&& echo "bspm::enable()" >> /etc/R/Rprofile.site \
&& echo "options(bspm.sudo=TRUE)" >> /etc/R/Rprofile.site \
&& echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/90local-no-recommends \
&& echo "docker ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/local-docker-user \
&& chmod 0440 /etc/sudoers.d/local-docker-user \
&& rm /etc/apt/sources.list.d/eddelbuettel-ppa.list

CMD ["bash"]
1 change: 1 addition & 0 deletions r-bspm/testing/eddelbuettel-ppa.list
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deb [trusted=yes] https://eddelbuettel.github.io/ppa ./

0 comments on commit 529a1fb

Please sign in to comment.