Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
Build using devtoolset-7 as Meilisearch now requires newer glibc vers…
Browse files Browse the repository at this point in the history
…ions than the default on CentOS 7
  • Loading branch information
tillprochaska committed Jan 6, 2024
1 parent 254dcac commit 9eb058f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FROM centos:7
ARG MEILISEARCH_VERSION

# Install newer version of gcc etc.
RUN yum install -y centos-release-scl
RUN yum -y install devtoolset-7-gcc

# Install Rust
RUN yum group install -y "Development Tools"
RUN yum -y groupinstall "Development Tools"
RUN curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

# Download and extract Meilisearch source
Expand All @@ -11,4 +15,4 @@ RUN tar zxf meilisearch.tar.gz

# Build
WORKDIR "meilisearch-${MEILISEARCH_VERSION}"
RUN ~/.cargo/bin/cargo build --release
RUN scl enable devtoolset-7 "~/.cargo/bin/cargo build --release"
1 change: 1 addition & 0 deletions scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -e

# Build Meilisearch binary in Docker
docker build \
--platform linux/amd64 \
--tag meilisearch-centos7:${MEILISEARCH_VERSION} \
--build-arg MEILISEARCH_VERSION=${MEILISEARCH_VERSION} \
.
Expand Down

0 comments on commit 9eb058f

Please sign in to comment.