-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CI test * remove dep from external docker images * update contributing guidelines * handle docker compose * additional space
- Loading branch information
1 parent
159dcae
commit 08e1f52
Showing
9 changed files
with
140 additions
and
17 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
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
docker-compose.override.yml | ||
.phpunit.result.cache | ||
auth.json | ||
build |
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
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,4 +1,4 @@ | ||
version: "3.1" | ||
version: "3.8" | ||
|
||
services: | ||
mongo: | ||
|
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,44 @@ | ||
ARG PHP_VERSION | ||
FROM php:${PHP_VERSION}-cli | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y \ | ||
libbz2-dev \ | ||
libcurl4-openssl-dev \ | ||
libedit-dev \ | ||
libfontconfig \ | ||
libgmp-dev \ | ||
libicu-dev \ | ||
libmcrypt-dev \ | ||
libssl-dev \ | ||
libtidy-dev \ | ||
libxml2-dev \ | ||
libxslt-dev \ | ||
libzip-dev \ | ||
locales \ | ||
openssl \ | ||
libonig-dev \ | ||
git \ | ||
unzip | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
COPY install-extensions.sh . | ||
RUN ./install-extensions.sh | ||
|
||
ARG MONGODB_EXTENSION_VERSION | ||
|
||
RUN pecl install mongodb-${MONGODB_EXTENSION_VERSION} \ | ||
&& docker-php-ext-enable mongodb | ||
|
||
ENV TEST_ENV=docker | ||
|
||
RUN useradd -m user-dev | ||
|
||
USER user-dev | ||
|
||
RUN mkdir -p /home/user-dev/project | ||
|
||
WORKDIR /home/user-dev/project |
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,21 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
# Is everything necessary? | ||
docker-php-ext-install curl | ||
docker-php-ext-install opcache | ||
docker-php-ext-install intl | ||
docker-php-ext-install tidy | ||
docker-php-ext-install bz2 | ||
docker-php-ext-install xml | ||
docker-php-ext-install mbstring | ||
docker-php-ext-install zip | ||
|
||
if echo "$PHP_VERSION" | grep -Eq '7\.\d*' | ||
then | ||
docker-php-ext-install json | ||
fi | ||
|
||
pecl install pcov && docker-php-ext-enable pcov |
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