diff options
author | Tim Smith <tsmith@chef.io> | 2019-08-22 12:26:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-22 12:26:15 -0400 |
commit | d02c9a4406b296d9c9ce016b4a99b00a8c4f019a (patch) | |
tree | dfd7f7a8b6baac04912f6f9bd68caf427ebac2ad | |
parent | 39cf0beb9ccc0fa0f60fa9d52b3c0a2bccc6c0f1 (diff) | |
parent | 9032969e8327efc49fcf7d5af32fd6829c49b5e1 (diff) | |
download | chef-d02c9a4406b296d9c9ce016b4a99b00a8c4f019a.tar.gz |
Merge pull request #8839 from chef/tduffield/fix-dockerfile
Fix the build arguments in the Dockerfile
-rw-r--r-- | Dockerfile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile index cd3fdbce8e..437511e9cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,11 +15,17 @@ # applied so 15.0.260 would be tagged as "latest", "15" and "15.0", as well as "15.0.260". FROM busybox -MAINTAINER Chef Software, Inc. <docker@chef.io> +LABEL maintainer="Chef Software, Inc. <docker@chef.io>" +ARG EXPEDITOR_CHANNEL ARG CHANNEL=stable +ARG EXPEDITOR_VERSION ARG VERSION=15.2.20 +# Allow the build arg below to be controlled by either build arguments +ENV VERSION ${EXPEDITOR_VERSION:-${VERSION}} +ENV CHANNEL ${EXPEDITOR_CHANNEL:-${CHANNEL}} + RUN wget "http://packages.chef.io/files/${CHANNEL}/chef/${VERSION}/el/6/chef-${VERSION}-1.el6.x86_64.rpm" -O /tmp/chef-client.rpm && \ rpm2cpio /tmp/chef-client.rpm | cpio -idmv && \ rm -rf /tmp/chef-client.rpm |