Skip to content

Commit 2a20b48

Browse files
author
a.b.christie
committed
build: UV via pip
1 parent d645c52 commit 2a20b48

3 files changed

Lines changed: 16 additions & 24 deletions

File tree

Dockerfile

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ RUN pip install -r /tmp/requirements.txt \
4848
&& curl -LO https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/${TARGETPLATFORM}/kubectl \
4949
&& install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl \
5050
&& rm kubectl
51+
52+
ENV UV_LINK_MODE=copy
53+
5154
# Popeye (ARM or AMD)
5255
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
5356
wget https://github.com/derailed/popeye/releases/download/v${POPEYE_VERSION}/popeye_linux_arm64.tar.gz && \
@@ -60,17 +63,5 @@ RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
6063
fi \
6164
&& mv popeye /usr/local/bin \
6265
&& rm LICENSE README.md
63-
# uv
64-
ADD https://astral.sh/uv/${UV_VERSION}/install.sh /uv-installer.sh
65-
RUN apt-get update \
66-
&& apt-get install -y \
67-
vim \
68-
&& sh /uv-installer.sh \
69-
&& rm /uv-installer.sh \
70-
&& mv /root/.local/bin/uv /usr/local/bin \
71-
&& mv /root/.local/bin/uvx /usr/local/bin \
72-
&& chown -R $USERNAME /usr/local/bin/uv \
73-
&& chown -R $USERNAME /usr/local/bin/uvx
74-
ENV UV_LINK_MODE=copy
7566

7667
USER $USERNAME

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ your workspace `.devcontainer` directory and VS Code should do the rest.
1919
The above creates an image with the user "vscode" and the following tools
2020
installed (amongst others): -
2121

22-
- python (3.13 debian)
23-
- uv (0.10.4)
24-
- pre-commit (4.2)
25-
- ansible (11.8)
26-
- kubectl (1.35)
27-
- popeye (0.22)
22+
- python
23+
- uv
24+
- pre-commit
25+
- ansible
26+
- kubectl
27+
- popeye
2828
- Docker-in-Docker
2929

3030
**NOTE** You need a directory `~/k8s-config` on your local machine. The

requirements.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
pre-commit == 4.2.0
2-
ansible == 11.8.0
3-
kubernetes == 31.0.0
1+
ansible == 13.3.0
2+
botocore == 1.42.43
3+
boto3 == 1.42.43
4+
jmespath == 1.1.0
5+
kubernetes == 35.0.0
46
openshift == 0.13.2
5-
botocore == 1.39.8
6-
boto3 == 1.39.8
7-
jmespath == 1.0.1
7+
pre-commit == 4.5.1
8+
uv == 0.10.4

0 commit comments

Comments
 (0)