diff mbox series

[yocto-autobuilder2,1/5] docker: Add note about using a custom buildbot branch

Message ID 20250707-contrib-mathieu-popup_title-v1-1-d683ba953b96@bootlin.com
State New
Headers show
Series yocto_console_view: Fix build bullets title | expand

Commit Message

Mathieu Dubois-Briand July 7, 2025, 2:05 p.m. UTC
Adding an example of using a custom buildbot git and branch and add all
needed dependencies.

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
---
 docker/Dockerfile | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/docker/Dockerfile b/docker/Dockerfile
index fc6e6635a873..d46e7f403bb8 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -22,6 +22,7 @@  RUN apt update && \
         iproute2 \
         iputils-ping \
         libacl1 \
+        libcairo2 \
         liblz4-tool \
         locales \
         npm \
@@ -39,6 +40,13 @@  RUN apt update && \
         xz-utils \
         zstd
 
+RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
+ENV LANG en_US.UTF-8
+ENV LANGUAGE en_US:en
+ENV LC_ALL en_US.UTF-8
+
+RUN npm install -g yarn
+
 RUN pip3 install --break-system-packages \
         buildbot==4.2.1 \
         buildbot-www==4.2.1 \
@@ -49,12 +57,18 @@  RUN pip3 install --break-system-packages \
         buildbot_pkg==4.2.1 \
         websockets
 
-RUN npm install -g yarn
 
-RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
-ENV LANG en_US.UTF-8
-ENV LANGUAGE en_US:en
-ENV LC_ALL en_US.UTF-8
+# Uncomment and update following code to use a custom buildbot branch
+# RUN pip3 install --break-system-packages \
+#         git+https://github.com/mbriand/buildbot.git@mathieu/workers_limit#subdirectory=master \
+#         git+https://github.com/mbriand/buildbot.git@mathieu/workers_limit#subdirectory=worker \
+#         git+https://github.com/mbriand/buildbot.git@mathieu/workers_limit#subdirectory=pkg \
+#         websockets \
+#     && \
+#     git clone https://github.com/mbriand/buildbot.git -b mathieu/workers_limit && \
+#     cd buildbot/ && \
+#     make frontend_deps && \
+#     pip3 install --break-system-packages pkg www/base www/console_view www/grid_view www/waterfall_view www/wsgi_dashboards www/badges
 
 RUN ssh-keyscan push.yoctoproject.org push.openembedded.org >> /etc/ssh/ssh_known_hosts