forked from yiisoft/yii2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added git files to dockerignore - updated local testing - updated build on branches
- Loading branch information
Showing
12 changed files
with
146 additions
and
129 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.git | ||
vendor | ||
docs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,4 @@ phpunit.phar | |
|
||
# NPM packages | ||
/node_modules | ||
.env |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,8 @@ | ||
FROM codemix/yii2-base:2.0-apache | ||
|
||
# Install system packages for PHP extensions recommended for Yii 2.0 Framework | ||
RUN apt-key update && \ | ||
apt-get update && \ | ||
apt-get -y install \ | ||
g++ \ | ||
git \ | ||
libicu-dev \ | ||
libmcrypt-dev \ | ||
libfreetype6-dev \ | ||
libjpeg-dev \ | ||
libjpeg62-turbo-dev \ | ||
libmcrypt-dev \ | ||
libpng12-dev \ | ||
libpq5 \ | ||
libpq-dev \ | ||
zlib1g-dev \ | ||
mysql-client \ | ||
openssh-client \ | ||
libxml2-dev \ | ||
--no-install-recommends && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# Install PHP extensions required for Yii 2.0 Framework | ||
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/ && \ | ||
docker-php-ext-configure bcmath && \ | ||
docker-php-ext-install \ | ||
gd \ | ||
intl \ | ||
pdo_mysql \ | ||
pdo_pgsql \ | ||
mbstring \ | ||
mcrypt \ | ||
zip \ | ||
bcmath \ | ||
soap | ||
|
||
FROM dmstr/php-yii2:7.0-fpm-1.9-beta2-alpine-nginx | ||
|
||
# Project source-code | ||
WORKDIR /project | ||
ADD composer.* /project/ | ||
RUN /usr/local/bin/composer install --prefer-dist | ||
ADD ./ /project | ||
ENV PATH /project/vendor/bin:${PATH} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# docker-compose test environment | ||
|
||
# Choose a flavour | ||
#COMPOSE_FILE=docker-compose.yml:docker-compose.caching.yml | ||
#COMPOSE_FILE=docker-compose.yml:docker-compose.mysql.yml | ||
#COMPOSE_FILE=docker-compose.yml:docker-compose.postgres.yml | ||
|
||
# Choose a version | ||
DOCKER_MYSQL_IMAGE=percona:5.7 | ||
DOCKER_POSTGRES_IMAGE=postgres |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '2' | ||
services: | ||
|
||
php: | ||
depends_on: | ||
- redis | ||
- memcached | ||
|
||
redis: | ||
image: redis | ||
|
||
memcached: | ||
image: memcached |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: '2' | ||
services: | ||
|
||
php: | ||
depends_on: | ||
- mysql | ||
|
||
mysql: | ||
image: ${DOCKER_MYSQL_IMAGE} | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=secret | ||
- MYSQL_DATABASE=yiitest | ||
- MYSQL_USER=travis | ||
- MYSQL_PASSWORD=travis | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '2' | ||
|
||
services: | ||
|
||
php: | ||
depends_on: | ||
- postgres | ||
|
||
postgres: | ||
image: ${DOCKER_POSTGRES_IMAGE} | ||
environment: | ||
- POSTGRES_DB=yiitest | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=postgres |
Oops, something went wrong.