Skip to content

Commit ceccd86

Browse files
Use uv instead of pip for registry
1 parent 2c490b8 commit ceccd86

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

registry.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ _start=$(date +%s)
1919
trap 'printf "Registry creation process: %s secs\n" "$(($(date +%s)-_start))"' EXIT
2020

2121
# NOTE: Shorten link -> https://github.com/electrocucaracha/pkg-mgr_scripts
22-
curl -fsSL http://bit.ly/install_pkg | PKG_COMMANDS_LIST="pip,skopeo,docker,jq,git,crudini" bash
22+
curl -fsSL http://bit.ly/install_pkg | PKG_COMMANDS_LIST="skopeo,docker,jq,git,crudini" bash
23+
24+
if ! command -v uv; then
25+
curl -LsSf https://astral.sh/uv/install.sh | sh
26+
PATH="$HOME/.local/bin:$PATH"
27+
fi
2328

2429
if ! command -v kolla-build; then
25-
python -m pip install "git+https://github.com/openstack/kolla.git@${OS_KOLLA_VERSION:-stable/2024.2}"
26-
python -m pip install docker-squash
30+
uv pip install "git+https://github.com/openstack/kolla.git@${OS_KOLLA_VERSION:-stable/2024.2}" --system
31+
uv pip install docker-squash --system
2732
fi
2833

2934
# Start local registry

0 commit comments

Comments
 (0)