-
-
Notifications
You must be signed in to change notification settings - Fork 138
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 #682 from Austinb/bumbummen99-devcontainer
Add devcontainer configuration
- Loading branch information
Showing
7 changed files
with
73 additions
and
10 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,10 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/php | ||
{ | ||
"name": "PHP", | ||
"build": { | ||
"dockerfile": "docker/Dockerfile" | ||
}, | ||
"postCreateCommand": ".devcontainer/postCreate.sh", | ||
"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,11 @@ | ||
# Define the DevContainer template to be used as the base | ||
ARG TAG=8.2-bullseye | ||
FROM mcr.microsoft.com/vscode/devcontainers/php:$TAG | ||
|
||
# Update the registry once | ||
RUN apt-get update | ||
|
||
# Install ext-bz2 | ||
RUN apt-get install -y libbz2-dev \ | ||
&& docker-php-ext-configure bz2 \ | ||
&& docker-php-ext-install bz2 |
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,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Install dependencies using Composer | ||
if [ ! -f composer.lock ]; then | ||
composer install | ||
fi |
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,13 +1,20 @@ | ||
|
||
# Development | ||
/remotes/ | ||
test.php | ||
/.buildpath | ||
/.project | ||
/.settings/* | ||
vendor | ||
|
||
# JetBrains | ||
/.idea | ||
*.iml | ||
|
||
# Composer | ||
vendor | ||
composer.lock | ||
composer.phar | ||
|
||
# PHPUnit | ||
.phpunit.result.cache | ||
coverage/ | ||
build/logs/ | ||
test.php | ||
*.iml | ||
/remotes/ | ||
build/logs/ |
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 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Debug Tests", | ||
"type": "php", | ||
"request": "launch", | ||
"port": 0, | ||
"cwd": "${workspaceFolder}", | ||
"runtimeArgs": [ | ||
"-dxdebug.mode=debug,develop", | ||
"-dxdebug.client_port=${port}", | ||
"-dxdebug.start_with_request=yes" | ||
], | ||
"program": "${workspaceFolder}/vendor/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
} | ||
], | ||
"settings": {} | ||
} |