From b1c064cbae2d4cf197f950f2d17546994f7470bf Mon Sep 17 00:00:00 2001 From: Andrey Arutiunian Date: Wed, 19 Jul 2023 19:02:15 +0300 Subject: [PATCH] init --- .github/workflows/Dockerfile.buster | 33 ++++++++++++++--------------- tests/python/requirements.txt | 4 ++-- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.github/workflows/Dockerfile.buster b/.github/workflows/Dockerfile.buster index 56e6e7098e..e81c830577 100644 --- a/.github/workflows/Dockerfile.buster +++ b/.github/workflows/Dockerfile.buster @@ -1,11 +1,9 @@ FROM debian:buster -ARG DEBIAN_FRONTEND=noninteractive + ARG DEBIAN_FRONTEND=noninteractive -COPY tests/python/requirements.txt /tmp/ - -RUN apt-get update && \ - apt-get install -y --no-install-recommends apt-utils ca-certificates gnupg wget lsb-release && \ - echo "deb https://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list && \ + RUN apt-get update && \ + apt-get install -y --no-install-recommends apt-utils ca-certificates gnupg wget lsb-release && \ + echo "deb https://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list && \ wget -qO /etc/apt/trusted.gpg.d/vkpartner.asc https://artifactory-external.vkpartner.ru/artifactory/api/gpg/key/public && \ echo "deb https://artifactory-external.vkpartner.ru/artifactory/kphp buster main" >> /etc/apt/sources.list && \ wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add - && \ @@ -16,15 +14,16 @@ RUN apt-get update && \ rm -f "$TEMP_DEB" && \ echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \ wget -qO - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - git cmake-data=3.18* cmake=3.18* make g++ gperf netcat \ - python3.7 python3-dev libpython3-dev python3-pip python3-setuptools mysql-server libmysqlclient-dev && \ - pip3 install -r /tmp/requirements.txt && \ - apt-get install -y --no-install-recommends curl-kphp-vk kphp-timelib libuber-h3-dev libfmt-dev libgtest-dev libgmock-dev libre2-dev libpcre3-dev \ - libzstd-dev libyaml-cpp-dev libnghttp2-dev zlib1g-dev php7.4-dev libldap-dev libkrb5-dev \ - postgresql postgresql-server-dev-all libnuma-dev composer && \ - rm -rf /var/lib/apt/lists/* && \ - update-alternatives --set php /usr/bin/php7.4 + apt-get update && \ + apt-get install -y --no-install-recommends \ + git cmake-data=3.18* cmake=3.18* make g++ gperf netcat \ + python3-minimal python3-dev libpython3-dev python3-jsonschema python3-setuptools python3-pip && \ + pip3 install wheel && \ + apt-get install -y --no-install-recommends curl-kphp-vk kphp-timelib libuber-h3-dev libfmt-dev libgtest-dev libgmock-dev libre2-dev libpcre3-dev \ + libzstd-dev libyaml-cpp-dev libnghttp2-dev zlib1g-dev php7.4-dev mysql-server libmysqlclient-dev libldap-dev libkrb5-dev \ + postgresql postgresql-server-dev-all libnuma-dev composer && \ + pip3 install portalocker psutil requests-toolbelt pytest pytest-xdist pytest-mysql pytest-postgresql psycopg zstandard && \ + rm -rf /var/lib/apt/lists/* && \ + update-alternatives --set php /usr/bin/php7.4 -RUN useradd -ms /bin/bash kitten +RUN useradd -ms /bin/bash kitten \ No newline at end of file diff --git a/tests/python/requirements.txt b/tests/python/requirements.txt index 450cdcca22..c9b35840c8 100644 --- a/tests/python/requirements.txt +++ b/tests/python/requirements.txt @@ -1,8 +1,8 @@ -wheel==0.37.0 +wheel==0.38.1 jsonschema==4.17.3 portalocker==2.7.0 psutil==5.9.5 -requests==2.28.1 +requests==2.31.0 urllib3==1.26.12 requests-toolbelt==0.9.1 pytest==7.3.1