-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Showing
21 changed files
with
349 additions
and
1 deletion.
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
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,25 @@ | ||
version: '3.8' | ||
|
||
services: | ||
php-5.6: &php | ||
build: | ||
args: | ||
DOCKER_USER_ID: 1000 # replace with your user id (most likely 1000) | ||
DOCKER_GROUP_ID: 1000 # replace with your group id (most likely 1000) | ||
user: 1000:1000 # replace with your user and group ids (most likely 1000:1000) | ||
extra_hosts: | ||
# Required for Docker Linux until natively supported. | ||
# See https://github.com/docker/for-linux/issues/264 | ||
host.docker.internal: 172.17.0.1 | ||
php-7.0: | ||
<<: *php | ||
php-7.1: | ||
<<: *php | ||
php-7.2: | ||
<<: *php | ||
php-7.3: | ||
<<: *php | ||
php-7.4: | ||
<<: *php | ||
php-8.0: | ||
<<: *php |
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,29 @@ | ||
version: '3.8' | ||
|
||
services: | ||
php-5.6: &php | ||
build: docker/php-5.6 | ||
working_dir: /app | ||
volumes: | ||
- .:/app | ||
environment: | ||
PHP_IDE_CONFIG: serverName=php-cs-fixer | ||
PHP_CS_FIXER_ALLOW_XDEBUG: 1 | ||
php-7.0: | ||
<<: *php | ||
build: docker/php-7.0 | ||
php-7.1: | ||
<<: *php | ||
build: docker/php-7.1 | ||
php-7.2: | ||
<<: *php | ||
build: docker/php-7.2 | ||
php-7.3: | ||
<<: *php | ||
build: docker/php-7.3 | ||
php-7.4: | ||
<<: *php | ||
build: docker/php-7.4 | ||
php-8.0: | ||
<<: *php | ||
build: docker/php-8.0 |
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,27 @@ | ||
FROM php:5.6-cli-alpine3.8 | ||
|
||
ARG DOCKER_USER_ID | ||
ARG DOCKER_GROUP_ID | ||
|
||
RUN if ! getent group "${DOCKER_GROUP_ID}" > /dev/null; \ | ||
then addgroup -S -g "${DOCKER_GROUP_ID}" devs; \ | ||
fi \ | ||
&& if ! getent passwd "${DOCKER_USER_ID}" > /dev/null; \ | ||
then adduser -S -u "${DOCKER_USER_ID}" -G "$(getent group "${DOCKER_GROUP_ID}" | awk -F: '{printf $1}')" dev; \ | ||
fi \ | ||
&& apk add --no-cache git libxml2-dev openssh-client \ | ||
&& apk add --no-cache --virtual .build-deps autoconf g++ make \ | ||
# xdebug | ||
&& pecl install xdebug-2.5.5 \ | ||
&& docker-php-ext-enable xdebug \ | ||
# composer | ||
&& curl --output composer-setup.php https://getcomposer.org/installer \ | ||
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \ | ||
&& rm composer-setup.php \ | ||
# xdebug command | ||
&& curl --location --output /usr/local/bin/xdebug https://github.com/julienfalque/xdebug/releases/download/v1.1.0/xdebug \ | ||
&& chmod +x /usr/local/bin/xdebug \ | ||
# clean up | ||
&& apk del .build-deps | ||
|
||
COPY xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini |
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,5 @@ | ||
;zend_extension=xdebug.so | ||
xdebug.remote_autostart=1 | ||
xdebug.remote_enable=1 | ||
xdebug.remote_host=host.docker.internal | ||
xdebug.remote_port=9003 |
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,27 @@ | ||
FROM php:7.0-cli-alpine3.7 | ||
|
||
ARG DOCKER_USER_ID | ||
ARG DOCKER_GROUP_ID | ||
|
||
RUN if ! getent group "${DOCKER_GROUP_ID}" > /dev/null; \ | ||
then addgroup -S -g "${DOCKER_GROUP_ID}" devs; \ | ||
fi \ | ||
&& if ! getent passwd "${DOCKER_USER_ID}" > /dev/null; \ | ||
then adduser -S -u "${DOCKER_USER_ID}" -G "$(getent group "${DOCKER_GROUP_ID}" | awk -F: '{printf $1}')" dev; \ | ||
fi \ | ||
&& apk add --no-cache git libxml2-dev openssh-client \ | ||
&& apk add --no-cache --virtual .build-deps autoconf g++ make \ | ||
# xdebug | ||
&& pecl install xdebug-2.7.2 \ | ||
&& docker-php-ext-enable xdebug \ | ||
# composer | ||
&& curl --output composer-setup.php https://getcomposer.org/installer \ | ||
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \ | ||
&& rm composer-setup.php \ | ||
# xdebug command | ||
&& curl --location --output /usr/local/bin/xdebug https://github.com/julienfalque/xdebug/releases/download/v1.1.0/xdebug \ | ||
&& chmod +x /usr/local/bin/xdebug \ | ||
# clean up | ||
&& apk del .build-deps | ||
|
||
COPY xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini |
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,5 @@ | ||
;zend_extension=xdebug.so | ||
xdebug.remote_autostart=1 | ||
xdebug.remote_enable=1 | ||
xdebug.remote_host=host.docker.internal | ||
xdebug.remote_port=9003 |
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,27 @@ | ||
FROM php:7.1-cli-alpine3.10 | ||
|
||
ARG DOCKER_USER_ID | ||
ARG DOCKER_GROUP_ID | ||
|
||
RUN if ! getent group "${DOCKER_GROUP_ID}" > /dev/null; \ | ||
then addgroup -S -g "${DOCKER_GROUP_ID}" devs; \ | ||
fi \ | ||
&& if ! getent passwd "${DOCKER_USER_ID}" > /dev/null; \ | ||
then adduser -S -u "${DOCKER_USER_ID}" -G "$(getent group "${DOCKER_GROUP_ID}" | awk -F: '{printf $1}')" dev; \ | ||
fi \ | ||
&& apk add --no-cache git libxml2-dev openssh-client \ | ||
&& apk add --no-cache --virtual .build-deps autoconf g++ make \ | ||
# xdebug | ||
&& pecl install xdebug-2.9.8 \ | ||
&& docker-php-ext-enable xdebug \ | ||
# composer | ||
&& curl --output composer-setup.php https://getcomposer.org/installer \ | ||
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \ | ||
&& rm composer-setup.php \ | ||
# xdebug command | ||
&& curl --location --output /usr/local/bin/xdebug https://github.com/julienfalque/xdebug/releases/download/v1.1.0/xdebug \ | ||
&& chmod +x /usr/local/bin/xdebug \ | ||
# clean up | ||
&& apk del .build-deps | ||
|
||
COPY xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini |
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,5 @@ | ||
;zend_extension=xdebug.so | ||
xdebug.remote_autostart=1 | ||
xdebug.remote_enable=1 | ||
xdebug.remote_host=host.docker.internal | ||
xdebug.remote_port=9003 |
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,27 @@ | ||
FROM php:7.2-cli-alpine3.12 | ||
|
||
ARG DOCKER_USER_ID | ||
ARG DOCKER_GROUP_ID | ||
|
||
RUN if ! getent group "${DOCKER_GROUP_ID}" > /dev/null; \ | ||
then addgroup -S -g "${DOCKER_GROUP_ID}" devs; \ | ||
fi \ | ||
&& if ! getent passwd "${DOCKER_USER_ID}" > /dev/null; \ | ||
then adduser -S -u "${DOCKER_USER_ID}" -G "$(getent group "${DOCKER_GROUP_ID}" | awk -F: '{printf $1}')" dev; \ | ||
fi \ | ||
&& apk add --no-cache git libxml2-dev openssh-client \ | ||
&& apk add --no-cache --virtual .build-deps autoconf g++ make \ | ||
# xdebug | ||
&& pecl install xdebug-2.9.8 \ | ||
&& docker-php-ext-enable xdebug \ | ||
# composer | ||
&& curl --output composer-setup.php https://getcomposer.org/installer \ | ||
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \ | ||
&& rm composer-setup.php \ | ||
# xdebug command | ||
&& curl --location --output /usr/local/bin/xdebug https://github.com/julienfalque/xdebug/releases/download/v2.0.0/xdebug \ | ||
&& chmod +x /usr/local/bin/xdebug \ | ||
# clean up | ||
&& apk del .build-deps | ||
|
||
COPY xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini |
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,5 @@ | ||
;zend_extension=xdebug.so | ||
xdebug.remote_autostart=1 | ||
xdebug.remote_enable=1 | ||
xdebug.remote_host=host.docker.internal | ||
xdebug.remote_port=9003 |
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,27 @@ | ||
FROM php:7.3-cli-alpine3.13 | ||
|
||
ARG DOCKER_USER_ID | ||
ARG DOCKER_GROUP_ID | ||
|
||
RUN if ! getent group "${DOCKER_GROUP_ID}" > /dev/null; \ | ||
then addgroup -S -g "${DOCKER_GROUP_ID}" devs; \ | ||
fi \ | ||
&& if ! getent passwd "${DOCKER_USER_ID}" > /dev/null; \ | ||
then adduser -S -u "${DOCKER_USER_ID}" -G "$(getent group "${DOCKER_GROUP_ID}" | awk -F: '{printf $1}')" dev; \ | ||
fi \ | ||
&& apk add --no-cache git libxml2-dev openssh-client \ | ||
&& apk add --no-cache --virtual .build-deps autoconf g++ make \ | ||
# xdebug | ||
&& pecl install xdebug-3.0.1 \ | ||
&& docker-php-ext-enable xdebug \ | ||
# composer | ||
&& curl --output composer-setup.php https://getcomposer.org/installer \ | ||
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \ | ||
&& rm composer-setup.php \ | ||
# xdebug command | ||
&& curl --location --output /usr/local/bin/xdebug https://github.com/julienfalque/xdebug/releases/download/v2.0.0/xdebug \ | ||
&& chmod +x /usr/local/bin/xdebug \ | ||
# clean up | ||
&& apk del .build-deps | ||
|
||
COPY xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini |
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,4 @@ | ||
;zend_extension=xdebug.so | ||
xdebug.client_host=host.docker.internal | ||
xdebug.mode=debug | ||
xdebug.start_with_request=yes |
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,27 @@ | ||
FROM php:7.4-cli-alpine3.13 | ||
|
||
ARG DOCKER_USER_ID | ||
ARG DOCKER_GROUP_ID | ||
|
||
RUN if ! getent group "${DOCKER_GROUP_ID}" > /dev/null; \ | ||
then addgroup -S -g "${DOCKER_GROUP_ID}" devs; \ | ||
fi \ | ||
&& if ! getent passwd "${DOCKER_USER_ID}" > /dev/null; \ | ||
then adduser -S -u "${DOCKER_USER_ID}" -G "$(getent group "${DOCKER_GROUP_ID}" | awk -F: '{printf $1}')" dev; \ | ||
fi \ | ||
&& apk add --no-cache git libxml2-dev openssh-client \ | ||
&& apk add --no-cache --virtual .build-deps autoconf g++ make \ | ||
# xdebug | ||
&& pecl install xdebug-3.0.1 \ | ||
&& docker-php-ext-enable xdebug \ | ||
# composer | ||
&& curl --output composer-setup.php https://getcomposer.org/installer \ | ||
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \ | ||
&& rm composer-setup.php \ | ||
# xdebug command | ||
&& curl --location --output /usr/local/bin/xdebug https://github.com/julienfalque/xdebug/releases/download/v2.0.0/xdebug \ | ||
&& chmod +x /usr/local/bin/xdebug \ | ||
# clean up | ||
&& apk del .build-deps | ||
|
||
COPY xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini |
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,4 @@ | ||
;zend_extension=xdebug.so | ||
xdebug.client_host=host.docker.internal | ||
xdebug.mode=debug | ||
xdebug.start_with_request=yes |
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,27 @@ | ||
FROM php:8.0-cli-alpine3.13 | ||
|
||
ARG DOCKER_USER_ID | ||
ARG DOCKER_GROUP_ID | ||
|
||
RUN if ! getent group "${DOCKER_GROUP_ID}" > /dev/null; \ | ||
then addgroup -S -g "${DOCKER_GROUP_ID}" devs; \ | ||
fi \ | ||
&& if ! getent passwd "${DOCKER_USER_ID}" > /dev/null; \ | ||
then adduser -S -u "${DOCKER_USER_ID}" -G "$(getent group "${DOCKER_GROUP_ID}" | awk -F: '{printf $1}')" dev; \ | ||
fi \ | ||
&& apk add --no-cache git libxml2-dev openssh-client \ | ||
&& apk add --no-cache --virtual .build-deps autoconf g++ make \ | ||
# xdebug | ||
&& pecl install xdebug-3.0.1 \ | ||
&& docker-php-ext-enable xdebug \ | ||
# composer | ||
&& curl --output composer-setup.php https://getcomposer.org/installer \ | ||
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \ | ||
&& rm composer-setup.php \ | ||
# xdebug command | ||
&& curl --location --output /usr/local/bin/xdebug https://github.com/julienfalque/xdebug/releases/download/v2.0.0/xdebug \ | ||
&& chmod +x /usr/local/bin/xdebug \ | ||
# clean up | ||
&& apk del .build-deps | ||
|
||
COPY xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini |
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,4 @@ | ||
;zend_extension=xdebug.so | ||
xdebug.client_host=host.docker.internal | ||
xdebug.mode=debug | ||
xdebug.start_with_request=yes |
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