Skip to content

Commit

Permalink
Add RHEL 9 dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Jun 18, 2024
1 parent 931b52d commit 80cff2c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- 'opensuse-leap'
- 'opensuse-tumbleweed'
- 'redhat-8-ubi'
- 'redhat-9-ubi'

steps:
- name: Checkout
Expand Down
29 changes: 29 additions & 0 deletions redhat-9-ubi.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM redhat/ubi9:9.4

ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
ENV LC_LANG=C.UTF-8
ENV ARCH=x64
ENV CPU=x86_64
ENV OS=linux

ARG CC=gcc
ARG CXX=g++

COPY tools /opt/tools

RUN dnf -y update
RUN dnf -y install sudo wget git
RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RUN rpm --import https://github.com/riboseinc/yum/raw/master/ribose-packages.pub
RUN rpm --import https://github.com/riboseinc/yum/raw/master/ribose-packages-next.pub
RUN wget https://github.com/riboseinc/yum/raw/master/ribose.repo -O /etc/yum.repos.d/ribose.repo

RUN dnf -y install clang gcc gcc-c++ make autoconf libtool gzip bzip2 bzip2-devel \
json-c13-devel gettext ncurses-devel zlib-devel python3 asciidoctor \
openssl openssl-devel cmake gpg perl-Digest-SHA

# Fix json-c13.pc, see the issue https://github.com/riboseinc/yum/issues/10
RUN sed -i 's|-I${includedir}/json-c$|-I${includedir}/json-c13|' /usr/lib64/pkgconfig/json-c13.pc

RUN /opt/tools/tools.sh ensure_symlink_to_target '/usr/bin/python3' '/usr/bin/python'

0 comments on commit 80cff2c

Please sign in to comment.