-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- stop testing on PHP5 - raise PHPUnit to "^8" (support for PHP 7.1-7.4) - migrate to PHPUnit 6+ (\PHPUnit\Framework\TestCase + setUp():void) - updated Changelog + Readme section on how to require a specific phantomjs version
- Loading branch information
Showing
11 changed files
with
231 additions
and
121 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
FROM php:7.4-cli | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
ARG USERNAME=vscode | ||
ARG USER_UID=1000 | ||
ARG USER_GID=$USER_UID | ||
|
||
# Configure apt and install packages | ||
RUN apt-get update \ | ||
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \ | ||
&& apt-get -y install git openssh-client less iproute2 procps lsb-release unzip \ | ||
&& apt-get -y install libfontconfig1 libbz2-dev libzip-dev \ | ||
# | ||
# Xdebug | ||
&& yes | pecl install xdebug \ | ||
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& echo "xdebug.remote_autostart=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ | ||
# | ||
# Create a non-root user to use if preferred | ||
&& groupadd --gid $USER_GID $USERNAME \ | ||
&& useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \ | ||
# [Optional] Add sudo support for the non-root user | ||
&& apt-get install -y sudo \ | ||
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\ | ||
&& chmod 0440 /etc/sudoers.d/$USERNAME \ | ||
# | ||
# Clean up | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
# | ||
# Install Composer v1, then self-update to snapshot of v2 | ||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ | ||
&& composer self-update --snapshot \ | ||
&& composer --version | ||
|
||
# For PhantomJS | ||
ENV OPENSSL_CONF=/etc/ssl/ | ||
|
||
# Install bz2, requires libbz2-dev | ||
RUN docker-php-ext-install bz2 | ||
|
||
# Install zip, requires libzip-dev zlib1g-dev | ||
RUN docker-php-ext-configure zip | ||
RUN docker-php-ext-install zip | ||
|
||
ENV DEBIAN_FRONTEND=dialog |
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 @@ | ||
{ | ||
"name": "PHP 7 + Composer + phantomjs-installer", | ||
"dockerFile": "Dockerfile", | ||
|
||
// Use 'settings' to set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created in the array below. | ||
"extensions": [ | ||
"felixfbecker.php-debug", | ||
"felixfbecker.php-intellisense", | ||
//"shd101wyy.markdown-preview-enhanced", | ||
//"auchenberg.vscode-browser-preview", | ||
//"whatwedo.twig", | ||
//"mtxr.sqltools" | ||
], | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "php -v", | ||
|
||
// Comment out if you want to use root | ||
"remoteUser": "vscode" | ||
|
||
} |
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
Oops, something went wrong.