Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Python version to latest 3.9 in bright #164

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions plugins/bright_plugin/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ COPY utils/ ${BASE_PATH}/utils/
COPY ${SRC_BASE_DIR}/conf/supervisord.conf /etc/supervisor/conf.d/
COPY ${SRC_BASE_DIR}/scripts/init.sh ${SRC_BASE_DIR}/scripts/deinit.sh /

RUN apt-get update && apt-get -y install supervisor python3.9 python3-pip vim curl sudo
RUN apt-get update && apt-get -y install supervisor vim curl sudo software-properties-common

RUN python3.9 -m pip install -r ${BASE_PATH}/${SRC_BASE_DIR}/src/bright/requirements.txt
# Install python3.10
RUN add-apt-repository ppa:deadsnakes/ppa -y
RUN apt-get update && apt-get install -y python3.10 python3-pip

RUN python3.10 -m pip install -r ${BASE_PATH}/${SRC_BASE_DIR}/src/bright/requirements.txt

# remove an unused library that caused a high CVE vulnerability issue https://redmine.mellanox.com/issues/3621850
RUN apt-get remove -y linux-libc-dev
Expand Down
4 changes: 2 additions & 2 deletions plugins/bright_plugin/conf/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stderr_logfile_maxbytes=0

[program:bright_plugin_service]
directory=/opt/ufm/ufm_plugin_bright
command=python3.9 /opt/ufm/ufm_plugin_bright/bright_plugin/src/bright/app.py
command=python3.10 /opt/ufm/ufm_plugin_bright/bright_plugin/src/bright/app.py
autostart=true
autorestart=true
startretries=1
Expand All @@ -29,4 +29,4 @@ stopasgroup=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
stderr_logfile_maxbytes=0