|
5 | 5 | "build": {
|
6 | 6 | "dockerfile": "Dockerfile"
|
7 | 7 | },
|
| 8 | + "runArgs": ["--name", "omshub-website-dev"], |
8 | 9 | "mounts": [
|
9 |
| - "source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume" |
| 10 | + // cache `node_modules` |
| 11 | + "source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume", |
| 12 | + // cache firebase emulators suite JAR files -- ref: https://firebase.google.com/docs/emulator-suite/install_and_configure#integrate_with_your_ci_system |
| 13 | + "source=${localWorkspaceFolderBasename}-fb_emulators_root,target=/root/.cache/firebase/emulators/,type=volume", // root user |
| 14 | + "source=${localWorkspaceFolderBasename}-fb_emulators_nonroot,target=/home/${containerUser}/.cache/firebase/emulators/,type=volume" // non-root user (e.g., `node`) |
10 | 15 | ],
|
11 | 16 | "customizations": {
|
12 | 17 | "vscode": {
|
13 | 18 | "settings": {},
|
14 |
| - "workspaceFolder":"${containerWorkspaceFolder}", |
| 19 | + "workspaceFolder": "${containerWorkspaceFolder}", |
15 | 20 | // Add the IDs of extensions you want installed when the container is created.
|
16 | 21 | "extensions": [
|
17 | 22 | "dbaeumer.vscode-eslint",
|
18 | 23 | "esbenp.prettier-vscode",
|
19 |
| - "ms-azuretools.vscode-docker", |
| 24 | + "oderwat.indent-rainbow", |
20 | 25 | "mhutchie.git-graph"
|
21 |
| - ], |
| 26 | + ] |
22 | 27 | }
|
23 | 28 | },
|
24 | 29 | "containerEnv": {
|
25 |
| - "CHOKIDAR_USEPOLLING":"true", |
26 |
| - "WATCHPACK_POLLING":"true" |
| 30 | + "CHOKIDAR_USEPOLLING": "true", |
| 31 | + "WATCHPACK_POLLING": "true" |
27 | 32 | },
|
28 | 33 | "forwardPorts": [
|
29 | 34 | // Application and Storybook
|
30 |
| - 3000, |
31 |
| - 6006, |
| 35 | + 3000, 6006, |
32 | 36 | // Local Firebase Emulator Suite
|
33 |
| - 4000, |
34 |
| - 4400, |
35 |
| - 4500, |
36 |
| - 5000, |
37 |
| - 5001, |
38 |
| - 8080, |
39 |
| - 9099, |
40 |
| - 9150, |
41 |
| - 9199 |
| 37 | + 4000, 4400, 4500, 5000, 5001, 8080, 9099, 9150, 9199 |
42 | 38 | ],
|
43 | 39 | "portsAttributes": {
|
44 | 40 | // Application and Storybook
|
|
0 commit comments