Skip to content

Commit

Permalink
Enable CRB in RHEL containers (#991)
Browse files Browse the repository at this point in the history
It seems that in RHEL 8 we were getting lucky that the CRB (powertools)
repository wasn't needed to install the needed packages from EPEL, but
that's not true on RHEL 9.

The `crb` command only appears to be supported in EPEL 8 and newer.
  • Loading branch information
cottsay authored Mar 15, 2023
1 parent 1b3f01a commit 1ba850b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ FROM @(os_name):@(os_code_name)
@[end if]@

RUN @(package_manager) update -y

@[if os_name in ['rhel']]@
# Enable CRB on RHEL
RUN crb enable
@[end if]@

RUN @(package_manager) install -y dnf{,-command\(download\)} mock{,-{core-configs,scm}} python@(python3_pkgversion){,-{catkin_pkg,empy,rosdistro,yaml}}

RUN useradd -u @(uid) -l -m buildfarm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ FROM @(os_name):@(os_code_name)
@[end if]@

RUN @(package_manager) update -y

@[if os_name in ['rhel']]@
# Enable CRB on RHEL
RUN crb enable
@[end if]@

RUN @(package_manager) install -y dnf{,-command\(download\)} mock{,-{core-configs,scm}} python@(python3_pkgversion){,-{catkin_pkg,empy,rosdistro,yaml}}

RUN useradd -u @(uid) -l -m buildfarm
Expand Down

0 comments on commit 1ba850b

Please sign in to comment.