Fixed an issue with the latest chef in centos7

This commit is contained in:
2022-01-23 21:10:19 +02:00
parent a42cdc11d0
commit 323e703562

View File

@@ -54,7 +54,8 @@ ARG NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL="https://github.com/sonatype/chef-nexu
ADD solo.json.erb /var/chef/solo.json.erb
# Install using chef-solo
RUN curl -L https://omnitruck.chef.io/install.sh | bash \
ARG CHEF_VERSION=16.17.18
RUN curl -L https://omnitruck.chef.io/install.sh | bash -s -- -v ${CHEF_VERSION} \
&& /opt/chef/embedded/bin/erb /var/chef/solo.json.erb > /var/chef/solo.json \
&& chef-solo \
--node_name nexus_repository_red_hat_docker_build \