diff --git a/3.1/opensuse156/Dockerfile b/3.1/opensuse156/Dockerfile new file mode 100644 index 0000000..5ecd668 --- /dev/null +++ b/3.1/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=3.1.3 +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/3.1/opensuse156/docker-compose.test.yml b/3.1/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/3.1/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/3.1/opensuse156/hooks/post_push b/3.1/opensuse156/hooks/post_push new file mode 100644 index 0000000..6683040 --- /dev/null +++ b/3.1/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag 3.1.3-opensuse156 diff --git a/3.2/opensuse156/Dockerfile b/3.2/opensuse156/Dockerfile new file mode 100644 index 0000000..440bbc4 --- /dev/null +++ b/3.2/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=3.2.5 +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/3.2/opensuse156/docker-compose.test.yml b/3.2/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/3.2/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/3.2/opensuse156/hooks/post_push b/3.2/opensuse156/hooks/post_push new file mode 100644 index 0000000..0cd75c9 --- /dev/null +++ b/3.2/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag 3.2.5-opensuse156 diff --git a/3.3/opensuse156/Dockerfile b/3.3/opensuse156/Dockerfile new file mode 100644 index 0000000..89c6e59 --- /dev/null +++ b/3.3/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=3.3.3 +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/3.3/opensuse156/docker-compose.test.yml b/3.3/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/3.3/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/3.3/opensuse156/hooks/post_push b/3.3/opensuse156/hooks/post_push new file mode 100644 index 0000000..ed02f32 --- /dev/null +++ b/3.3/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag 3.3.3-opensuse156 diff --git a/3.4/opensuse156/Dockerfile b/3.4/opensuse156/Dockerfile new file mode 100644 index 0000000..e271450 --- /dev/null +++ b/3.4/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=3.4.4 +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/3.4/opensuse156/docker-compose.test.yml b/3.4/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/3.4/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/3.4/opensuse156/hooks/post_push b/3.4/opensuse156/hooks/post_push new file mode 100644 index 0000000..b0f16f2 --- /dev/null +++ b/3.4/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag 3.4.4-opensuse156 diff --git a/3.5/opensuse156/Dockerfile b/3.5/opensuse156/Dockerfile new file mode 100644 index 0000000..e392bb0 --- /dev/null +++ b/3.5/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=3.5.3 +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/3.5/opensuse156/docker-compose.test.yml b/3.5/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/3.5/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/3.5/opensuse156/hooks/post_push b/3.5/opensuse156/hooks/post_push new file mode 100644 index 0000000..fec43e6 --- /dev/null +++ b/3.5/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag 3.5.3-opensuse156 diff --git a/3.6/opensuse156/Dockerfile b/3.6/opensuse156/Dockerfile new file mode 100644 index 0000000..d2b1822 --- /dev/null +++ b/3.6/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=3.6.3 +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/3.6/opensuse156/docker-compose.test.yml b/3.6/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/3.6/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/3.6/opensuse156/hooks/post_push b/3.6/opensuse156/hooks/post_push new file mode 100644 index 0000000..319396c --- /dev/null +++ b/3.6/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag 3.6.3-opensuse156 diff --git a/4.0/opensuse156/Dockerfile b/4.0/opensuse156/Dockerfile new file mode 100644 index 0000000..b179bd4 --- /dev/null +++ b/4.0/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=4.0.5 +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/4.0/opensuse156/docker-compose.test.yml b/4.0/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/4.0/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/4.0/opensuse156/hooks/post_push b/4.0/opensuse156/hooks/post_push new file mode 100644 index 0000000..2a61a2a --- /dev/null +++ b/4.0/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag 4.0.5-opensuse156 diff --git a/4.1/opensuse156/Dockerfile b/4.1/opensuse156/Dockerfile new file mode 100644 index 0000000..9105744 --- /dev/null +++ b/4.1/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=4.1.3 +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/4.1/opensuse156/docker-compose.test.yml b/4.1/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/4.1/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/4.1/opensuse156/hooks/post_push b/4.1/opensuse156/hooks/post_push new file mode 100644 index 0000000..54aebfa --- /dev/null +++ b/4.1/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag 4.1.3-opensuse156 diff --git a/4.2/opensuse156/Dockerfile b/4.2/opensuse156/Dockerfile new file mode 100644 index 0000000..fd469fa --- /dev/null +++ b/4.2/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=4.2.3 +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/4.2/opensuse156/docker-compose.test.yml b/4.2/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/4.2/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/4.2/opensuse156/hooks/post_push b/4.2/opensuse156/hooks/post_push new file mode 100644 index 0000000..e7b1f15 --- /dev/null +++ b/4.2/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag 4.2.3-opensuse156 diff --git a/4.3/opensuse156/Dockerfile b/4.3/opensuse156/Dockerfile new file mode 100644 index 0000000..5d118b7 --- /dev/null +++ b/4.3/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=4.3.3 +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/4.3/opensuse156/docker-compose.test.yml b/4.3/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/4.3/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/4.3/opensuse156/hooks/post_push b/4.3/opensuse156/hooks/post_push new file mode 100644 index 0000000..a3f72e2 --- /dev/null +++ b/4.3/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag 4.3.3-opensuse156 diff --git a/4.4/opensuse156/Dockerfile b/4.4/opensuse156/Dockerfile new file mode 100644 index 0000000..c42febe --- /dev/null +++ b/4.4/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=4.4.1 +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/4.4/opensuse156/docker-compose.test.yml b/4.4/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/4.4/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/4.4/opensuse156/hooks/post_push b/4.4/opensuse156/hooks/post_push new file mode 100644 index 0000000..c9aadd4 --- /dev/null +++ b/4.4/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag 4.4.1-opensuse156 diff --git a/Makefile b/Makefile index eda9fba..9fd0752 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ BASE_IMAGE ?= rstudio/r-base VERSIONS ?= 3.1 3.2 3.3 3.4 3.5 3.6 4.0 4.1 4.2 4.3 4.4 devel next -VARIANTS ?= focal jammy noble bullseye bookworm centos7 rockylinux8 rockylinux9 opensuse155 +VARIANTS ?= focal jammy noble bullseye bookworm centos7 rockylinux8 rockylinux9 opensuse155 opensuse156 # PATCH_VERSIONS defines all actively maintained R patch versions. PATCH_VERSIONS ?= 3.1.3 3.2.5 3.3.3 3.4.4 3.5.3 \ diff --git a/README.md b/README.md index 6731d9d..2d17446 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ The following distributions are supported: | rockylinux8 | Rocky Linux 8 | | rockylinux9 | Rocky Linux 9 | | opensuse155 | openSUSE 15.5 | +| opensuse156 | openSUSE 15.6 | All minor versions of R since 3.1 are supported, on the latest patch release. diff --git a/base/opensuse156/Dockerfile b/base/opensuse156/Dockerfile new file mode 100644 index 0000000..e7b3f0b --- /dev/null +++ b/base/opensuse156/Dockerfile @@ -0,0 +1,33 @@ +FROM opensuse/leap:15.6 +LABEL maintainer="Posit Docker " + +RUN zypper --non-interactive update +RUN zypper --non-interactive --gpg-auto-import-keys install \ + fontconfig \ + gzip \ + sudo \ + tar \ + vim \ + wget \ + && zypper clean --all + +# Install TinyTeX +RUN wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh && \ + /root/.TinyTeX/bin/*/tlmgr path remove && \ + mv /root/.TinyTeX/ /opt/TinyTeX && \ + /opt/TinyTeX/bin/*/tlmgr option sys_bin /usr/local/bin && \ + /opt/TinyTeX/bin/*/tlmgr path add + +# Install Pandoc +ARG PANDOC_VERSION=2.19.2 +RUN wget https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz -O pandoc.tar.gz && \ + tar -xvf pandoc.tar.gz && \ + mv pandoc-${PANDOC_VERSION} /opt/pandoc && \ + ln -s /opt/pandoc/bin/pandoc /usr/local/bin/pandoc && \ + rm pandoc.tar.gz + +# Set default locale +ENV LANG C.UTF-8 + +# Set default timezone +ENV TZ UTC diff --git a/devel/opensuse156/Dockerfile b/devel/opensuse156/Dockerfile new file mode 100644 index 0000000..b0fe991 --- /dev/null +++ b/devel/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=devel +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/devel/opensuse156/docker-compose.test.yml b/devel/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/devel/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/devel/opensuse156/hooks/post_push b/devel/opensuse156/hooks/post_push new file mode 100644 index 0000000..12a04eb --- /dev/null +++ b/devel/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag devel-opensuse156 diff --git a/next/opensuse156/Dockerfile b/next/opensuse156/Dockerfile new file mode 100644 index 0000000..c81f995 --- /dev/null +++ b/next/opensuse156/Dockerfile @@ -0,0 +1,22 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +ARG BASE_IMAGE=rstudio/r-base +FROM ${BASE_IMAGE}:opensuse156 + +ARG R_VERSION=next +ARG OS_IDENTIFIER=opensuse-156 + +# Install R +RUN wget https://cdn.posit.co/r/${OS_IDENTIFIER}/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper --non-interactive --no-gpg-checks install ./R-${R_VERSION}-1-1.x86_64.rpm && \ + ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R && \ + ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \ + ln -s /opt/R/${R_VERSION}/lib/R /usr/lib/R && \ + rm R-${R_VERSION}-1-1.x86_64.rpm && \ + zypper clean --all + +CMD ["R"] diff --git a/next/opensuse156/docker-compose.test.yml b/next/opensuse156/docker-compose.test.yml new file mode 100644 index 0000000..35905f7 --- /dev/null +++ b/next/opensuse156/docker-compose.test.yml @@ -0,0 +1,5 @@ +sut: + build: . + volumes: + - ../../test:/test + command: /test/test.sh diff --git a/next/opensuse156/hooks/post_push b/next/opensuse156/hooks/post_push new file mode 100644 index 0000000..17cc370 --- /dev/null +++ b/next/opensuse156/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +function add_tag() { + docker tag $IMAGE_NAME $DOCKER_REPO:$1 + docker push $DOCKER_REPO:$1 +} + +add_tag next-opensuse156 diff --git a/update.sh b/update.sh index 2b849b4..fccfe3a 100755 --- a/update.sh +++ b/update.sh @@ -27,6 +27,7 @@ declare -A os_identifiers=( [rockylinux8]='centos-8' [rockylinux9]='rhel-9' [opensuse155]='opensuse-155' + [opensuse156]='opensuse-156' ) generated_warning() { @@ -55,7 +56,7 @@ for version in "${!r_versions[@]}"; do ;; rockylinux9) template='rockylinux' ;; - opensuse155) template='opensuse' + opensuse155|opensuse156) template='opensuse' ;; esac