satlab: Add USB Image downloader to Dockerfile
Add USB Image downloader to dockerfile and install it
BUG:b:364955403
TEST= docker build . -t ${TAG} -f Dockerfile
docker run -t -d ${TAG}
docker exec -it ${ID} image_downloader --help
Change-Id: I926174114a9e304913cfedce9d9fa7d8737ff518
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/xolabs-common-core/+/6042692
Reviewed-by: Keith Haddow <haddowk@chromium.org>
Commit-Queue: Michal Matyjek <mmatyjek@google.com>
Auto-Submit: Brian Nemec <bnemec@google.com>
Tested-by: Brian Nemec <bnemec@google.com>
Reviewed-by: Michal Matyjek <mmatyjek@google.com>
diff --git a/src/dockerfiles/servod/Dockerfile b/src/dockerfiles/servod/Dockerfile
index 69d67ac..fc6f9af 100644
--- a/src/dockerfiles/servod/Dockerfile
+++ b/src/dockerfiles/servod/Dockerfile
@@ -17,6 +17,9 @@
WORKDIR /labstation/usb_hubs
RUN python3 setup.py bdist_wheel
+WORKDIR /labstation/image_downloader
+RUN python3 setup.py bdist_wheel
+
#####################################################################
FROM python:3.11-slim-bookworm as dolostools
@@ -63,6 +66,10 @@
# Labstation tools is where the power cycle code for pluggable and cambronix
# hubs is checked in.
COPY --from=labstationtools /labstation/usb_hubs/dist .
+
+# USB image downloader
+COPY --from=labstationtools /labstation/image_downloader/dist .
+
# Dolos command tools necessary to update, reset, and audit Dolos.
COPY --from=dolostools /dolos/tools/doloscmd/dist .