ci: install python requests lib in release container image (#1241)

* ci: install python requests lib in release container image

* refactor: add requirements.txt
This commit is contained in:
zyy17
2023-03-27 15:20:31 +08:00
committed by GitHub
parent 65ea6fd85f
commit 0eeb5b460c
3 changed files with 10 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,5 @@
numpy>=1.24.2
pandas>=1.5.3
pyarrow>=11.0.0
requests>=2.28.2
scipy>=1.10.1