Skip to content

Commit ecce0af

Browse files
authored
feat: devcontainer (for installer build). fix: gitignore. fix: Makefile missing spc doctor (#3007)
1 parent ad712a9 commit ecce0af

4 files changed

Lines changed: 26 additions & 0 deletions

File tree

‎.devcontainer/devcontainer.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "API Platform installer",
3+
"image": "mcr.microsoft.com/devcontainers/php",
4+
"features": {
5+
"ghcr.io/postfinance/devcontainer-features/docker-out:1": {},
6+
"ghcr.io/devcontainers/features/node:2": {}
7+
},
8+
"postCreateCommand": ".devcontainer/post-create.sh"
9+
}

‎.devcontainer/post-create.sh‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
set -eu
3+
4+
sudo apt-get update
5+
sudo curl -fsSL \
6+
-o /usr/local/bin/spc \
7+
"https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-linux-$(uname -m)"
8+
sudo chmod +x /usr/local/bin/spc
9+
10+
cd /tmp
11+
sudo spc doctor --auto-fix --no-interaction

‎.gitignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@
77
/dist
88
/vendor
99
triage/
10+
/source
11+
/downloads
12+
/log
13+
/.devcontainer/devcontainer-lock.json
14+
/pkgroot

‎Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ build:
1818
php -d phar.readonly=0 scripts/build-phar.php $(PHAR)
1919
composer install --no-interaction --no-progress
2020
spc download --for-extensions=phar,filter,tokenizer,mbstring,ctype,zlib,curl,openssl
21+
spc doctor --auto-fix
2122
spc build "phar,filter,tokenizer,mbstring,ctype,zlib,curl,openssl" --build-micro
2223
spc micro:combine $(PHAR) -O $(TARGET)
2324
rm -f $(PHAR)

0 commit comments

Comments
 (0)