Files
loci/scripts/venv_builder.sh
Vladimir Kozhukalov a9f2417e0f Build images using UV
For backward compatibility we build two sets of images

1) We don't change the way how we build images using PIP.
   This assumes having so called requirements image
   that contains all the necessary wheels and then we
   build all other project images using these wheels
   from the requirements image.

2) Also we add another set of images that we build
   using the two stage Dockerfile. On the first stage
   we build venv using UV and then we just copy the
   venv as is to the project image.

Depends-On: Id6412055f742990f08aa1befa7a41f1670414d4c
Change-Id: I0726c1b7d9f9bee3097c4891248f41169fe6ac46
Signed-off-by: Vladimir Kozhukalov <kozhukalov@gmail.com>
2025-12-22 19:11:25 +00:00

18 lines
404 B
Bash
Executable File

#!/bin/bash
set -eux
source $(dirname $0)/helpers.sh
setup_venv
configure_apt_sources "${APT_MIRROR}"
read -r -a bindep_packages <<<"$(get_bindep_system_packages requirements)"
install_system_packages "${bindep_packages[@]}"
clone_project requirements "${REQUIREMENTS_REPO}" "${REQUIREMENTS_REF}"
mv ${SOURCES_DIR}/requirements/{global-requirements.txt,upper-constraints.txt} /
revert_apt_sources