Created
August 29, 2014 20:58
-
-
Save iamedu/43b11fe6d4e6482572b3 to your computer and use it in GitHub Desktop.
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
# cesar/base | |
FROM ubuntu | |
MAINTAINER Juan Chito <juan@chito.com> | |
# Add apt repository needed | |
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty main universe' > /etc/apt/sources.list | |
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty-security main universe' >> /etc/apt/sources.list | |
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty-updates main universe' >> /etc/apt/sources.list | |
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' >> /etc/apt/sources.list | |
RUN echo 'deb-src http://archive.ubuntu.com/ubuntu trusty main universe' >> /etc/apt/sources.list | |
RUN echo 'deb-src http://archive.ubuntu.com/ubuntu trusty-security main universe' >> /etc/apt/sources.list | |
RUN echo 'deb-src http://archive.ubuntu.com/ubuntu trusty-updates main universe' >> /etc/apt/sources.list | |
RUN echo 'deb-src http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' >> /etc/apt/sources.list | |
# Common | |
ENV HOME /home | |
RUN mkdir -p $HOME | |
RUN apt-get update && apt-get install -y python-software-properties git curl wget | |
#cesar/phpenv | |
FROM cesar/base | |
MANTAINER blah blah@blah.com | |
## Install packages to compile php | |
RUN apt-get -y build-dep php5-cli | |
RUN apt-get -y install libmcrypt-dev libreadline-dev | |
## Install RBENV | |
RUN git clone https://github.com/CHH/phpenv.git /tmp/phpenv | |
RUN /tmp/phpenv/bin/phpenv-install.sh | |
ENV PATH $HOME/.phpenv/bin:$HOME/.phpenv/shims:$PATH | |
RUN echo 'eval "$(phpenv init -)"' >> /etc/profile.d/phpenv.sh | |
RUN echo 'eval "$(phpenv init -)"' >> $HOME/.bashrc | |
## PHPBuild | |
RUN git clone git://github.com/CHH/php-build.git $HOME/.phpenv/plugins/php-build | |
# Install composer | |
ONBUILD RUN bash -c "wget http://getcomposer.org/composer.phar && chmod +x composer.phar && mv composer.phar /usr/local/bin/composer" | |
# Install PHPUnit | |
ONBUILD RUN bash -c "wget https://phar.phpunit.de/phpunit.phar && chmod +x phpunit.phar && mv phpunit.phar /usr/local/bin/phpunit" | |
#cesar/php | |
FROM cesar/phpenv | |
MAINTAINER El fresar <cesar@papalord.me> | |
RUN phpenv install 5.3.28 && phpenv global 5.3.28 && phpenv rehash | |
RUN git clone https://github.com/crocos/pecl-build.git | |
RUN pecl-build/bin/pecl-build memcache | |
RUN pecl-build/bin/pecl-build mongo | |
RUN pecl-build/bin/pecl-build PDO_pgsql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment