-
Notifications
You must be signed in to change notification settings - Fork 3
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 #2 from markhuot/devcontainer
Devcontainer
- Loading branch information
Showing
8 changed files
with
72 additions
and
19 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,3 @@ | ||
FROM mcr.microsoft.com/devcontainers/php:8.2 | ||
RUN apt update && apt install -y libicu-dev libz-dev libzip-dev vim mariadb-client | ||
RUN docker-php-ext-install bcmath intl zip pdo_mysql |
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,15 @@ | ||
{ | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "php", | ||
"workspaceFolder": "/workspaces/craft-pest-core", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"m1guelpf.better-pest", | ||
"bmewburn.vscode-intelephense-client", | ||
"whatwedo.twig" | ||
] | ||
} | ||
}, | ||
"postCreateCommand": "composer install && ./bin/post-clone.sh && cp .env.example .env && echo 'CRAFT_DB_SERVER=mysql' >> .env && echo 'CRAFT_DB_DATABASE=pest' >> .env && echo 'CRAFT_DB_PASSWORD=root' >> .env && php craft install --username=admin [email protected] --password=secret --siteName=pest --siteUrl=http://localhost:8080 --language=en-US && ./bin/post-install.sh" | ||
} |
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,34 @@ | ||
version: '3.7' | ||
|
||
services: | ||
php: | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile | ||
environment: | ||
- CRAFT_DB_DRIVER=mysql | ||
- CRAFT_DB_SERVER=mysql | ||
- CRAFT_DB_PORT=3306 | ||
- CRAFT_DB_DATABASE=pest | ||
- CRAFT_DB_USER=root | ||
- CRAFT_DB_PASSWORD=root | ||
- CRAFT_DB_SCHEMA=public | ||
- CRAFT_DB_TABLE_PREFIX= | ||
- CRAFT_APP_ID=CraftCMS--0f6629c1-49b5-4f13-a492-0e0f81063911 | ||
- CRAFT_ENVIRONMENT=dev | ||
- CRAFT_SECURITY_KEY=2UK5H8fUIgnTBSWVMnMXFlraQG8tLjC5 | ||
- CRAFT_DEV_MODE=true | ||
mysql: | ||
image: jbergstroem/mariadb-alpine:latest | ||
cap_add: | ||
- SYS_NICE # CAP_SYS_NICE | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
MYSQL_DATABASE: pest | ||
init: true | ||
expose: | ||
- "3306" | ||
volumes: | ||
- db-data:/var/lib/mysql | ||
volumes: | ||
db-data: |
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,4 +1,3 @@ | ||
#!/bin/bash | ||
|
||
php craft plugin/install keystone | ||
php ./bin/create-default-fs.php > /dev/null 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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