-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add RHEL containers * Needs to pass secret envs differently * Maybe I understand how secrets are passed now... * Need secrets for push for multi-arch images * Add RHEL containers to web site
- Loading branch information
1 parent
6e9088f
commit 1144a58
Showing
6 changed files
with
145 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM registry.access.redhat.com/ubi7/ubi | ||
|
||
ARG R_VERSION=release | ||
|
||
RUN rm /etc/rhsm-host | ||
|
||
# To work around a rig bug and a pak bug | ||
ENV RIG_PLATFORM=rhel-7 | ||
ENV PKG_SYSREQS_PLATFORM=redhat-7 | ||
|
||
# ## Notes | ||
# | ||
# * Need to do this in a single step, so no layer is registered. | ||
# (Although I am not sure if that would be a real problem.) | ||
# * Need to supply two secrets, for the RedHat Org and the activation key: | ||
# REDHAT_ORG_RHEL7=... REDHAT_ACTIVATION_KEY_RHEL7=... \ | ||
# docker build --platform linux/amd64 \ | ||
# --secret id=REDHAT_ORG_RHEL7 --secret id=REDHAT_ACTIVATION_KEY_RHEL7 . | ||
# * There is no RHEL7 for linux/arm64, you need to supply `--platform` when | ||
# building on a non-x86_64 platform. | ||
# * We install a couple of packages that allow installing the tidyverse | ||
# without registration. | ||
# * You can use rig to install more R versions, but this currently needs | ||
# registration: https://github.com/r-lib/rig/issues/247 | ||
|
||
RUN --mount=type=secret,id=REDHAT_ORG_RHEL7 \ | ||
--mount=type=secret,id=REDHAT_ACTIVATION_KEY_RHEL7 \ | ||
subscription-manager register \ | ||
--org `cat /run/secrets/REDHAT_ORG_RHEL7` \ | ||
--activationkey `cat /run/secrets/REDHAT_ACTIVATION_KEY_RHEL7` && \ | ||
yum install -y https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm && \ | ||
yum install -y https://github.com/r-lib/rig/releases/download/latest/r-rig-latest-1.$(arch).rpm && \ | ||
rig add ${R_VERSION} && \ | ||
yum install -y harfbuzz-devel fribidi-devel libtiff-devel && \ | ||
yum clean all && \ | ||
rm -rf /tmp/* && \ | ||
subscription-manager unregister |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM redhat/ubi8:latest | ||
|
||
ARG R_VERSION=release | ||
|
||
# To work around a rig bug and a pak bug | ||
ENV RIG_PLATFORM=rhel-8 | ||
ENV PKG_SYSREQS_PLATFORM=redhat-8 | ||
|
||
# ## Notes | ||
# | ||
# * Need to do this in a single step, so no layer is registered. | ||
# (Although I am not sure if that would be a real problem.) | ||
# * Need to supply two secrets, for the RedHat Org and the activation key: | ||
# REDHAT_ORG_RHEL8=... REDHAT_ACTIVATION_KEY_RHEL8=... \ | ||
# docker build --secret id=REDHAT_ORG_RHEL8 \ | ||
# --secret id=REDHAT_ACTIVATION_KEY_RHEL8 . | ||
# * We install a couple of packages that allow installing the tidyverse | ||
# without registration. | ||
# * You can use rig to install more R versions, but this currently needs | ||
# registration: https://github.com/r-lib/rig/issues/247 | ||
|
||
RUN --mount=type=secret,id=REDHAT_ORG_RHEL8 \ | ||
--mount=type=secret,id=REDHAT_ACTIVATION_KEY_RHEL8 \ | ||
subscription-manager register \ | ||
--org `cat /run/secrets/REDHAT_ORG_RHEL8` \ | ||
--activationkey `cat /run/secrets/REDHAT_ACTIVATION_KEY_RHEL8` && \ | ||
yum install -y https://github.com/r-lib/rig/releases/download/latest/r-rig-latest-1.$(arch).rpm && \ | ||
rig add ${R_VERSION} && \ | ||
yum install -y harfbuzz-devel fribidi-devel && \ | ||
yum clean all && \ | ||
rm -rf /tmp/* && \ | ||
subscription-manager unregister |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM redhat/ubi9:latest | ||
|
||
ARG R_VERSION=release | ||
|
||
# To work around a rig bug and a pak bug | ||
ENV RIG_PLATFORM=rhel-9 | ||
ENV PKG_SYSREQS_PLATFORM=redhat-9 | ||
|
||
# ## Notes | ||
# | ||
# * Need to do this in a single step, so no layer is registered. | ||
# (Although I am not sure if that would be a real problem.) | ||
# * Need to supply two secrets, for the RedHat Org and the activation key: | ||
# REDHAT_ORG_RHEL9=... REDHAT_ACTIVATION_KEY_RHEL9=... \ | ||
# docker build --secret id=REDHAT_ORG_RHEL9 \ | ||
# --secret id=REDHAT_ACTIVATION_KEY_RHEL9 . | ||
# * We install a couple of packages that allow installing the tidyverse | ||
# without registration. | ||
# * You can use rig to install more R versions, but this currently needs | ||
# registration: https://github.com/r-lib/rig/issues/247 | ||
# * The sed line fixes this bug: https://github.com/r-lib/rig/issues/248 | ||
|
||
RUN --mount=type=secret,id=REDHAT_ORG_RHEL9 \ | ||
--mount=type=secret,id=REDHAT_ACTIVATION_KEY_RHEL9 \ | ||
subscription-manager register \ | ||
--org `cat /run/secrets/REDHAT_ORG_RHEL9` \ | ||
--activationkey `cat /run/secrets/REDHAT_ACTIVATION_KEY_RHEL9` && \ | ||
yum install -y https://github.com/r-lib/rig/releases/download/latest/r-rig-latest-1.$(arch).rpm && \ | ||
rig add ${R_VERSION} && \ | ||
sed -i 's|/rhel8/|/rhel9/|g' /opt/R/current/lib/R/library/base/R/Rprofile && \ | ||
yum install -y git libgit2 fribidi-devel && \ | ||
yum clean all && \ | ||
rm -rf /tmp/* && \ | ||
subscription-manager unregister |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters