Skip to content

Commit

Permalink
chore(deps): update Python deps in tests and examples (#6027)
Browse files Browse the repository at this point in the history
* chore: update Flask to 2.3.3 in examples and tests

* chore: update Flask to 3.0.3 in examples and tests

* chore: sync `requests` and `urllib3` versions in examples

* chore: update Python image to the latest 3.11 in tests/examples

* chore: update Python image to the latest 3.12 in tests/examples

* chore: ensure latest `pip` and `setuptools` in Dockerfiles
  • Loading branch information
vvagaytsev committed May 14, 2024
1 parent 3640b4e commit 61ed07f
Show file tree
Hide file tree
Showing 18 changed files with 60 additions and 18 deletions.
6 changes: 5 additions & 1 deletion core/test/data/test-projects/helm/api-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Using official python runtime base image
FROM python:3.10.5-alpine3.16
FROM python:3.12-alpine3.19

# Set the application directory
WORKDIR /app

# Install our requirements.txt
ADD requirements.txt /app/requirements.txt

RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade setuptools

RUN pip install -r requirements.txt

# Copy our code from the current folder to /app inside the container
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==2.2.5
Flask==3.0.3
redis==4.4.4
gunicorn==22.0.0
flask-cors==4.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Using official python runtime base image
FROM python:3.10.5-alpine3.16
FROM python:3.12-alpine3.19

# Set the application directory
WORKDIR /app

# Install our requirements.txt
ADD requirements.txt /app/requirements.txt

RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade setuptools

RUN pip install -r requirements.txt

# Copy our code from the current folder to /app inside the container
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==2.2.5
Flask==3.0.3
redis==4.4.4
gunicorn==22.0.0
flask-cors==4.0.1
Expand Down
6 changes: 5 additions & 1 deletion e2e/projects/vote-helm-modules/api-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Using official python runtime base image
FROM python:3.10.5-alpine3.16
FROM python:3.12-alpine3.19

# Set the application directory
WORKDIR /app

# Install our requirements.txt
ADD requirements.txt /app/requirements.txt

RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade setuptools

RUN pip install -r requirements.txt

# Copy our code from the current folder to /app inside the container
Expand Down
2 changes: 1 addition & 1 deletion e2e/projects/vote-helm-modules/api-image/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==2.2.5
Flask==3.0.3
redis==4.4.4
gunicorn==22.0.0
flask-cors==4.0.1
Expand Down
6 changes: 5 additions & 1 deletion e2e/projects/vote-modules/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Using official python runtime base image
FROM python:3.10.5-alpine3.16
FROM python:3.12-alpine3.19

# Set the application directory
WORKDIR /app

# Install our requirements.txt
ADD requirements.txt /app/requirements.txt

RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade setuptools

RUN pip install -r requirements.txt

# Copy our code from the current folder to /app inside the container
Expand Down
2 changes: 1 addition & 1 deletion e2e/projects/vote-modules/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==2.2.5
Flask==3.0.3
redis==4.4.4
gunicorn==22.0.0
flask-cors==4.0.1
Expand Down
6 changes: 5 additions & 1 deletion examples/k8s-deploy-config-templates/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Using official python runtime base image
FROM python:3.10.5-alpine3.16
FROM python:3.12-alpine3.19

# Set the application directory
WORKDIR /app
Expand All @@ -8,6 +8,10 @@ RUN apk add --no-cache entr postgresql-dev musl-dev gcc

# Install our requirements.txt
COPY requirements.txt /app/requirements.txt

RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade setuptools

RUN pip install -r requirements.txt

# Copy our code from the current folder to /app inside the container
Expand Down
4 changes: 3 additions & 1 deletion examples/k8s-deploy-config-templates/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Flask==2.2.5
Flask==3.0.3
redis==4.4.4
gunicorn==22.0.0
flask-cors==4.0.1
requests==2.31.0
urllib3==1.26.17
psycopg2
6 changes: 5 additions & 1 deletion examples/k8s-deploy-patch-resources/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Using official python runtime base image
FROM python:3.10.5-alpine3.16
FROM python:3.12-alpine3.19

# Set the application directory
WORKDIR /app
Expand All @@ -8,6 +8,10 @@ RUN apk add --no-cache entr postgresql-dev musl-dev gcc

# Install our requirements.txt
COPY requirements.txt /app/requirements.txt

RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade setuptools

RUN pip install -r requirements.txt

# Copy our code from the current folder to /app inside the container
Expand Down
4 changes: 3 additions & 1 deletion examples/k8s-deploy-patch-resources/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Flask==2.2.5
Flask==3.0.3
redis==4.4.4
gunicorn==22.0.0
flask-cors==4.0.1
requests==2.31.0
urllib3==1.26.17
psycopg2
6 changes: 5 additions & 1 deletion examples/k8s-deploy-shared-manifests/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Using official python runtime base image
FROM python:3.10.5-alpine3.16
FROM python:3.12-alpine3.19

# Set the application directory
WORKDIR /app
Expand All @@ -8,6 +8,10 @@ RUN apk add --no-cache entr postgresql-dev musl-dev gcc

# Install our requirements.txt
COPY requirements.txt /app/requirements.txt

RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade setuptools

RUN pip install -r requirements.txt

# Copy our code from the current folder to /app inside the container
Expand Down
4 changes: 3 additions & 1 deletion examples/k8s-deploy-shared-manifests/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Flask==2.2.5
Flask==3.0.3
redis==4.4.4
gunicorn==22.0.0
flask-cors==4.0.1
requests==2.31.0
urllib3==1.26.17
psycopg2
6 changes: 5 additions & 1 deletion examples/vote-helm/api-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Using official python runtime base image
FROM python:3.10.5-alpine3.16
FROM python:3.12-alpine3.19

# Set the application directory
WORKDIR /app

# Install our requirements.txt
ADD requirements.txt /app/requirements.txt

RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade setuptools

RUN pip install -r requirements.txt

# Copy our code from the current folder to /app inside the container
Expand Down
2 changes: 1 addition & 1 deletion examples/vote-helm/api-image/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==2.2.5
Flask==3.0.3
redis==4.4.4
gunicorn==22.0.0
flask-cors==4.0.1
Expand Down
6 changes: 5 additions & 1 deletion examples/vote/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Using official python runtime base image
FROM python:3.10.5-alpine3.16
FROM python:3.12-alpine3.19

# Set the application directory
WORKDIR /app

# Install our requirements.txt
ADD requirements.txt /app/requirements.txt

RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade setuptools

RUN pip install -r requirements.txt

# Copy our code from the current folder to /app inside the container
Expand Down
2 changes: 1 addition & 1 deletion examples/vote/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==2.2.5
Flask==3.0.3
redis==4.4.4
gunicorn==22.0.0
flask-cors==4.0.1
Expand Down

0 comments on commit 61ed07f

Please sign in to comment.