-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2657856
commit b375419
Showing
6 changed files
with
119 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM wordpressdevelop/php:7.4-fpm | ||
|
||
########################################################################## | ||
# | ||
# WARNING: This file was generated by update.php. Do not edit it directly. | ||
# | ||
# | ||
|
||
|
||
# install wp-cli dependences | ||
RUN set -ex; \ | ||
\ | ||
apt-get update; \ | ||
\ | ||
apt-get install -y --no-install-recommends \ | ||
less \ | ||
virtual-mysql-client \ | ||
; | ||
|
||
RUN set -ex; \ | ||
\ | ||
curl -L -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar; \ | ||
\ | ||
chmod +x /usr/local/bin/wp; \ | ||
\ | ||
wp --allow-root --version; | ||
|
||
ENTRYPOINT [ "/usr/local/bin/wp", "--allow-root" ] | ||
|
||
|
||
WORKDIR /var/www | ||
|
||
CMD [ "shell" ] |
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,31 @@ | ||
FROM php:7.4-rc-fpm | ||
|
||
########################################################################## | ||
# | ||
# WARNING: This file was generated by update.php. Do not edit it directly. | ||
# | ||
# | ||
|
||
# install the PHP extensions we need | ||
RUN set -ex; \ | ||
\ | ||
apt-get update; \ | ||
\ | ||
apt-get install -y --no-install-recommends \ | ||
libjpeg-dev \ | ||
libpng-dev \ | ||
libzip-dev \ | ||
; \ | ||
\ | ||
docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr; \ | ||
docker-php-ext-install gd opcache mysqli zip; \ | ||
\ | ||
pecl install xdebug-2.8.0beta1; | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
RUN chmod +x /entrypoint.sh | ||
|
||
ENTRYPOINT [ "/entrypoint.sh" ] | ||
|
||
CMD [ "php-fpm" ] |
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 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# If LOCAL_PHP_XDEBUG=true xdebug extension will be enabled | ||
if [ "$LOCAL_PHP_XDEBUG" = true ]; then | ||
docker-php-ext-enable xdebug | ||
rm -f /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini | ||
else | ||
docker-php-ext-enable opcache | ||
rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | ||
fi | ||
|
||
# Execute CMD | ||
exec "$@" |
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 @@ | ||
FROM wordpressdevelop/php:7.4-fpm | ||
|
||
########################################################################## | ||
# | ||
# WARNING: This file was generated by update.php. Do not edit it directly. | ||
# | ||
# | ||
|
||
RUN curl -sL https://phar.phpunit.de/phpunit-7.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit | ||
|
||
WORKDIR /wordpress-develop | ||
|
||
CMD /usr/local/bin/phpunit |
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