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: src/tests/docker.md
+3-12Lines changed: 3 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@ need to install Docker on a Linux, Windows, or macOS system (typically Linux
6
6
will be much faster than Windows or macOS because the latter use virtual
7
7
machines to emulate a Linux environment).
8
8
9
-
Jobs running in CI are configured through a set of bash scripts, and it is not always trivial to reproduce their behavior locally. If you want to run a CI job locally in the simplest way possible, you can use a provided helper Python script that tries to replicate what happens on CI as closely as possible:
9
+
Jobs running in CI are configured through a set of bash scripts, and it is not always trivial to reproduce their behavior locally. If you want to run a CI job locally in the simplest way possible, you can use a provided helper `citool` that tries to replicate what happens on CI as closely as possible:
cargo run --manifest-path src/ci/citool/Cargo.toml run-local dist-x86_64-linux-alt
15
15
```
16
16
17
17
If the above script does not work for you, you would like to have more control of the Docker image execution, or you want to understand what exactly happens during Docker job execution, then continue reading below.
@@ -53,15 +53,6 @@ Some additional notes about using the interactive mode:
53
53
containers. With the container name, run `docker exec -it <CONTAINER>
54
54
/bin/bash` where `<CONTAINER>` is the container name like `4ba195e95cef`.
55
55
56
-
The approach described above is a relatively low-level interface for running the Docker images
57
-
directly. If you want to run a full CI Linux job locally with Docker, in a way that is as close to CI as possible, you can use the following command:
58
-
59
-
```bash
60
-
cargo run --manifest-path src/ci/citool/Cargo.toml run-local <job-name>
61
-
# For example:
62
-
cargo run --manifest-path src/ci/citool/Cargo.toml run-local dist-x86_64-linux-alt
0 commit comments