Created
April 9, 2015 07:18
-
-
Save svnlto/483ce0e7fa2b2a11031a to your computer and use it in GitHub Desktop.
Install Chef and Berkshelf in a Docker Container
This file contains hidden or 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
FROM ubuntu:latest | |
MAINTAINER Sven Lito "[email protected]" | |
RUN \ | |
apt-get update && apt-get install -y \ | |
curl \ | |
build-essential \ | |
libxml2-dev \ | |
libxslt-dev \ | |
libqtcore4 \ | |
libqtgui4 \ | |
libqt4-dev \ | |
libboost-dev \ | |
wget \ | |
git | |
RUN \ | |
wget "http://uk.archive.ubuntu.com/ubuntu/pool/universe/g/gecode/libgecode30_3.7.1-3_amd64.deb" && \ | |
wget "http://uk.archive.ubuntu.com/ubuntu/pool/universe/g/gecode/libgecode-dev_3.7.1-3_amd64.deb" && \ | |
wget "http://uk.archive.ubuntu.com/ubuntu/pool/universe/g/gecode/libgecodegist30_3.7.1-3_amd64.deb" && \ | |
wget "http://uk.archive.ubuntu.com/ubuntu/pool/universe/g/gecode/libgecodeflatzinc30_3.7.1-3_amd64.deb" && \ | |
dpkg -i libgecode30_3.7.1-3_amd64.deb libgecodegist30_3.7.1-3_amd64.deb libgecodeflatzinc30_3.7.1-3_amd64.deb libgecode-dev_3.7.1-3_amd64.deb | |
# Install chef | |
RUN \ | |
curl -L https://www.opscode.com/chef/install.sh | bash \ | |
&& echo "gem: --no-ri --no-rdoc" > ~/.gemrc | |
# Install berkshelf | |
RUN \ | |
USE_SYSTEM_GECODE=1 /opt/chef/embedded/bin/gem install berkshelf | |
RUN \ | |
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment