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

support fetching a non-tagged commit #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
9 changes: 7 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM quay.io/centos/centos:stream9 AS builder
ENV SEARCHD_REF=6.2.12 \

# this is 6.2.12 with some fixes
ENV SEARCHD_REF=7a034ac990d5ec9344320c05a6a2315583b9b858 \
SEARCHD_REPO=https://github.com/manticoresoftware/manticoresearch.git \
CC=clang \
CXX=clang++ \
Expand All @@ -12,7 +14,10 @@ SHELL ["/bin/bash", "-x", "-o", "pipefail", "-c"]
# also replace llvm-toolset with make automake gcc gcc-c++ kernel-devel
# hadolint ignore=DL3003,DL3032,SC2046
RUN yum install -y --setopt=skip_missing_names_on_install=False,tsflags=nodocs llvm-toolset mysql cmake boost-devel openssl-devel zlib-devel libicu-devel bison flex systemd-units rpm-build git && \
git clone --depth=1 --branch=$SEARCHD_REF $SEARCHD_REPO . && \
git init . && \
git remote add origin $SEARCHD_REPO && \
git fetch --depth=1 origin $SEARCHD_REF && \
git reset --hard FETCH_HEAD && \
# boost lib in RHEL9 comes dynamic only so enable its use \
sed -i -e 's/Boost_USE_STATIC_LIBS ON/Boost_USE_STATIC_LIBS OFF/' src/CMakeLists.txt && \
mkdir build && cd build && \
Expand Down
Loading