Skip to content

Commit

Permalink
Docker has a 42 AUFS layer limit, this limits each image to 1 layer
Browse files Browse the repository at this point in the history
@jpetazzo is this a step in the right direction? moby/moby#2028
  • Loading branch information
gerhard committed Sep 30, 2013
1 parent aa06b37 commit 6f615db
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 38 deletions.
11 changes: 2 additions & 9 deletions Dockerfile.precise
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
FROM ubuntu:12.04
MAINTAINER How are you? "docker@howareyou.com"
# MAINTAINER How are you? "docker@howareyou.com"

RUN echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90forceyes
RUN echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list
RUN apt-get update

RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl

RUN apt-get install wget
RUN echo "export HOME=/root" > /.profile; echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90forceyes; echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list; apt-get update; dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl; apt-get install wget
13 changes: 2 additions & 11 deletions Dockerfile.ruby-build
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
FROM howareyou/precise
MAINTAINER How are you? "docker@howareyou.com"
# MAINTAINER How are you? "docker@howareyou.com"

ENV RUBY_BUILD_VERSION 20130806

RUN apt-get install build-essential
RUN apt-get install libssl-dev
RUN apt-get install zlib1g-dev
RUN apt-get install libreadline-dev
RUN apt-get install ca-certificates

RUN wget -O - https://github.com/sstephenson/ruby-build/archive/v$RUBY_BUILD_VERSION.tar.gz | tar -C /usr/local/src -zxv
RUN cd /usr/local/src/ruby-build-$RUBY_BUILD_VERSION && sh install.sh
RUN echo "export RUBY_BUILD_VERSION=20130806" >> /.profile; . /.profile; apt-get install build-essential libssl-dev zlib1g-dev libreadline-dev ca-certificates; wget -O - https://github.com/sstephenson/ruby-build/archive/v$RUBY_BUILD_VERSION.tar.gz | tar -C /usr/local/src -zxv; cd /usr/local/src/ruby-build-$RUBY_BUILD_VERSION && sh install.sh
12 changes: 3 additions & 9 deletions Dockerfile.ruby.1.9
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
FROM howareyou/ruby-build_20130806
MAINTAINER How are you? "docker@howareyou.com"
FROM howareyou/ruby-build:20130806
# MAINTAINER How are you? "docker@howareyou.com"

ENV RUBY_VERSION 1.9.3-p448
ENV PATH /usr/local/lib/$RUBY_VERSION/bin:$PATH

RUN ruby-build -v $RUBY_VERSION /usr/local/lib/$RUBY_VERSION

RUN echo "gem: --no-rdoc --no-ri" > /root/.gemrc
RUN gem install bundler foreman pry
RUN echo "export RUBY_VERSION=1.9.3-p448" >> /.profile; echo "export PATH=/usr/local/lib/$RUBY_VERSION/bin:$PATH" >> /.profile; . /.profile; ruby-build -v $RUBY_VERSION /usr/local/lib/$RUBY_VERSION; echo "gem: --no-rdoc --no-ri" > /root/.gemrc; gem install bundler foreman pry
12 changes: 3 additions & 9 deletions Dockerfile.ruby.2.0
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
FROM howareyou/ruby-build_20130806
MAINTAINER How are you? "docker@howareyou.com"
FROM howareyou/ruby-build:20130806
# MAINTAINER How are you? "docker@howareyou.com"

ENV RUBY_VERSION 2.0.0-p247
ENV PATH /usr/local/lib/$RUBY_VERSION/bin:$PATH

RUN ruby-build -v $RUBY_VERSION /usr/local/lib/$RUBY_VERSION

RUN echo "gem: --no-rdoc --no-ri" > /root/.gemrc
RUN gem install bundler foreman pry
RUN echo "export RUBY_VERSION=2.0.0-p247" >> /.profile; echo "export PATH=/usr/local/lib/$RUBY_VERSION/bin:$PATH" >> /.profile; . /.profile; ruby-build -v $RUBY_VERSION /usr/local/lib/$RUBY_VERSION; echo "gem: --no-rdoc --no-ri" > /root/.gemrc; gem install bundler foreman pry

3 comments on commit 6f615db

@jpetazzo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was pinged so I will reply :-) but I think you already saw the multi-line format, which is of course much easier to read ;-)

@gerhard
Copy link
Contributor Author

@gerhard gerhard commented on 6f615db Oct 1, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jpetazzo
Copy link

@jpetazzo jpetazzo commented on 6f615db Oct 1, 2013 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.