Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rhel image #7

Merged
merged 6 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ..
Loading