Skip to content

Instantly share code, notes, and snippets.

@alexanderkiel
Created March 14, 2014 16:40
Show Gist options
  • Save alexanderkiel/9551490 to your computer and use it in GitHub Desktop.
Save alexanderkiel/9551490 to your computer and use it in GitHub Desktop.
Deis: Configure a Chef Server

I try to follow the steps in Configure a Chef Server. As I had problems with my Ruby environment I used Docker to build a container.

The Dockerfile builds a container in which berks install works. You need your client.pem and knife.rb to be able to build the container.

FROM ubuntu:13.10
RUN locale-gen --no-purge en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN apt-get update
RUN apt-get -yq install ruby2.0 ruby2.0-dev git build-essential
RUN gem install bundler berkshelf
ADD client.pem /
ADD knife.rb /.chef/
RUN git clone https://github.com/opdemand/deis.git
WORKDIR /deis
RUN git checkout v0.5.1
RUN bundle install
RUN berks install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment