Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-19925

Docker build fails because Chef 15 cannot execute without accepting license

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Docker-Nexus
    • Labels:
      None

      Description

      The Dockerfiles are using the newest version of Chef. As of version 15 (which was released earlier today), Chef Infra Client cannot execute without accepting the license, which causes docker build to fail.

      Updating / installing...
      chef-15.0.293-1.el7                   ########################################
      Thank you for installing Chef Infra Client! For help getting started visit https://learn.chef.io
      [2019-05-14T12:09:07+00:00] WARN: No config file found or specified on command line. Using command line options instead.
      [2019-05-14T12:09:07+00:00] WARN: No cookbooks directory found at or above current directory.  Assuming /var/chef.
      Chef Infra Client cannot execute without accepting the license
      The command '/bin/sh -c curl -L https://www.getchef.com/chef/install.sh | bash     && /opt/chef/embedded/bin/erb /var/chef/solo.json.erb > /var/chef/solo.json     && chef-solo        --recipe-url ${NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL}        --json-attributes /var/chef/solo.json     && rpm -qa *chef* | xargs rpm -e     && rpm --rebuilddb     && rm -rf /etc/chef     && rm -rf /opt/chefdk     && rm -rf /var/cache/yum     && rm -rf /var/chef' returned a non-zero code: 172
      

      Possible solutions are:

       

      Chef Changelog:

      https://github.com/chef/chef/blob/master/CHANGELOG.md

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              varuns Varun Sivapalan
              Last Updated By:
              Matthew Piggott Matthew Piggott
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title