File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ # Handle --clean parameter
2+ if [ " $1 " = " --clean" ]; then
3+ rm -rf ../build
4+ fi
5+
6+ mkdir -p ../build
7+ docker run -it --rm \
8+ -v $( pwd) /../cache:/cache \
9+ -e CACHEB=" /cache" \
10+ -e DIAGNOSTIC=1 \
11+ -e PACK_ICUDATA=0 \
12+ -e NO_TESTS=1 \
13+ -e DISTR=jammy \
14+ -e boost=boost_nov22 \
15+ -e sysroot=roots_nov22 \
16+ -e arch=x86_64 \
17+ -e CTEST_CMAKE_GENERATOR=Ninja \
18+ -e CTEST_CONFIGURATION_TYPE=RelWithDebInfo \
19+ -e WITH_COVERAGE=0 \
20+ -e SYSROOT_URL=" https://repo.manticoresearch.com/repository/sysroots" \
21+ -e HOMEBREW_PREFIX=" " \
22+ -e PACK_GALERA=0 \
23+ -e UNITY_BUILD=1 \
24+ -v $( pwd) /../:/manticore_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
25+ manticoresearch/external_toolchain:vcpkg331_20250114 bash -c ' cd /manticore_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/build && cmake -DDISTR=jammy .. -DCMAKE_BUILD_TYPE=Debug && export CMAKE_TOOLCHAIN_FILE=$(pwd)/dist/build_dockers/cross/linux.cmake && cmake --build .'
26+
27+ # Build Docker image with compiled binaries
28+ if [ -f ../build/src/searchd ] && [ -f ../build/src/indexer ] && [ -f ../build/src/indextool ]; then
29+ cat > ../build/Dockerfile << EOF
30+ FROM ghcr.io/manticoresoftware/manticoresearch:test-kit-latest
31+ COPY src/searchd /usr/bin/searchd
32+ COPY src/indexer /usr/bin/indexer
33+ COPY src/indextool /usr/bin/indextool
34+ EOF
35+ docker build --load -t test-kit ../build
36+ rm -f ../build/Dockerfile
37+ echo " Docker image 'test-kit' created successfully"
38+ else
39+ echo " Error: Compiled binaries not found. Cannot create Docker image."
40+ exit 1
41+ fi
You can’t perform that action at this time.
0 commit comments