Skip to content

Commit 31db4ff

Browse files
committed
fix
1 parent 2e85389 commit 31db4ff

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/performance/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ config: ## Create config for your locust tests
9595

9696
.PHONY: build-test-image push-test-image
9797
build-test-image: _check_venv_active ## Build test image
98-
docker build --build-arg PYTHON_VERSION=$(shell python --version | cut -d' ' -f2) -t ${TEST_IMAGE_NAME}:${TEST_IMAGE_TAG} ./docker
98+
docker build --build-arg PYTHON_VERSION="$(shell python --version | cut -d' ' -f2)" --build-arg UV_VERSION="$(shell uv --version | cut -d' ' -f2)" -t ${TEST_IMAGE_NAME}:${TEST_IMAGE_TAG} ./docker
9999

100100
push-test-image: ## Push test image to dockerhub
101101
docker push ${TEST_IMAGE_NAME}:${TEST_IMAGE_TAG}

tests/performance/docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG UV_VERSION="0.4"
4-
FROM cruizba/ubuntu-dind:latest as base
53

4+
FROM cruizba/ubuntu-dind:latest AS base
5+
ARG PYTHON_VERSION
66
LABEL maintainer=bisgaard-itis
77

88
# Sets utf-8 encoding for Python et al
99
ENV LANG=C.UTF-8
10-
ENV UV_PYTHON=3.11.9
10+
ENV UV_PYTHON=${PYTHON_VERSION}
1111

1212
# Turns off writing .pyc files; superfluous on an ephemeral container.
1313
ENV PYTHONDONTWRITEBYTECODE=1 \
@@ -27,7 +27,7 @@ RUN apt-get update \
2727
jq
2828

2929
# install UV https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
30-
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
30+
COPY --from=ghcr.io/astral-sh/uv:0.4 /uv /uvx /bin/
3131

3232
RUN uv venv "${VIRTUAL_ENV}"
3333

0 commit comments

Comments
 (0)