<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13648</bug_id>
          
          <creation_ts>2019-11-22 21:05:41 +0000</creation_ts>
          <short_desc>Create autobuilder-controller container</short_desc>
          <delta_ts>2026-06-25 15:21:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>CROPS</product>
          <component>crops-default</component>
          <version>3.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>konrad.scherer</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tvgamblin</cc>
          
          <qa_contact name="Toaster default assignee">toaster</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85610</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2019-11-22 21:05:41 +0000</bug_when>
    <thetext>With YP LTS initiative, we may get into a time when the AutoBuilder itself can no longer support an older release (e.g. the automated testing infrastructure has changed, etc.).

It might also increase usage of the AutoBuilder if it was easier to setup/try.

This container would be a blend of the poky-container [1,2] and the buildbot-master [3,4] container. Although it might be possible to be even simpler and not need the poky-container bits...

Although it would be tempting to run Docker-in-Docker, this is ill advised [5] and instead the docker socket should be bind mounted:
&apos;docker run -v /var/run/docker.sock:/var/run/docker.sock ...&apos;

Similarly, the persistent build directories should be bind mounted docker volumes (local driver).

Specific to AB, we would need to point to yocto-autobuilder2 and yocto-autobuilder-helper git repos or local copies (with local configurations). 

[1] https://github.com/crops/poky-container
[2] https://hub.docker.com/r/crops/poky
[3] https://github.com/buildbot/buildbot/blob/master/master/Dockerfile
[4] https://hub.docker.com/r/buildbot/buildbot-master
[5] https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86648</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-03-03 02:54:40 +0000</bug_when>
    <thetext>Very raw command line (ignoring yocto-autobuilder-helper for now):

$ docker network create autobuilder
$ docker run -it -e BUILDBOT_CONFIG_URL=http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder2/snapshot/yocto-autobuilder2-master.tar.gz -e BUILDBOT_CONFIG_DIR=yoctoabb -p 8010:8010 -p 9989:9989 --network autobuilder --name autobuilder-controller buildbot/buildbot-master:v2.7.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87692</commentid>
    <comment_count>2</comment_count>
    <who name="Trevor Gamblin">tvgamblin</who>
    <bug_when>2020-07-05 10:45:07 +0000</bug_when>
    <thetext>I&apos;ll definitely help out with this - I had actually given myself the task of containerizing the autobuilder on our internal tracker last week! I think we will also need containers for the janitor, and also a hash equivalency server, correct? The latter should be pretty simple.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92952</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2022-04-07 16:48:03 +0000</bug_when>
    <thetext>Nice idea, but not something I have time to work on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96913</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:42 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106016</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-06-25 15:21:41 +0000</bug_when>
    <thetext>Ideas here are probably still valid for future design considerations. Moving to future.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>