From d37f8a3a36d4a6f31ff5e54ce1f83273d4551a46 Mon Sep 17 00:00:00 2001 From: Douglas Coburn Date: Fri, 7 Nov 2025 14:16:13 -0800 Subject: [PATCH 1/3] Fixed docker build to have uv in the default path --- Dockerfile | 7 ++++--- pyproject.toml | 2 +- scripts/build_container.sh | 37 ++++++++++++++++++++++++++++++++++--- socketsecurity/__init__.py | 2 +- 4 files changed, 40 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6c5bdbb..cc9e154 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,7 @@ RUN apk update \ && npm install @coana-tech/cli -g # Install uv -RUN curl -LsSf https://astral.sh/uv/install.sh | sh -ENV PATH="/root/.cargo/bin:${PATH}" +COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv # Install CLI with retries for TestPyPI propagation (10 attempts, 30s each = 5 minutes total) RUN for i in $(seq 1 10); do \ @@ -24,4 +23,6 @@ RUN for i in $(seq 1 10); do \ done && \ if [ ! -z "$SDK_VERSION" ]; then \ pip install --index-url ${PIP_INDEX_URL} --extra-index-url ${PIP_EXTRA_INDEX_URL} socketdev==${SDK_VERSION}; \ - fi \ No newline at end of file + fi + +# ENTRYPOINT ["socketcli"] \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index cf3abcb..b47ec4f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "socketsecurity" -version = "2.2.23" +version = "2.2.24" requires-python = ">= 3.10" license = {"file" = "LICENSE"} dependencies = [ diff --git a/scripts/build_container.sh b/scripts/build_container.sh index f268246..d6072a0 100755 --- a/scripts/build_container.sh +++ b/scripts/build_container.sh @@ -24,9 +24,12 @@ verify_package() { echo $VERSION if [ -z $ENABLE_PYPI_BUILD ] || [ -z $STABLE_VERSION ]; then - echo "$0 pypi-build=enable stable=true" - echo "\tpypi-build: Build and publish a new version of the package to pypi. Options are prod or test" - echo "\tstable: Only build and publish a new version for the stable docker tag if it has been tested and going on the changelog" + echo "$0 pypi-build=