Skip to content

Instantly share code, notes, and snippets.

@vlastv
Created November 28, 2017 11:06
Show Gist options
  • Save vlastv/f24890dc09608111e336d0ed7ef9d90c to your computer and use it in GitHub Desktop.
Save vlastv/f24890dc09608111e336d0ed7ef9d90c to your computer and use it in GitHub Desktop.
docker manticoresoftware/manticore:alpine
FROM alpine
RUN set -ex; \
\
apk add --no-cache --virtual .build-deps \
coreutils \
git \
cmake \
make \
g++ \
mariadb-dev \
bison \
flex-dev \
; \
\
git clone --depth=1 https://github.com/manticoresoftware/manticore.git /usr/src/manticore; \
\
mkdir -p /usr/src/manticore/build; \
cd /usr/src/manticore/build; \
\
cmake -DDISABLE_TESTING=ON /usr/src/manticore; \
make --jobs="$(nproc)"; \
make install; \
\
rm -r /usr/src/manticore; \
\
runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
| tr ',' '\n' \
| sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)"; \
apk add --no-cache --virtual .manticore-rundeps $runDeps; \
\
apk del .build-deps
@muhtarudinsiregar
Copy link

if you get error when run build cmake -DDISABLE_TESTING=ON /usr/src/manticore like an error appears as below:

-- Falling back to bundled asio
-- Looking for C++ include asio.hpp
-- Looking for C++ include asio.hpp - not found
CMake Error at build/galera-src/CMakeLists.txt:207 (message):
  asio headers not found or not usable

you can with this command cmake -DDISABLE_TESTING=ON -DUSE_GALERA=0 /usr/src/manticore

reference: manticoresoftware/manticoresearch#202

@dzcpy
Copy link

dzcpy commented Jun 29, 2021

@muhtarudinsiregar Have you successfully built it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment