diff options
author | Tom Duffield <tom@chef.io> | 2016-11-17 14:14:36 -0600 |
---|---|---|
committer | Tom Duffield <tom@chef.io> | 2016-11-17 14:14:36 -0600 |
commit | c4db90c5e5692f7d71395f36cc8288d0e91fbbf4 (patch) | |
tree | 02fded5143bf5d7bed91718eb85615b104c36870 /Dockerfile | |
parent | 9ebb726bdac064c4ea58f0ef3f32ff6f21367a62 (diff) | |
download | chef-c4db90c5e5692f7d71395f36cc8288d0e91fbbf4.tar.gz |
Use centos:5 for Dockerfile
Install on centos:5 (the oldest glibc) and expose /opt/chef so that it
can be mounted into other containers.
Signed-off-by: Tom Duffield <tom@chef.io>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile index 0ea158c32a..f2f0ce236c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,13 @@ -FROM ubuntu:16.04 +FROM centos:5 MAINTAINER Chef Software, Inc. <docker@chef.io> ARG CHANNEL=stable -ARG VERSION=latest -ENV DEBIAN_FRONTEND=noninteractive +ARG VERSION=12.16.42 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/* +RUN yum install -y wget && \ + wget --content-disposition --no-check-certificate "https://packages.chef.io/files/${CHANNEL}/chef/${VERSION}/el/5/chef-${VERSION}-1.el5.x86_64.rpm" -O /tmp/chef-client.rpm && \ + rpm -i /tmp/chef-client.rpm && \ + rm -rf /tmp/chef-client.rpm + +VOLUME [ "/opt/chef" ] |