Skip to content

Commit 571169c

Browse files
committed
ci: add MySQL to Dev Container config
1 parent 8c4e94f commit 571169c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"version": "none",
1111
"installMaven": "false",
1212
"installGradle": "false"
13-
}
13+
},
14+
"ghcr.io/devcontainers-contrib/features/mysql-homebrew:1": {}
1415
},
1516

1617
// Configure tool-specific properties.
@@ -31,6 +32,8 @@
3132
}
3233
},
3334

34-
"forwardPorts": [8080]
35+
"forwardPorts": [8080],
36+
37+
"postStartCommand": "mysql.server start"
3538
}
3639

0 commit comments

Comments
 (0)