summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Duffield <tom@chef.io>2016-11-15 13:43:15 -0600
committerTom Duffield <tom@chef.io>2016-11-15 13:48:10 -0600
commit9ebb726bdac064c4ea58f0ef3f32ff6f21367a62 (patch)
tree56634d7dc7fcef3eebc8c9ffe70c7752e672e1ed
parentaa13c0639259219213cc938f27ec0365ddfe183f (diff)
downloadchef-9ebb726bdac064c4ea58f0ef3f32ff6f21367a62.tar.gz
Add Dockerfile to root
This Dockerfile will allow individuals, who wish to, to build Docker images containing the latest Chef Client. Specifically, it can be used inside testing frameworks like kitchen-dokken. This Dockerfile will be used by internal Chef release engineering to automatically post Docker images to the Docker Hub as part of our standard artifact promotion pipeline. Signed-off-by: Tom Duffield <tom@chef.io>
-rw-r--r--Dockerfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000000..0ea158c32a
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,14 @@
+FROM ubuntu:16.04
+MAINTAINER Chef Software, Inc. <docker@chef.io>
+
+ARG CHANNEL=stable
+ARG VERSION=latest
+ENV DEBIAN_FRONTEND=noninteractive
+ENV PATH=/opt/chef/bin:/opt/chef/embedded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+
+RUN apt-get update && \
+ apt-get install -y wget ssh && \
+ wget --content-disposition "https://omnitruck.chef.io/${CHANNEL}/chef/download?p=ubuntu&pv=16.04&m=x86_64&v=${VERSION}" -O /tmp/chef-client.deb && \
+ dpkg -i /tmp/chef-client.deb && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*