forked from rpush/rpush
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (22 loc) · 1.29 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# sudo docker run -i -t -v /home/vagrant/rpush:/mnt/rpush:ro rpush:latest bash -l
FROM phusion/baseimage:0.9.6
MAINTAINER Ian Leitch
ENV HOME /vagrant
CMD ["/sbin/my_init"]
RUN /usr/sbin/enable_insecure_key
# Rpush config follows.
RUN apt-get -y update
RUN sudo apt-get -y upgrade
RUN apt-get -y -q install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison pkg-config libpq5 libpq-dev build-essential git-core curl libcurl4-gnutls-dev python-software-properties libffi-dev libgdbm-dev mysql-server mysql-client libmysqlclient-dev postgresql gawk
RUN curl -L https://get.rvm.io | bash -s stable
RUN echo 'source /usr/local/rvm/scripts/rvm' >> /etc/bash.bashrc
RUN /bin/bash -l -c rvm requirements
ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN /bin/bash -l -c 'rvm install 2.0.0'
RUN /bin/bash -l -c 'rvm use 2.0.0 --default'
# RUN /bin/bash -l -c 'gem install --no-ri --no-rdoc bundler rails mysql2 rake rdoc minitest'
# Clean up APT.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir /etc/service/mysql
ADD mysql.sh /etc/service/mysql/run
RUN chmod 755 /etc/service/mysql/run