Skip to content

Instantly share code, notes, and snippets.

@svnlto
Created April 9, 2015 07:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svnlto/483ce0e7fa2b2a11031a to your computer and use it in GitHub Desktop.
Save svnlto/483ce0e7fa2b2a11031a to your computer and use it in GitHub Desktop.
Install Chef and Berkshelf in a Docker Container
FROM ubuntu:latest
MAINTAINER Sven Lito "me@svenlito.com"
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