updated devcontainer

This commit is contained in:
Alexander Gabriel 2026-06-02 14:32:24 +00:00
parent 2121532fb2
commit 5d128ecad7
2 changed files with 17 additions and 1 deletions

View File

@ -3,7 +3,7 @@
{
"name": "Debian",
"image": "mcr.microsoft.com/devcontainers/base:trixie",
"postCreateCommand": "sudo apt update && sudo apt -y install plantuml php php-cli php-zip php-sqlite3 php-xml php-pgsql php-bcmath php-intl php-mbstring composer npm sqlite3 && composer install && npm install",
"postCreateCommand": "bash ./.devcontainer/postCreateCommand.sh",
"customizations": {
"vscode": {
"extensions": [

View File

@ -0,0 +1,16 @@
#!/bin/bash
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
${SUDO} apt-get update
${SUDO} apt-get -y install lsb-release ca-certificates curl
${SUDO} curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
${SUDO} dpkg -i /tmp/debsuryorg-archive-keyring.deb
${SUDO} sh -c 'echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
${SUDO} apt-get update
${SUDO} apt-get -y install plantuml php8.5 php8.5-{cli,zip,sqlite3,xml,pgsql,bcmath,intl,mbstring} composer npm sqlite3
composer install
npm install