Skip to contentSkip to conversation

docker: Add tools/buildman/requirements.txt to the cache

PATCH In review Tom Rini 1 participant 2 messages Jan 18, 2024 – Jan 25, 2024

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 docker: Add tools/buildman/requirements.txt to the cache

As we have had this file for a while now, we should include installing and populating our pip cache from here as well.

---
 tools/docker/Dockerfile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
tools/docker/Dockerfile +4 -2
index 0e2dd0a6a946..6122776bc64d 100644
@@ -240,12 +240,14 @@ USER uboot:uboot
 # COPY / ADD directives don't work as we need them to.
 RUN wget -O /tmp/pytest-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/test/py/requirements.txt
 RUN wget -O /tmp/sphinx-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/doc/sphinx/requirements.txt
+RUN wget -O /tmp/buildman-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/tools/buildman/requirements.txt
 RUN virtualenv -p /usr/bin/python3 /tmp/venv && \
 	. /tmp/venv/bin/activate && \
 	pip install -r /tmp/pytest-requirements.txt \
-		-r /tmp/sphinx-requirements.txt && \
+		-r /tmp/sphinx-requirements.txt \
+		-r /tmp/buildman-requirements.txt && \
 	deactivate && \
-	rm -rf /tmp/venv /tmp/pytest-requirements.txt /tmp/sphinx-requirements.txt
+	rm -rf /tmp/venv /tmp/*-requirements.txt
 
 # Create the buildman config file
 RUN /bin/echo -e "[toolchain]\nroot = /usr" > ~/.buildman
Signature · 1 line
2.34.1
author
#1 lore raw
Quoted 4 lines · Tom Rini

As we have had this file for a while now, we should include installing and populating our pip cache from here as well.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom