Use new docker image for build.

This commit is contained in:
Kishore Nallan 2021-12-04 19:07:49 +05:30
parent baa8f55787
commit 519ddfb5ba
2 changed files with 7 additions and 10 deletions

View File

@ -22,7 +22,7 @@ if [[ "$@" == *"--depclean"* ]]; then
fi
TYPESENSE_DEV_IMAGE="typesense-development:09-AUG-2021-1"
TYPESENSE_DEV_IMAGE="typesense-development:04-DEC-2021-1"
if [[ "$@" == *"--graviton2"* ]]; then
TYPESENSE_DEV_IMAGE="typesense-development-arm:03-DEC-2021-1"
fi

View File

@ -7,22 +7,19 @@ FROM typesense/ubuntu-12-04-gcc:v10.1.0
ENV PATH /usr/local/gcc-10.1.0/bin/:$PATH
ENV LD_LIBRARY_PATH /usr/local/gcc-10.1.0/lib64
RUN apt-get install -y python-software-properties \
&& add-apt-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get install -y \
RUN apt-get update && apt-get install -y \
python-software-properties \
zlib1g-dev \
liblist-compare-perl \
git
liblist-compare-perl
ADD https://ftp.gnu.org/gnu/binutils/binutils-2.36.tar.xz /opt/binutils-2.36.tar.xz
RUN tar -C /opt -xf /opt/binutils-2.36.tar.xz
RUN cd /opt/binutils-2.36 && ./configure --prefix=/usr && make tooldir=/usr && make check && \
make -j8 tooldir=/usr install && cp include/libiberty.h /usr/include
ADD https://github.com/Kitware/CMake/releases/download/v3.22.0/cmake-3.22.0-Linux-x86_64.tar.gz /opt/cmake-3.22.0-Linux-x86_64.tar.gz
RUN tar -C /opt -xvzf /opt/cmake-3.22.0-Linux-x86_64.tar.gz
RUN cp -r /opt/cmake-3.22.0-Linux-x86_64/* /usr
ADD https://github.com/Kitware/CMake/releases/download/v3.22.0/cmake-3.22.0-linux-x86_64.tar.gz /opt/cmake-3.22.0-linux-x86_64.tar.gz
RUN tar -C /opt -xvzf /opt/cmake-3.22.0-linux-x86_64.tar.gz
RUN cp -r /opt/cmake-3.22.0-linux-x86_64/* /usr
ADD https://launchpad.net/ubuntu/+archive/primary/+files/snappy_1.1.3.orig.tar.gz /opt/snappy_1.1.3.orig.tar.gz
RUN tar -C /opt -xf /opt/snappy_1.1.3.orig.tar.gz