<?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>13649</bug_id>
          
          <creation_ts>2019-11-22 21:12:24 +0000</creation_ts>
          <short_desc>Create autobuilder-worker container</short_desc>
          <delta_ts>2026-06-25 15:22:10 +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>5.99</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>85611</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2019-11-22 21:12:24 +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-worker [3,4] container. The autobuilder-master container might be able to be simpler, but this worker container will need all the bits to build and run tests. Testing may benefit from running QEMU outside the container using libvirt or other means.

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). 

[1] https://github.com/crops/poky-container
[2] https://hub.docker.com/r/crops/poky
[3] https://github.com/buildbot/buildbot/blob/master/worker/Dockerfile.py3
[4] https://hub.docker.com/r/buildbot/buildbot-worker
[5] https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86649</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-03-03 02:58:42 +0000</bug_when>
    <thetext>Very raw command line experiment, ignoring yocto-autobuilder-helper for now. Assumes buildbot-controller is already running. See https://bugzilla.yoctoproject.org/show_bug.cgi?id=13648

On debian-10 host:

$ sudo apt install jq
$ docker inspect autobuilder-controller | jq .[0] | jq -r .NetworkSettings.Networks.autobuilder.IPAddress
172.19.0.2
$ docker run -it -e BUILDMASTER=172.19.0.2 -e BUILDMASTER_PORT=9989 -e WORKERNAME=ubuntu1804-ty-1 -e WORKERPASS=pass -e WORKER_ENVIRONMENT_BLACKLIST=WORKERPASS --network autobuilder --name ubuntu1804-ty-1 buildbot/buildbot-worker:v2.7.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92951</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2022-04-07 16:47:15 +0000</bug_when>
    <thetext>Nice idea, but not something I have time to work on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96823</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:24 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106017</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-06-25 15:22:10 +0000</bug_when>
    <thetext>Ideas here are probably still valid for future design considerations. Moving to future.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>