fix(processing_engine): Update Dockerfile and pip installer so pip works. (#25987)
parent
9646691d96
commit
80de52f15f
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue