mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
No Bugfix No No Turned off cost output in one test that has different output in PG16 vs PG15 added citus installation step to Dockerfile to make pg_helio_distributed test to pass ---- Bug fix for SQL tests in `pg_helio_api` and `pg_helio_distributed`. This pull request addresses issues with SQL tests by updating configurations and expected outputs. - `/oss/.devcontainer/devcontainer.json`: Added Docker build arguments for PostgreSQL and Citus versions, and configured port forwarding. - `/oss/pg_helio_api/src/test/regress/expected/bson_aggregation_pipeline_tests_geonear.out`: Updated expected output for `bson_aggregation_pipeline` tests to include verbose EXPLAIN output. - `/oss/.devcontainer/Dockerfile`: Parameterized PostgreSQL and Citus versions, added locale settings, and updated package installations. - `/oss/pg_helio_api/src/test/regress/sql/bson_aggregation_pipeline_tests_geonear.sql`: Modified SQL test to include verbose EXPLAIN output.
70 lines
2.1 KiB
Docker
70 lines
2.1 KiB
Docker
FROM --platform=linux/amd64 mcr.microsoft.com/mirror/docker/library/ubuntu:20.04
|
|
ARG POSTGRES_INSTALL_ARG=
|
|
ARG PG_VERSION=
|
|
ARG CITUS_VERSION=
|
|
|
|
# declare installed PG version and Citus version
|
|
ENV PG_VERSION=16
|
|
ENV CITUS_VERSION=12.1
|
|
|
|
ENV LC_ALL=en_US.UTF-8
|
|
ENV LANGUAGE=en_US
|
|
ENV LC_COLLATE=en_US.UTF-8
|
|
ENV LC_CTYPE=en_US.UTF-8
|
|
|
|
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
|
&& apt-get install -qy \
|
|
wget \
|
|
curl \
|
|
sudo \
|
|
gnupg2 \
|
|
lsb-release \
|
|
tzdata \
|
|
build-essential \
|
|
pkg-config \
|
|
cmake \
|
|
git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Add pgdg repo
|
|
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list && \
|
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
|
|
apt-get update && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN curl -4sSf https://packagecloud.io/install/repositories/citusdata/community/script.deb.sh | bash
|
|
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive \
|
|
&& apt-get install -y \
|
|
postgresql-${PG_VERSION} \
|
|
postgresql-server-dev-${PG_VERSION} \
|
|
libpq-dev \
|
|
libicu-dev \
|
|
libkrb5-dev \
|
|
postgresql-${PG_VERSION}-cron \
|
|
postgresql-${PG_VERSION}-pgvector \
|
|
postgresql-${PG_VERSION}-postgis-3 \
|
|
postgresql-${PG_VERSION}-rum \
|
|
postgresql-${PG_VERSION}-citus-${CITUS_VERSION} \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Libbson, decimal128, pcre
|
|
ENV CLEANUP_SETUP=1
|
|
ENV INSTALL_DEPENDENCIES_ROOT=/tmp/install_setup
|
|
RUN mkdir -p /tmp/install_setup
|
|
COPY scripts/ /tmp/install_setup
|
|
RUN MAKE_PROGRAM=cmake /tmp/install_setup/install_setup_libbson.sh
|
|
RUN /tmp/install_setup/install_setup_pcre2.sh
|
|
RUN /tmp/install_setup/install_setup_intel_decimal_math_lib.sh
|
|
RUN /tmp/install_setup/install_citus_indent.sh
|
|
|
|
|
|
RUN rm -rf /var/lib/apt/lists/* \
|
|
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
|
|
|
RUN useradd -ms /bin/bash heliodb -G sudo
|
|
RUN echo "%sudo ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers.d/no-pass-ask
|
|
|
|
USER heliodb
|
|
WORKDIR /home/heliodb
|