Skip to content

Commit

Permalink
Merge pull request #47 from CachetHQ/php7
Browse files Browse the repository at this point in the history
Switch to php7.0
  • Loading branch information
djdefi committed Mar 4, 2016
2 parents 6a4c788 + 45372bc commit 01a4bda
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:jessie
FROM debian:sid

MAINTAINER Alt Three <support@alt-three.com>

Expand All @@ -9,20 +9,21 @@ RUN DEBIAN_FRONTEND=noninteractive \
apt-get clean && \
apt-get -q -y update && \
apt-get -q -y install \
ca-certificates php5-fpm=5.* php5-curl php5-readline php5-mcrypt php5-mysql php5-apcu php5-cli \
wget sqlite git libsqlite3-dev curl supervisor cron php5-pgsql php5-sqlite php5-gd && \
ca-certificates php7.0-cli php7.0-fpm php7.0-gd php7.0-mbstring php7.0-mysql php7.0-pgsql php7.0-sqlite \
wget sqlite git libsqlite3-dev curl supervisor cron unzip && \
apt-get clean && apt-get autoremove -q && \
rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man /tmp/*

COPY docker/supervisord.conf /etc/supervisor/supervisord.conf
COPY docker/php-fpm-pool.conf /etc/php5/fpm/pool.d/www.conf
COPY docker/php-fpm-pool.conf /etc/php/7.0/fpm/pool.d/www.conf

RUN sed -i -e "s/;daemonize\s*=\s*yes/daemonize = no/g" /etc/php/7.0/fpm/php-fpm.conf && \
mkdir /run/php

WORKDIR /var/www/html/

# Copy the various nginx and supervisor conf (to handle both fpm and nginx)
RUN sed -i -e "s/;daemonize\s*=\s*yes/daemonize = no/g" /etc/php5/fpm/php-fpm.conf && \
chown -R www-data /var/www/html && \
curl -sS https://getcomposer.org/installer | php
# Install composer
RUN curl -sS https://getcomposer.org/installer | php

RUN wget https://github.com/cachethq/Cachet/archive/master.tar.gz && \
tar xzvf master.tar.gz --strip-components=1 && \
Expand Down
4 changes: 2 additions & 2 deletions docker/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket

[program:php5-fpm]
command=/usr/sbin/php5-fpm -c /etc/php5/fpm
[program:php-fpm7.0]
command=/usr/sbin/php-fpm7.0 -c /etc/php/7.0/fpm

[program:cron]
command=/usr/sbin/cron -f

0 comments on commit 01a4bda

Please sign in to comment.