Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Commit 10f019e

Browse files
authored
Switch back to python2 to fix issues (#67)
It seems as though this app isn't quite python3 compatible yet. This does the following: - Switch to using an AlmaLinux 8 so we can use python2 - Install git which is needed for the app to run - Update requirements.txt to match current production We need to eventually get this app and it's dependencies upgraded but this at least allows us to migrate it. Signed-off-by: Lance Albertson <[email protected]>
1 parent 1406f13 commit 10f019e

File tree

2 files changed

+23
-24
lines changed

2 files changed

+23
-24
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
FROM python:3.11-alpine
1+
FROM almalinux:8
22

3+
RUN dnf -y install python2-pip python2-devel git
34
COPY requirements.txt /prerelease_website/requirements.txt
45
WORKDIR /prerelease_website
5-
RUN pip --no-cache-dir install -r requirements.txt
6+
RUN pip2 --no-cache-dir install -r requirements.txt
67
COPY . /prerelease_website
78
ENTRYPOINT ["/prerelease_website/entrypoint.sh"]
89
EXPOSE 5000

requirements.txt

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
blinker==1.8.2
2-
catkin-pkg==1.0.0
3-
click==8.1.7
4-
configparser==7.0.0
5-
distro==1.9.0
6-
docutils==0.21.2
7-
empy==4.1
8-
Flask==3.0.3
9-
gunicorn==22.0.0
10-
itsdangerous==2.2.0
11-
Jinja2==3.1.4
12-
MarkupSafe==2.1.5
13-
packaging==24.1
14-
pyparsing==3.1.2
15-
python-dateutil==2.9.0.post0
16-
PyYAML==6.0.1
1+
catkin-pkg==0.4.23
2+
click==7.1.2
3+
configparser==4.0.2
4+
distro==1.5.0
5+
docutils==0.16
6+
empy==3.3.4
7+
Flask==1.1.2
8+
gunicorn==19.10.0
9+
itsdangerous==1.1.0
10+
Jinja2==2.11.3
11+
MarkupSafe==1.1.1
12+
pyparsing==2.4.7
13+
python-dateutil==2.8.1
14+
PyYAML==5.4.1
1715
ros-buildfarm==3.0.0
18-
rosdistro==0.9.1
19-
rosinstall-generator==0.1.23
20-
rospkg==1.5.1
21-
six==1.16.0
22-
vcstool==0.3.0
23-
Werkzeug==3.0.3
16+
rosdistro==0.8.3
17+
rosinstall-generator==0.1.22
18+
rospkg==1.2.10
19+
six==1.15.0
20+
vcstool==0.2.15
21+
Werkzeug==1.0.1

0 commit comments

Comments
 (0)