You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,16 +132,17 @@ It is important that
132
132
- the first step copies .tool-versions from /home/vscode to $HOME/.tool-versions
133
133
134
134
# Project structure
135
-
We have 4 types of dev container. These are defined under src
135
+
We have 5 types of dev container. These are defined under src
136
136
137
137
`base` - this is the base image that all others are based on.
138
-
`languages` - this installs specific versions of node and python.
138
+
`base_node` - images that install node - most language projects rely on one of these
139
+
`languages` - this installs specific versions of python - normally based off a node image
139
140
`projects` - this is used for projects where more customization is needed than just a base language image.
140
141
`githubactions` - this just takes an existing image and remaps vscode user to be 1001 so it can be used by github actions.
141
142
142
143
Each image to be built contains a .devcontainer folder that defines how the devcontainer should be built. At a minimum, this should contain a devcontainer.json file. See https://containers.dev/implementors/json_reference/ for options for this
143
144
144
-
Images under languages should point to a dockerfile under src/common that is based off the base image. This also runs `.devcontainer/scripts/root_install.sh` and `.devcontainer/scripts/vscode_install.sh` as vscode user as part of the build. These files should be in the language specific folder.
145
+
Images under languages should point to a dockerfile under src/common or src/common_node_24 that is based off the base or node image. This also runs `.devcontainer/scripts/root_install.sh` and `.devcontainer/scripts/vscode_install.sh` as vscode user as part of the build. These files should be in the language specific folder.
145
146
146
147
We use trivy to scan for vulnerabilities in the built docker images. Known vulnerabilities in the base image are in `src/common/.trivyignore.yaml`. Vulnerabilities in specific images are in `.trivyignore.yaml` file in each images folder. These are combined before running a scan to exclude all known vulnerabilities
0 commit comments