<?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>14482</bug_id>
          
          <creation_ts>2021-07-15 09:32:26 +0000</creation_ts>
          <short_desc>Document how to set up the Yocto Project for production work</short_desc>
          <delta_ts>2021-07-30 15:45:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>General Docs</product>
          <component>docs-general</component>
          <version>3.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</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="Michael Opdenacker">michael.opdenacker</reporter>
          <assigned_to name="Michael Opdenacker">michael.opdenacker</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>michael.opdenacker</cc>
    
    <cc>pokylinux</cc>
    
    <cc>randy.macleod</cc>
          
          
          <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>90921</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-15 09:32:26 +0000</bug_when>
    <thetext>This is an attempt to help address bug #6437 (https://bugzilla.yoctoproject.org/show_bug.cgi?id=6437), starting from a clean state, as it becomes unmanageable, carrying too much history, making it difficult to grasp.

I&apos;m just keeping the information that is still useful, that is a comment from Robert Berger, summarized and expanded by this mind mapping attachement: https://bugzilla.yoctoproject.org/attachment.cgi?id=4793

A developer workflow for production should be mentioned:

*) SDK for developer/bitbake for production build and Yocto/OE person
*) devtool for developer/devtool for Yocto/OE person

SW update solutions[1] should be mentioned for production, since people are reinventing all the time what&apos;s already there.

The following can be used
*) for &quot;hardening&quot; the production image
*) to be able to see what meta-layers/branch/commit-id were used to build the image and whether something was modified without being checked in
*) what packages are in the rootfs (without a package manager)

- cve-check.bbclass
- buildhistory.bbclass
- image-buildinfo.bbclass
- static code checks: https://github.com/priv-kweihmann/meta-sca
- I use this[2] to write /etc/image-manifest (all packages) into my rootfs

you can see here[3] how the output of image-buildinfo.bbclass and image-manifestinfo.bbclass looks like.

Something like the oss-review toolkit[4] could be used to help with license compliance. I am not sure yet whether this should be outside of the YP or integrated with it. 

[1] https://wiki.yoctoproject.org/wiki/System_Update

[2] https://gitlab.com/meta-layers/meta-resy/-/blob/dunfell/classes/image-manifestinfo.bbclass

[3] https://hub.docker.com/r/yoctotrainer/app-container-tensorflow-oci

[4] https://github.com/tsteenbe/ort</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90922</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-15 09:33:24 +0000</bug_when>
    <thetext>Some additional inputs from Randy MacLeod:

- local source mirrors
- strategies for handling the git cloned repos 
    (use local branches and rebase vs bbappend )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90923</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-15 09:36:07 +0000</bug_when>
    <thetext>Setting the target milestone to &quot;Future&quot;. This enhancement is too broad to be quickly addressed anyway. This will take time, but it&apos;s worth keeping the good ideas in mind when improving the documentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90925</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-15 09:39:45 +0000</bug_when>
    <thetext>*** Bug 6437 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91063</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2021-07-29 19:55:31 +0000</bug_when>
    <thetext>Is this here the place to collect ideas?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91067</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-30 10:17:55 +0000</bug_when>
    <thetext>Actually, we discussed this during the bug triage meeting and it turns out that these too wide bugs last forever and can never be fixed.

I slept on it and realize using the wiki for collecting such ideas is probably the best idea.

Let me propose something.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91072</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-30 15:45:03 +0000</bug_when>
    <thetext>Moved ideas to https://wiki.yoctoproject.org/wiki/Documentation_Production_Workflow

Please contribute to this wiki page from now on
(and send doc contribution patches too!)

Closing this bug</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>