Skip to content

Commit

Permalink
add rhel image
Browse files Browse the repository at this point in the history
  • Loading branch information
dudizimber committed Dec 26, 2024
1 parent e0d9b2a commit 204ee84
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-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
os:
- ubuntu
- debian
- rhel

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

RUN yum update -y && \
yum install -y wget autoconf automake libtool git make openssl-devel gcc gcc-c++ libstdc++-static diffutils cmake3 && \
dnf install --assumeyes python3 python3-pip && \
alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 && \
alternatives --auto python3

# install rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

# add rust to path
ENV PATH="/root/.cargo/bin:${PATH}"

# install leg/geg
RUN wget https://www.piumarta.com/software/peg/peg-0.1.19.tar.gz && \
tar -xzvf peg-0.1.19.tar.gz && \
cd peg-0.1.19 && \
make && \
make install && \
cd ..

# install redis
RUN wget https://download.redis.io/redis-stable.tar.gz && \
tar -xzvf redis-stable.tar.gz && \
cd redis-stable && \
make && \
make install && \
cd ..

0 comments on commit 204ee84

Please sign in to comment.