Skip to content

Commit

Permalink
Model and implement base proof of concept. Add docker to be able to w…
Browse files Browse the repository at this point in the history
…ork on project.
  • Loading branch information
l3l0 committed Jul 11, 2015
1 parent cd9da16 commit 68d04c0
Show file tree
Hide file tree
Showing 22 changed files with 2,136 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM php:5.6-apache

RUN apt-get update \
&& apt-get install -y git curl bzip2 vim libssl-dev zlib1g-dev libxrender1 libicu-dev g++ libjpeg-dev libjpeg62 libfontconfig-dev \
&& pecl install xdebug \
&& echo zend_extension=xdebug.so > /usr/local/etc/php/conf.d/xdebug.ini \
&& pecl install apcu-beta \
&& echo extension=apcu.so > /usr/local/etc/php/conf.d/apcu.ini \
&& docker-php-ext-install zip mbstring intl pdo_mysql \
&& apt-get -y install mysql-client php5-gd

ADD docker/vhost.conf /etc/apache2/sites-enabled/000-default.conf
ADD docker/php.ini /usr/local/etc/php/php.ini

RUN a2enmod rewrite

RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/bin/composer

EXPOSE 9000

WORKDIR /var/www/city-bike
4 changes: 4 additions & 0 deletions behat.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
default:
extensions:
RMiller\BehatSpec\BehatExtension:
path: bin/phpspec
18 changes: 18 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"require": {
"php": ">=5.6"
},
"autoload": {
"psr-4": {
"": "src/"
}
},
"require-dev": {
"behat/behat": "~3.0",
"phpspec/phpspec": "~2.2",
"rmiller/behat-spec": "~0.2"
},
"config": {
"bin-dir": "bin"
}
}
Loading

0 comments on commit 68d04c0

Please sign in to comment.