[PATCH 3/7] ci: container: don't leave labgrid checkout in /tmp

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Mar 26 05:36:15 PDT 2025


The /tmp directory survives into the built container.
As pip can install directly from a remote git repository, let's use that
instead.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 test/Containerfile | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/test/Containerfile b/test/Containerfile
index 246f50d5b648..c4b2ba0ea583 100644
--- a/test/Containerfile
+++ b/test/Containerfile
@@ -77,11 +77,9 @@ RUN useradd -m -U barebox
 RUN echo barebox ALL=NOPASSWD: ALL > /etc/sudoers.d/barebox
 
 # install labgrid
-RUN cd /tmp && \
-    git clone --depth 1 -b v24.0 https://github.com/labgrid-project/labgrid && \
-    cd labgrid && \
-    pip3 install --break-system-packages . && \
-    ln -s $(which pytest) /usr/local/bin/labgrid-pytest;
+RUN pip3 install -q --no-cache-dir --break-system-packages \
+    git+https://github.com/labgrid-project/labgrid.git@v24.0 && \
+    ln -s $(which pytest) /usr/local/bin/labgrid-pytest
 
 ENV CROSS_COMPILE_arm=/opt/gcc-${GCC_VERSION}-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-
 ENV CROSS_COMPILE_arm64=/opt/gcc-${GCC_VERSION}-nolibc/aarch64-linux/bin/aarch64-linux-
-- 
2.39.5




More information about the barebox mailing list