@@ -10,7 +10,7 @@ RUN groupadd -r manticore && useradd -r -g manticore manticore
1010
1111ENV GOSU_VERSION 1.11
1212
13- ENV DAEMON_URL= ${DAEMON_URL:-"https://repo.manticoresearch.com/repository/manticoresearch_jammy/dists/jammy/main/binary-_ARCH_64/manticore-server_13.13.0-25100704-e5465fe44__ARCH_64.deb \
13+ ENV DAEMON_URL ${DAEMON_URL:-"https://repo.manticoresearch.com/repository/manticoresearch_jammy/dists/jammy/main/binary-_ARCH_64/manticore-server_13.13.0-25100704-e5465fe44__ARCH_64.deb \
1414https://repo.manticoresearch.com/repository/manticoresearch_jammy/dists/jammy/main/binary-_ARCH_64/manticore-server-core_13.13.0-25100704-e5465fe44__ARCH_64.deb \
1515https://repo.manticoresearch.com/repository/manticoresearch_jammy/dists/jammy/main/binary-_ARCH_64/manticore-backup_1.9.6+25070510-5247d066_all.deb \
1616https://repo.manticoresearch.com/repository/manticoresearch_jammy/dists/jammy/main/binary-_ARCH_64/manticore-buddy_3.35.1+25090418-41d9811f_all.deb \
@@ -70,7 +70,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then export ARCH="arm"; else expo
7070 && wget -q https://repo.manticoresearch.com/manticore-dev-repo.noarch.deb \
7171 && dpkg -i manticore-dev-repo.noarch.deb \
7272 && apt-key adv --fetch-keys 'https://repo.manticoresearch.com/GPG-KEY-manticore' && apt-get -y update \
73- && apt-get -y install manticore manticore-extra manticore-load manticore-language-packs;\
73+ && apt-get -y install manticore manticore-extra manticore-load manticore-lemmatizer-uk manticore- language-packs;\
7474 elif [ ! -z "$DAEMON_URL" ]; then \
7575 echo "2nd step of building release image for linux/${ARCH}64 architecture" \
7676 && echo "ARCH: ${ARCH}" \
@@ -98,6 +98,15 @@ RUN if [ -d "/packages/" ]; then apt -y install /packages/*deb; fi \
9898 && tar -xf /tmp/ru.pak.tgz -C /usr/share/manticore/ \
9999 && rm /tmp/*.pak.tgz
100100
101+ # Installing the Ukrainian Lemmatizer using the working Jammy approach
102+ RUN apt-get update && apt-get install -y software-properties-common curl && \
103+ add-apt-repository -y ppa:deadsnakes/ppa && \
104+ apt-get update && \
105+ apt-get install -y python3.9 python3.9-dev python3.9-distutils && \
106+ curl https://bootstrap.pypa.io/get-pip.py | python3.9 && \
107+ python3.9 -m pip install pymorphy2 pymorphy2-dicts-uk && \
108+ apt-get clean && rm -rf /var/lib/apt/lists/*
109+
101110COPY manticore.conf.sh /etc/manticoresearch/
102111RUN sed -i '/log = \/ var\/ log\/ manticore\/ searchd.log/d;/query_log = \/ var\/ log\/ manticore\/ query.log/d' /etc/manticoresearch/manticore.conf
103112RUN md5sum /etc/manticoresearch/manticore.conf | awk '{print $1}' > /manticore.conf.md5
@@ -122,7 +131,8 @@ EXPOSE 9308
122131EXPOSE 9312
123132ENV LANG C.UTF-8
124133ENV LC_ALL C.UTF-8
125- ENV MANTICORE_CONFIG="/etc/manticoresearch/manticore.conf.sh|/etc/manticoresearch/manticore.conf"
134+ ENV PYTHONWARNINGS "ignore::UserWarning:pymorphy2.analyzer"
135+ ENV MANTICORE_CONFIG "/etc/manticoresearch/manticore.conf.sh|/etc/manticoresearch/manticore.conf"
126136CMD ["searchd" , "-c" , "/etc/manticoresearch/manticore.conf.sh" , "--nodetach" ]
127137
128138# How to build manually:
0 commit comments