Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Fix docker build.

Kishore Nallan377e302111df
diff --git a/ci_build.sh b/ci_build.sh
index 60866063..83c803a6 100644
--- a/ci_build.sh
+++ b/ci_build.sh
@@ -17,7 +17,7 @@ fi
docker run --user $UID:$GID --volume="/etc/group:/etc/group:ro" --volume="/etc/passwd:/etc/passwd:ro" \
--volume="/etc/shadow:/etc/shadow:ro" -it --rm -v $HOME/docker_bazel_cache:$HOME/docker_bazel_cache -v $PROJECT_DIR:/src \
---workdir /src typesense/typesense/bazel_dev:23032023 bazel --output_user_root=$HOME/docker_bazel_cache/cache build \
+--workdir /src typesense/bazel_dev:24032023 bazel --output_user_root=$HOME/docker_bazel_cache/cache build --verbose_failures \
--jobs=6 --action_env=LD_LIBRARY_PATH="/usr/local/gcc-10.3.0/lib64" \
--define=TYPESENSE_VERSION=\"$TYPESENSE_VERSION\" //:$TYPESENSE_TARGET
diff --git a/docker/bazel_dev.Dockerfile b/docker/bazel_dev.Dockerfile
index 734eadbe..55d935ef 100644
--- a/docker/bazel_dev.Dockerfile
+++ b/docker/bazel_dev.Dockerfile
@@ -41,8 +41,25 @@ RUN /usr/bin/bazel --version
RUN apt-get -y install git
+#RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
+
ENV CC /usr/local/gcc-10.3.0/bin/gcc
ENV CXX /usr/local/gcc-10.3.0/bin/g++
ENV PATH /usr/local/gcc-10.3.0/bin/:$PATH
ENV LD_LIBRARY_PATH /usr/local/gcc-10.3.0/lib64
+RUN locale-gen en_US.UTF-8
+ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
+
+RUN apt install -y libssl-dev
+
+ADD https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz /opt
+RUN tar -C /opt -xf /opt/Python-3.6.3.tgz
+RUN cd /opt/Python-3.6.3 && ./configure --enable-optimizations && make install
+
+ADD https://bootstrap.pypa.io/pip/3.6/get-pip.py /opt
+RUN /usr/local/bin/python3.6 /opt/get-pip.py
+
+RUN update-alternatives --install /usr/bin/python python /usr/local/bin/python3.6 1
+
+