Skip to content

Commit

Permalink
Merge pull request #7 from FalkorDB/6-add-rhel-dockerfile
Browse files Browse the repository at this point in the history
add rhel image
  • Loading branch information
dudizimber authored Dec 26, 2024
2 parents e0d9b2a + 6d8757a commit 73e1b9c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish build image
name: Build image

on:
push:
Expand All @@ -13,27 +13,28 @@ jobs:
os:
- ubuntu
- debian
- rhel

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push ${{ matrix.os }} image
- name: Build ${{ github.ref_name == 'main' && 'and push' || ''}} image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.${{ matrix.os }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
push: true
push: ${{ github.ref_name == 'main' }}
tags: falkordb/falkordb-build:${{ matrix.os }}
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 73e1b9c

Please sign in to comment.