updated devcontainer
This commit is contained in:
parent
2121532fb2
commit
5d128ecad7
@ -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": [
|
||||
|
||||
16
.devcontainer/postCreateCommand.sh
Normal file
16
.devcontainer/postCreateCommand.sh
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user