Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Phpbrew #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions workspace/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ RUN echo "Configure apache2" && \
RUN echo "Configure php" && \
/etc/init.d/mysql start && \
/etc/init.d/postgresql start && \
apt-get install -y php5 php5-cli php5-fpm php5-pgsql php5-mysql phpmyadmin phppgadmin && \
apt-get install -y php5 php5-cli php5-fpm php5-pgsql php5-mysql phpmyadmin phppgadmin libmcrypt-dev && \
php5enmod c9 && \
chmod 777 /var/lib/phpmyadmin/tmp && \
cd /etc/php5/mods-available && ls *.ini | sed 's/\.ini$//' | xargs php5enmod && \
curl -sS https://getcomposer.org/installer | php && \
mv composer.phar /usr/bin/composer
cd /etc/php5/mods-available && ls *.ini | sed 's/\.ini$//' | xargs php5enmod
RUN curl -Ss -o /usr/local/bin/phpbrew https://github.com/phpbrew/phpbrew/raw/master/phpbrew && \
sudo -u ubuntu bash -l -c "phpbrew init && phpbrew app get composer"


# re-enable service startup. This line must come after all apt-get installs
Expand Down
1 change: 1 addition & 0 deletions ws-php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ RUN apt-get install -y php5 php5-cli php5-fpm \
&& pecl install xdebug \
&& php5enmod xdebug \
&& cd /etc/php5/mods-available && ls *.ini | sed 's/\.ini$//' | xargs php5enmod
RUN sudo -u ubuntu bash -l -c "phpbrew install 7.0"
RUN chown -R ubuntu: /home/ubuntu/lib