-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add devcontainer for development
- Loading branch information
1 parent
ad3a1ef
commit 9ecdcbb
Showing
2 changed files
with
40 additions
and
0 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,29 @@ | ||
{ | ||
"image": "ghcr.io/juliushaertl/nextcloud-dev-php81:latest", | ||
"forwardPorts": [80], | ||
"containerEnv": { | ||
"NEXTCLOUD_AUTOINSTALL_APPS": "news", | ||
"XDEBUG_MODE": "debug" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"felixfbecker.php-intellisense", | ||
"octref.vetur" | ||
], | ||
"settings": { | ||
"php.suggest.basic": false, | ||
"git.alwaysSignOff": true | ||
} | ||
} | ||
}, | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/var/www/html/apps-extra/news,type=bind", | ||
"workspaceFolder": "/var/www/html/apps-extra/news", | ||
"overrideCommand": true, | ||
"postAttachCommand": "bash ./.devcontainer/setup.sh", | ||
"portsAttributes": { | ||
"80": { | ||
"label": "Webserver" | ||
} | ||
} | ||
} |
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 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
( | ||
cd /tmp && /usr/local/bin/bootstrap.sh apache2ctl start | ||
) | ||
|
||
make composer | ||
make npm |