-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Enforce Chef Server 11 (instead of lastest Chef Server version)
- Reduced image size (From 1.319GB to 1.025GB)
- Loading branch information
Showing
2 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,14 @@ FROM ubuntu:14.04 | |
MAINTAINER Clement Buisson <[email protected]> | ||
#This is a fork of base/chef-server | ||
|
||
RUN apt-get update | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get install -yq wget curl | ||
RUN wget --content-disposition "http://www.opscode.com/chef/download-server?p=ubuntu&pv=12.04&m=x86_64&v=latest&prerelease=false&nightlies=false" | ||
RUN dpkg -i chef-server*.deb | ||
RUN apt-get update && \ | ||
apt-get install -yq --no-install-recommends wget curl && \ | ||
wget --no-check-certificate --content-disposition "http://www.opscode.com/chef/download-server?p=ubuntu&pv=14.04&m=x86_64&v=11&prerelease=false&nightlies=false" && \ | ||
dpkg -i chef-server*.deb && \ | ||
rm chef-server*.deb && \ | ||
apt-get remove -y wget && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN dpkg-divert --local --rename --add /sbin/initctl | ||
RUN ln -sf /bin/true /sbin/initctl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters