Skip to content

Commit 928062e

Browse files
committed
Finish documentation
1 parent 426193e commit 928062e

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.ci/docker/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ If you encounter network related issues try passing the flag: `--network=host`.
1515

1616
# Run tests against the project (mount project root to /workspace)
1717

18+
### Note:
19+
To set the bazel version either create a `.bazelversion` file in the root of the project, or define the version with the `-e BAZEL_VERSION=x.x.x` parameter.
20+
1821
```bash
1922
docker run --rm \
2023
-v "$(pwd):/workspace" \
@@ -24,7 +27,26 @@ docker run --rm \
2427
-v "$(pwd):/workspace" \
2528
rules-codechecker-rhel9
2629
```
30+
If you encounter network related issues try passing the flag: `--network=host`, as shown below.
31+
32+
```
33+
docker run --rm \
34+
--network=host \
35+
-v "$(pwd):/workspace" \
36+
rules-codechecker-ubuntu
37+
```
38+
39+
Example for setting the bazel version using docker run parameters.
40+
```
41+
docker run --rm \
42+
-e BAZEL_VERSION=7.7.0 \
43+
-v "$(pwd):/workspace" \
44+
rules-codechecker-ubuntu
45+
```
2746

2847
### To remove artifacts created by docker run:
2948

3049
```
50+
docker -rmi rules-codechecker-ubuntu
51+
docker -rmi rules-codechecker-rhel9
52+
```

0 commit comments

Comments
 (0)