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:
- Accept the Chef License (https://docs.chef.io/chef_license_accept.html)
or - Set a fixed version (14.12.9) for Chef
Chef Changelog:
Attachments
Issue Links
- relates
-
NEXUS-28633 Non-Primary Dockerfiles Require Accepting Chef License
-
- New
-