-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from stechstudio/Fixer-3.0-Support
Fixer 3.0 Support
- Loading branch information
Showing
17 changed files
with
846 additions
and
351 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,33 @@ | ||
# Update the VARIANT arg in docker-compose.yml to pick a PHP version: 7, 7.4, 7.3 | ||
ARG VARIANT=8 | ||
FROM mcr.microsoft.com/vscode/devcontainers/php:0-${VARIANT} | ||
|
||
# Install MariaDB client | ||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get install -y mariadb-client \ | ||
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* | ||
|
||
# Update args in docker-compose.yaml to set the UID/GID of the "vscode" user. | ||
ARG USER_UID=1000 | ||
ARG USER_GID=$USER_UID | ||
RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then groupmod --gid $USER_GID vscode && usermod --uid $USER_UID --gid $USER_GID vscode; fi | ||
|
||
RUN pecl install -o -f redis \ | ||
&& rm -rf /tmp/pear \ | ||
&& docker-php-ext-enable redis | ||
|
||
# Install php-mysql driver | ||
RUN docker-php-ext-install mysqli pdo pdo_mysql | ||
|
||
# [Optional] Install a version of Node.js using nvm for front end dev | ||
ARG INSTALL_NODE="true" | ||
ARG NODE_VERSION="lts/*" | ||
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi | ||
RUN rm -rf /usr/local/etc/php/conf.d/xdebug.ini | ||
# [Optional] Uncomment this section to install additional OS packages. | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> | ||
|
||
# [Optional] Uncomment this line to install global node packages. | ||
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1 | ||
|
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,35 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/php-mariadb | ||
// Update the VARIANT arg in docker-compose.yml to pick a PHP version: 7, 7.3, 7.4 | ||
{ | ||
"name": "metrics-app", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "app", | ||
"workspaceFolder": "/workspace", | ||
|
||
// 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. | ||
"extensions": [ | ||
"eamodio.gitlens", | ||
"mikestead.dotenv", | ||
"felixfbecker.php-debug", | ||
"marabesi.php-import-checker", | ||
"fterrag.vscode-php-cs-fixer", | ||
"marsl.vscode-php-refactoring", | ||
"coenraads.bracket-pair-colorizer-2", | ||
"bmewburn.vscode-intelephense-client" | ||
], | ||
|
||
// For use with PHP or Apache (e.g.php -S localhost:8080 or apache2ctl start) | ||
"forwardPorts": [8080, 3306], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html" | ||
|
||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: '3' | ||
|
||
services: | ||
app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
args: | ||
# [Choice] PHP version: 7, 7.4, 7.3 | ||
VARIANT: "8" | ||
# [Option] Install Node.js | ||
INSTALL_NODE: "true" | ||
NODE_VERSION: "lts/*" | ||
# On Linux, you may need to update USER_UID and USER_GID below if not your local UID is not 1000. | ||
USER_UID: 1000 | ||
USER_GID: 1000 | ||
|
||
volumes: | ||
- ..:/workspace:cached | ||
|
||
# Overrides default command so things don't shut down after the process ends. | ||
command: sleep infinity | ||
|
||
# Uncomment the next line to use a non-root user for all processes. | ||
# user: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,27 +14,26 @@ | |
"fixer" | ||
], | ||
"autoload": { | ||
"classmap": [ | ||
], | ||
"classmap": [], | ||
"psr-4": { | ||
"STS\\Fixer\\": "src" | ||
}, | ||
"files": [ | ||
] | ||
"files": [] | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Bubba Hines", | ||
"email": "[email protected]" | ||
} | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.0", | ||
"php": "^7.1.3 || ^8.0", | ||
"illuminate/support": "^5.4|^6.0|^7.0|^8.0", | ||
"friendsofphp/php-cs-fixer": "^2.18.6" | ||
"friendsofphp/php-cs-fixer": "^3.0.0" | ||
}, | ||
"require-dev": { | ||
"illuminate/console": "^5.4|^6.0" | ||
"illuminate/console": "^5.4|^6.0|^7.0|^8.0", | ||
"orchestra/testbench": "^6.17" | ||
}, | ||
"extra": { | ||
"laravel": { | ||
|
@@ -43,5 +42,10 @@ | |
] | ||
} | ||
}, | ||
"scripts": { | ||
"post-autoload-dump": [ | ||
"@php ./vendor/bin/testbench package:discover --ansi" | ||
] | ||
}, | ||
"minimum-stability": "stable" | ||
} |
Oops, something went wrong.