Skip to content

Commit

Permalink
keep data dir same as previously
Browse files Browse the repository at this point in the history
  • Loading branch information
akostadinov committed Dec 23, 2023
1 parent 377448c commit ee24a4d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ RUN microdnf install -y --nodocs mysql openssl boost-context boost-filesystem zl
rpm -iv --excludedocs $MANTICORE_RPMS && \
cd - && rm -rf /tmp/rpms && \
microdnf clean all && \
sed -i -e 's#/var/run/sphinx/#/var/run/manticore/#' -e 's#/var/lib/searchd#/var/lib/manticore#' /etc/manticoresearch/manticore.conf && \
chmod g+w /var/lib/manticore /var/run/manticore /var/log/manticore && \
chgrp 0 /var/lib/manticore /var/run/manticore /var/log/manticore
# TODO: once in production, update porta to generate config with the correct path \
sed -i -e 's#/var/run/sphinx/#/var/run/manticore/#' /etc/manticoresearch/manticore.conf && \
mkdir /var/lib/searchd && \
chmod g+w /var/lib/searchd /var/run/manticore /var/log/manticore && \
chgrp 0 /var/lib/searchd /var/run/manticore /var/log/manticore

WORKDIR /var/lib/manticore
ENTRYPOINT ["/bin/env", "searchd", "--pidfile", "--config", "/etc/manticoresearch/manticore.conf", "--nodetach"]
Expand Down

0 comments on commit ee24a4d

Please sign in to comment.