diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..31ac05bb9 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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" + } + } +} \ No newline at end of file diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh new file mode 100644 index 000000000..c02f00f06 --- /dev/null +++ b/.devcontainer/setup.sh @@ -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 \ No newline at end of file