fix(processing_engine): Update Dockerfile and pip installer so pip works. (#25987)

pull/25856/merge
Jackson Newhouse 2025-02-11 09:08:01 -08:00 committed by GitHub
parent 9646691d96
commit 80de52f15f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -39,7 +39,7 @@ RUN \
FROM debian:bookworm-slim
RUN apt update \
&& apt install --yes ca-certificates gettext-base libssl3 python3 python3-dev python3-pip wget curl --no-install-recommends \
&& apt install --yes ca-certificates gettext-base libssl3 python3 python3-dev python3-pip python3-venv wget curl --no-install-recommends \
&& rm -rf /var/lib/{apt,dpkg,cache,log} \
&& groupadd --gid 1500 influxdb3 \
&& useradd --uid 1500 --gid influxdb3 --shell /bin/bash --create-home influxdb3

View File

@ -98,7 +98,7 @@ impl PythonEnvironmentManager for PipManager {
};
if !is_valid_venv(venv_path) {
Command::new("python")
Command::new("python3")
.arg("-m")
.arg("venv")
.arg(venv_path)

View File

@ -74,7 +74,6 @@ pub(crate) fn initialize_venv(venv_path: &Path) -> Result<(), VenvError> {
activate_script
)));
}
set_pythonpath(venv_path)?;
let output = Command::new("bash")
.arg("-c")
@ -96,5 +95,7 @@ pub(crate) fn initialize_venv(venv_path: &Path) -> Result<(), VenvError> {
.filter_map(|line| line.split_once('='))
.for_each(|(key, value)| std::env::set_var(key, value));
set_pythonpath(venv_path)?;
Ok(())
}