From 0eeb5b460cc9d283bc1499673a061a3f2ab32124 Mon Sep 17 00:00:00 2001 From: zyy17 Date: Mon, 27 Mar 2023 15:20:31 +0800 Subject: [PATCH] ci: install python requests lib in release container image (#1241) * ci: install python requests lib in release container image * refactor: add requirements.txt --- .github/workflows/release.yml | 4 ++-- docker/ci/Dockerfile | 4 +++- docker/ci/requirements.txt | 5 +++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 docker/ci/requirements.txt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 540396fab9..020942b489 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -275,7 +275,7 @@ jobs: uses: docker/build-push-action@v3 if: success() || steps.unzip-arm64.conclusion == 'success' # Build and push all platform if unzip-arm64 succeeds with: - context: . + context: ./docker/ci/ file: ./docker/ci/Dockerfile push: true platforms: linux/amd64,linux/arm64 @@ -287,7 +287,7 @@ jobs: uses: docker/build-push-action@v3 if: success() || steps.download-arm64.conclusion == 'failure' # Only build and push amd64 platform if download-arm64 fails with: - context: . + context: ./docker/ci/ file: ./docker/ci/Dockerfile push: true platforms: linux/amd64 diff --git a/docker/ci/Dockerfile b/docker/ci/Dockerfile index 9ae0d0879c..c495ec2aff 100644 --- a/docker/ci/Dockerfile +++ b/docker/ci/Dockerfile @@ -6,7 +6,9 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ python3.10-dev \ python3-pip -RUN python3 -m pip install pyarrow +COPY requirements.txt /etc/greptime/requirements.txt + +RUN python3 -m pip install -r /etc/greptime/requirements.txt ARG TARGETARCH diff --git a/docker/ci/requirements.txt b/docker/ci/requirements.txt new file mode 100644 index 0000000000..b8a6b07526 --- /dev/null +++ b/docker/ci/requirements.txt @@ -0,0 +1,5 @@ +numpy>=1.24.2 +pandas>=1.5.3 +pyarrow>=11.0.0 +requests>=2.28.2 +scipy>=1.10.1