Skip to content

Commit bc02c31

Browse files
committed
Add devcontainer configuration for development
Add a root-level devcontainer for developing the SQLite driver and running all test suites. This is separate from the existing WordPress- specific devcontainer in wordpress/.devcontainer/. The configuration provides: - PHP 8.4 with pdo_sqlite extension - Composer (included in the base image) - Node.js 20 (for Playwright E2E tests) - Docker-in-Docker (for WordPress integration tests)
1 parent a8e796d commit bc02c31

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM mcr.microsoft.com/devcontainers/php:8.4
2+
3+
RUN apt-get update \
4+
&& apt-get install -y php8.4-sqlite3 \
5+
&& apt-get clean \
6+
&& rm -rf /var/lib/apt/lists/*

.devcontainer/devcontainer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "SQLite Database Integration",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"features": {
7+
"ghcr.io/devcontainers/features/node:1": {
8+
"version": "20"
9+
},
10+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
11+
},
12+
"postCreateCommand": "composer install"
13+
}

0 commit comments

Comments
 (0)