Skip to content

Commit 2fd29af

Browse files
committed
Migrate tram Container to Ubuntu 22.04 and Upgrade Dependencies
Update the base image of the `tram` container to `ubuntu:22.04` Update the Nginx version to v1.27 for the `tram-nginx` container Update dependencies to ensure compatibility with Python 3.10 Configure CI to use Python 3.10
1 parent 3ba509d commit 2fd29af

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
name: TRAM GitHub Action Tests
1212
steps:
13-
- uses: actions/checkout@v2
14-
- name: Set up Python 3.9
15-
uses: actions/setup-python@v2
13+
- uses: actions/checkout@v4
14+
- name: Set up Python 3.10
15+
uses: actions/setup-python@v5
1616
with:
17-
python-version: '3.9'
17+
python-version: '3.10'
1818
- name: Install and update essential dependencies
1919
run: |
2020
pip install -U pip setuptools

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
# Simple build command: `docker build -t [repo_name]/tram:[version] .`
1010

11-
FROM ubuntu:20.04
11+
FROM ubuntu:22.04
1212

1313
# OCI labels
1414
LABEL "org.opencontainers.image.title"="TRAM"
@@ -86,7 +86,7 @@ ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 \
8686
PATH=/tram/.venv/bin:${PATH}
8787

8888
# flush all output immediately
89-
ENV PYTHONUNBUFFERED 1
89+
ENV PYTHONUNBUFFERED=1
9090

9191
WORKDIR /tram
9292

docker/Dockerfile.nginx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nginx:1.21.5-alpine
1+
FROM nginx:1.27.3-alpine
22

33
# OCI labels
44
LABEL "org.opencontainers.image.title"="TRAM"

requirements/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ django-picklefield==3.1
44
djangorestframework==3.14.0
55
djangorestframework-simplejwt==5.2.2
66
django==3.2.20
7-
faker==6.5.0
7+
faker==15.3.4
88
gunicorn==20.1.0
99
nltk==3.8.1
10+
numpy==1.24.4
1011
pandas==2.0.2
1112
pdfplumber==0.9.0
1213
python-docx==0.8.11

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ testpaths =
3636

3737
[gh-actions]
3838
python =
39-
3.9: tram, bandit, flake8, safety
39+
3.10: tram, bandit, flake8, safety

0 commit comments

Comments
 (0)