-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from cambridge-healthcare/combining-commands
Combining commands
- Loading branch information
Showing
9 changed files
with
85 additions
and
56 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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
FROM howareyou/precise | ||
MAINTAINER How are you? "docker@howareyou.com" | ||
FROM howareyou/ubuntu:12.04 | ||
# MAINTAINER How are you? "docker@howareyou.com" | ||
|
||
ENV REDIS_VERSION 2.6.16 | ||
|
||
RUN apt-get install build-essential | ||
RUN wget -O - http://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz | tar -C /usr/local/src -zxv | ||
RUN cd /usr/local/src/redis-$REDIS_VERSION && make && make install | ||
RUN sysctl vm.overcommit_memory=1 | ||
RUN \ | ||
export REDIS_VERSION=2.6.16 ;\ | ||
apt-get install build-essential ;\ | ||
wget -O - http://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz | tar -C /usr/local/src -zxv ;\ | ||
cd /usr/local/src/redis-$REDIS_VERSION && make && make install ;\ | ||
sysctl vm.overcommit_memory=1 ;\ | ||
# END RUN | ||
|
||
CMD redis-server | ||
EXPOSE 6379 |
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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
FROM howareyou/precise | ||
MAINTAINER How are you? "docker@howareyou.com" | ||
FROM howareyou/ubuntu:12.04 | ||
# 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=20131024" >> /.profile ;\ | ||
. /.profile ;\ | ||
apt-get install build-essential libffi-dev libreadline-dev libyaml-dev zlib1g-dev ;\ | ||
apt-get install libsqlite3-dev libmysqlclient-dev libmemcached-dev libmagickwand-dev ;\ | ||
apt-get install libev-dev libevent-dev ;\ | ||
apt-get install libssl-dev libcurl4-openssl-dev curl openssl ca-certificates ;\ | ||
apt-get install libxml2 libxml2-dev libxslt1-dev ;\ | ||
ruby_build_url="https://github.com/sstephenson/ruby-build/archive/v$RUBY_BUILD_VERSION.tar.gz" ;\ | ||
wget -O - $ruby_build_url | tar -C /usr/local/src -zxv ;\ | ||
cd /usr/local/src/ruby-build-$RUBY_BUILD_VERSION && sh install.sh | ||
# END RUN |
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
FROM howareyou/ruby-build_20130806 | ||
MAINTAINER How are you? "docker@howareyou.com" | ||
FROM howareyou/ruby-build:20131024 | ||
# 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 \ | ||
export RUBY_VERSION=1.9.3-p448 ;\ | ||
echo "export RUBY_VERSION=$RUBY_VERSION" >> /.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 ;\ | ||
# END RUN |
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
FROM howareyou/ruby-build_20130806 | ||
MAINTAINER How are you? "docker@howareyou.com" | ||
FROM howareyou/ruby-build:20131024 | ||
# 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 \ | ||
export RUBY_VERSION=2.0.0-p247 ;\ | ||
echo "export RUBY_VERSION=$RUBY_VERSION" >> /.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 ;\ | ||
# END RUN |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM ubuntu:12.04 | ||
# MAINTAINER How are you? "docker@howareyou.com" | ||
|
||
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 ;\ | ||
# END RUN |
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM ubuntu:12.04 | ||
MAINTAINER How are you? "docker@howareyou.com" | ||
|
||
RUN apt-get install -y python-setuptools | ||
RUN easy_install supervisor | ||
ADD ./supervisord.conf /etc/supervisord.conf | ||
|
||
CMD /usr/local/bin/supervisord -c /etc/supervisord.conf |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[supervisord] | ||
logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log) | ||
logfile_maxbytes=1MB ; (max main logfile bytes b4 rotation;default 50MB) | ||
logfile_backups=10 ; (num of main logfile rotation backups;default 10) | ||
loglevel=info ; (log level;default info; others: debug,warn,trace) | ||
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid) | ||
nodaemon=true ; (start in foreground if true;default false) | ||
minfds=1024 ; (min. avail startup file descriptors;default 1024) | ||
minprocs=200 ; (min. avail process descriptors;default 200) |