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
Document QNX setup and Dependabot workaround (#107)
QNX setup cannot be done in a generic way via the devcontainer image.
Thus documentation is added how to set it up at each repo.
For getting Dependabot updates of Devcontainer image releases, no
documentation was given so far, which is fixed now.
Closes#49
# Use Dockerfile to get Dependabot version bumps after new image is released
56
+
FROM ghcr.io/eclipse-score/devcontainer:<version>
57
+
```
58
+
48
59
The `<version>` must be a [valid, published release](https://github.com/eclipse-score/devcontainer/tags).
49
-
You can also use `main` as `<version>` to automatically follow the `main` branch, and `latest` to follow release tags - but be aware that this can result in undesired updates.
60
+
61
+
> [!NOTE]
62
+
> Dependabots devcontainer support does not include devcontainer images so far.
63
+
> With the Dockerfile Dependabot will create pull request after a new devcontainer image release is published.
64
+
65
+
You can also use `main` as `<version>` to automatically follow the `main` branch, and `latest` to follow release tags - but be aware that this will make it harder to figure out with which container version the code has been build and tested.
66
+
You and a colleague might be working with different container versions without knowing, because newer versions of the same tag name are not pulled automatically by Docker.
50
67
51
68
To start using the container, click the **Reopen in Container** button when prompted by Visual Studio Code:
52
69
@@ -60,6 +77,19 @@ Afterwards, Visual Studio Code should show this in the lower left corner of your
Open a Terminal, and - for example - type `bazel build ...` to execute the default build of the repository.
83
+
84
+
After you have build the code, create [compilation databases](https://clang.llvm.org/docs/JSONCompilationDatabase.html) via Visual Studio Code [Task](https://code.visualstudio.com/docs/debugtest/tasks):
These databases are used by Visual Studio Code to support code navigation and auto-completion with the help of [language servers](https://microsoft.github.io/language-server-protocol/).
90
+
91
+
Congratulations, you are now a dev container enthusiast 😊.
92
+
63
93
### Bazel's `linux-sandbox`
64
94
65
95
`linux-sandbox` makes use of [Linux user namespaces](https://man7.org/linux/man-pages/man7/user_namespaces.7.html).
@@ -77,19 +107,6 @@ probably due to lack of alternatives.
77
107
> [!NOTE]
78
108
> If `linux-sandbox` is not needed, do not add this snippet.
79
109
80
-
### Inside the Container
81
-
82
-
Open a Terminal, and - for example - type `bazel build ...` to execute the default build of the repository.
83
-
84
-
After you have build the code, create [compilation databases](https://clang.llvm.org/docs/JSONCompilationDatabase.html) via Visual Studio Code [Task](https://code.visualstudio.com/docs/debugtest/tasks):
These databases are used by Visual Studio Code to support code navigation and auto-completion with the help of [language servers](https://microsoft.github.io/language-server-protocol/).
90
-
91
-
Congratulations, you are now a dev container enthusiast 😊.
92
-
93
110
### How to use: codeql
94
111
95
112
The devcontainer codeql installation supports C, C++ and Rust source code analysis. All publicly available
0 commit comments