summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorNathaniel Kierpiec <nkierpiec@chef.io>2021-07-29 15:21:19 -0400
committerNathaniel Kierpiec <nkierpiec@chef.io>2021-07-29 15:21:19 -0400
commit1e43611779dbfa0b3d5666d34eafb3bd42a54307 (patch)
treeabc10cebf025f7f974d64733d1bb78e7b60e8882 /Dockerfile
parentbdc427e43dc837de75b25eda62a4ed7fa5a7517a (diff)
downloadchef-1e43611779dbfa0b3d5666d34eafb3bd42a54307.tar.gz
update dockerfile to use correct package for os/arch
Signed-off-by: Nathaniel Kierpiec <nkierpiec@chef.io>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 372ecfcd4e..f6b6b28b21 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,8 +19,10 @@ LABEL maintainer="Chef Software, Inc. <docker@chef.io>"
ARG CHANNEL=stable
ARG VERSION=17.3.48
+ARG ARCH=x86_64
+ARG PKG_VERSION=6
-RUN wget "http://packages.chef.io/files/${CHANNEL}/chef/${VERSION}/el/6/chef-${VERSION}-1.el6.x86_64.rpm" -O /tmp/chef-client.rpm && \
+RUN wget "http://packages.chef.io/files/${CHANNEL}/chef/${VERSION}/el/${PKG_VERSION}/chef-${VERSION}-1.el${PKG_VERSION}.${ARCH}.rpm" -O /tmp/chef-client.rpm && \
rpm2cpio /tmp/chef-client.rpm | cpio -idmv && \
rm -rf /tmp/chef-client.rpm