diff --git a/containers/Dockerfile-bookworm b/containers/Dockerfile-bookworm index 642f0d4..8b74608 100644 --- a/containers/Dockerfile-bookworm +++ b/containers/Dockerfile-bookworm @@ -29,4 +29,10 @@ RUN if [ -f /opt/R/${R_VERSION}/bin/Rscript ]; then \ WORKDIR /root +RUN apt-get install wget + +COPY cran.txt /tmp/cran.txt +COPY set-cran.sh /tmp/set-cran.sh +RUN R_VERSION=${R_VERSION} /tmp/set-cran.sh + CMD [ "R" ] diff --git a/containers/Dockerfile-etch b/containers/Dockerfile-etch index 800cc8d..b14a4ae 100644 --- a/containers/Dockerfile-etch +++ b/containers/Dockerfile-etch @@ -29,5 +29,9 @@ RUN (echo 'library()' | /opt/R/${R_VERSION}/bin/R --vanilla | cat) || \ WORKDIR /root +COPY cran.txt /tmp/cran.txt +COPY set-cran.sh /tmp/set-cran.sh +RUN R_VERSION=${R_VERSION} /tmp/set-cran.sh + ENTRYPOINT [ "linux32" ] CMD [ "R" ] diff --git a/containers/Dockerfile-lenny b/containers/Dockerfile-lenny index 8de23cc..f4d61b6 100644 --- a/containers/Dockerfile-lenny +++ b/containers/Dockerfile-lenny @@ -29,5 +29,9 @@ RUN (echo 'library()' | /opt/R/${R_VERSION}/bin/R --vanilla | cat) || \ WORKDIR /root +COPY cran.txt /tmp/cran.txt +COPY set-cran.sh /tmp/set-cran.sh +RUN R_VERSION=${R_VERSION} /tmp/set-cran.sh + ENTRYPOINT [ "linux32" ] CMD [ "R" ] diff --git a/containers/Dockerfile-sarge b/containers/Dockerfile-sarge index 4e8a5c9..24f135f 100644 --- a/containers/Dockerfile-sarge +++ b/containers/Dockerfile-sarge @@ -29,4 +29,8 @@ RUN if dpkg compare-versions "${R_VERSION}" ge 0.49; then \ WORKDIR /root +COPY cran.txt /tmp/cran.txt +COPY set-cran.sh /tmp/set-cran.sh +RUN R_VERSION=${R_VERSION} /tmp/set-cran.sh + CMD [ "R" ] diff --git a/containers/Dockerfile-squeeze b/containers/Dockerfile-squeeze index 8debae6..f90acfe 100644 --- a/containers/Dockerfile-squeeze +++ b/containers/Dockerfile-squeeze @@ -29,5 +29,9 @@ RUN (echo 'library()' | /opt/R/${R_VERSION}/bin/R --vanilla | cat) || \ WORKDIR /root +COPY cran.txt /tmp/cran.txt +COPY set-cran.sh /tmp/set-cran.sh +RUN R_VERSION=${R_VERSION} /tmp/set-cran.sh + ENTRYPOINT [ "linux32" ] CMD [ "R" ] diff --git a/containers/cran.txt b/containers/cran.txt new file mode 100644 index 0000000..186ae0d --- /dev/null +++ b/containers/cran.txt @@ -0,0 +1,114 @@ +0.65.1 http://evercran.r-pkg.org/1999/11/22 +0.90.0 http://evercran.r-pkg.org/1999/12/15 +0.90.1 http://evercran.r-pkg.org/2000/02/07 +0.99.0 http://evercran.r-pkg.org/2000/02/29 +1.0.0 http://evercran.r-pkg.org/2000/04/14 +1.0.1 http://evercran.r-pkg.org/2000/06/15 +1.1.0 http://evercran.r-pkg.org/2000/08/15 +1.1.1 http://evercran.r-pkg.org/2000/12/15 +1.2.0 http://evercran.r-pkg.org/2001/01/15 +1.2.1 http://evercran.r-pkg.org/2001/02/26 +1.2.2 http://evercran.r-pkg.org/2001/04/26 +1.2.3 http://evercran.r-pkg.org/2001/06/22 +1.3.0 http://evercran.r-pkg.org/2001/08/31 +1.3.1 http://evercran.r-pkg.org/2001/12/19 +1.4.0 http://evercran.r-pkg.org/2002/01/30 +1.4.1 http://evercran.r-pkg.org/2002/04/29 +1.5.0 http://evercran.r-pkg.org/2002/06/17 +1.5.1 http://evercran.r-pkg.org/2002/10/01 +1.6.0 http://evercran.r-pkg.org/2002/11/01 +1.6.1 http://evercran.r-pkg.org/2003/01/10 +1.6.2 http://evercran.r-pkg.org/2003/04/16 +1.7.0 http://evercran.r-pkg.org/2003/06/16 +1.7.1 http://evercran.r-pkg.org/2003/10/08 +1.8.0 http://evercran.r-pkg.org/2003/11/21 +1.8.1 http://evercran.r-pkg.org/2004/04/12 +1.9.0 http://evercran.r-pkg.org/2004/06/21 +1.9.1 http://evercran.r-pkg.org/2004/10/04 +2.0.0 http://evercran.r-pkg.org/2004/11/15 +2.0.1 http://evercran.r-pkg.org/2005/04/18 +2.1.0 http://evercran.r-pkg.org/2005/06/20 +2.1.1 http://evercran.r-pkg.org/2005/10/06 +2.2.0 http://evercran.r-pkg.org/2005/12/20 +2.2.1 http://evercran.r-pkg.org/2006/04/24 +2.3.0 http://evercran.r-pkg.org/2006/06/01 +2.3.1 http://evercran.r-pkg.org/2006/10/03 +2.4.0 http://evercran.r-pkg.org/2006/12/18 +2.4.1 http://evercran.r-pkg.org/2007/04/24 +2.5.0 http://evercran.r-pkg.org/2007/06/28 +2.5.1 http://evercran.r-pkg.org/2007/10/03 +2.6.0 http://evercran.r-pkg.org/2007/11/26 +2.6.1 http://evercran.r-pkg.org/2008/02/08 +2.6.2 http://evercran.r-pkg.org/2008/04/22 +2.7.0 http://evercran.r-pkg.org/2008/06/23 +2.7.1 http://evercran.r-pkg.org/2008/08/25 +2.7.2 http://evercran.r-pkg.org/2008/10/20 +2.8.0 http://evercran.r-pkg.org/2008/12/22 +2.8.1 http://evercran.r-pkg.org/2009/04/17 +2.9.0 http://evercran.r-pkg.org/2009/06/26 +2.9.1 http://evercran.r-pkg.org/2009/08/24 +2.9.2 http://evercran.r-pkg.org/2009/10/26 +2.10.0 http://evercran.r-pkg.org/2009/12/14 +2.10.1 http://evercran.r-pkg.org/2010/04/22 +2.11.0 http://evercran.r-pkg.org/2010/05/31 +2.11.1 http://evercran.r-pkg.org/2010/10/15 +2.12.0 http://evercran.r-pkg.org/2010/12/16 +2.12.1 http://evercran.r-pkg.org/2011/02/25 +2.12.2 http://evercran.r-pkg.org/2011/04/13 +2.13.0 http://evercran.r-pkg.org/2011/07/08 +2.13.1 http://evercran.r-pkg.org/2011/09/30 +2.13.2 http://evercran.r-pkg.org/2011/10/31 +2.14.0 http://evercran.r-pkg.org/2011/12/22 +2.14.1 http://evercran.r-pkg.org/2012/02/29 +2.14.2 http://evercran.r-pkg.org/2012/03/30 +2.15.0 http://evercran.r-pkg.org/2012/06/22 +2.15.1 http://evercran.r-pkg.org/2012/10/26 +2.15.2 http://evercran.r-pkg.org/2013/03/01 +2.15.3 http://evercran.r-pkg.org/2013/04/03 +3.0.0 https://evercran.r-pkg.org/2013/05/16 +3.0.1 https://evercran.r-pkg.org/2013/09/25 +3.0.2 https://evercran.r-pkg.org/2014/03/06 +3.0.3 https://evercran.r-pkg.org/2014/04/10 +3.1.0 https://evercran.r-pkg.org/2014/07/10 +3.1.1 https://evercran.r-pkg.org/2014/10/31 +3.1.2 https://evercran.r-pkg.org/2015/03/09 +3.1.3 https://evercran.r-pkg.org/2015/04/16 +3.2.0 https://evercran.r-pkg.org/2015/06/18 +3.2.1 https://evercran.r-pkg.org/2015/08/14 +3.2.2 https://evercran.r-pkg.org/2015/12/10 +3.2.3 https://evercran.r-pkg.org/2016/03/10 +3.2.4 https://evercran.r-pkg.org/2016/04/14 +3.2.5 https://evercran.r-pkg.org/2016/05/03 +3.3.0 https://evercran.r-pkg.org/2016/06/21 +3.3.1 https://evercran.r-pkg.org/2016/10/31 +3.3.2 https://evercran.r-pkg.org/2017/03/06 +3.3.3 https://evercran.r-pkg.org/2017/04/21 +3.4.0 https://evercran.r-pkg.org/2017/06/30 +3.4.1 https://evercran.r-pkg.org/2017/09/28 +3.4.2 https://evercran.r-pkg.org/2017/11/30 +3.4.3 https://evercran.r-pkg.org/2018/03/15 +3.4.4 https://evercran.r-pkg.org/2018/04/23 +3.5.0 https://evercran.r-pkg.org/2018/07/02 +3.5.1 https://evercran.r-pkg.org/2018/12/20 +3.5.2 https://evercran.r-pkg.org/2019/03/11 +3.5.3 https://evercran.r-pkg.org/2019/04/26 +3.6.0 https://evercran.r-pkg.org/2019/07/05 +3.6.1 https://evercran.r-pkg.org/2019/12/12 +3.6.2 https://evercran.r-pkg.org/2020/02/29 +3.6.3 https://evercran.r-pkg.org/2020/04/24 +4.0.0 https://evercran.r-pkg.org/2020/06/06 +4.0.1 https://evercran.r-pkg.org/2020/06/22 +4.0.2 https://evercran.r-pkg.org/2020/10/10 +4.0.3 https://evercran.r-pkg.org/2021/02/15 +4.0.4 https://evercran.r-pkg.org/2021/03/31 +4.0.5 https://evercran.r-pkg.org/2021/05/18 +4.1.0 https://evercran.r-pkg.org/2021/08/10 +4.1.1 https://evercran.r-pkg.org/2021/11/01 +4.1.2 https://evercran.r-pkg.org/2022/03/10 +4.1.3 https://evercran.r-pkg.org/2022/04/22 +4.2.0 https://evercran.r-pkg.org/2022/06/23 +4.2.1 https://evercran.r-pkg.org/2022/10/31 +4.2.2 https://evercran.r-pkg.org/2023/03/15 +4.2.3 https://evercran.r-pkg.org/2023/04/21 +4.3.0 https://evercran.r-pkg.org/2023/06/16 +4.3.1 https://cloud.r-project.org diff --git a/containers/set-cran.sh b/containers/set-cran.sh new file mode 100755 index 0000000..7891d87 --- /dev/null +++ b/containers/set-cran.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +CRAN="`grep ^${R_VERSION}[[:space:]] /tmp/cran.txt | grep -F ${R_VERSION} | cut -f2 | grep http`" + +if [ -n "$CRAN" ]; then + echo "options(CRAN = \"$CRAN\")" >> /root/.Rprofile + echo "options(repos = c(CRAN = \"$CRAN\"))" >> /root/.Rprofile + echo "options(download.file.method = \"wget\")" >> /root/.Rprofile +fi diff --git a/containers/wheezy-versions.txt b/containers/wheezy-versions.txt deleted file mode 100644 index e69de29..0000000