Skip to content

Commit b180012

Browse files
Update Veritas to Rust 1.88.0, use local containers
1 parent 76473c7 commit b180012

6 files changed

Lines changed: 22 additions & 16 deletions

tools/veritas/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ Veritas is a rust crater-alike tool to run a version of verus on a number of pro
55
generating a report of verification success/failures and verification performance data.
66

77
Running veritas requires docker (or another container runtime).
8-
You can start a run with `bash run.sh path_to_run_configuration.toml`.
9-
There is an example run configuration in this directory.
10-
Running that command will start an ephemeral container and will create four
11-
permanent docker volumes: `verus-veritas-cargo-cache`, `verus-veritas-repo-cache`,
12-
`verus-veritas-rustup`, `verus-veritas-z3-cache`. These volumes cache dowloaded repositories,
13-
binaries, and other files, to reduce unnecessary traffic when performing multiple runs.
8+
9+
10+
### Running Veritas
11+
12+
1. Run `bash build_images.sh` to create the Docker images Veritas uses locally
13+
- This only needs to be done when running Veritas for the first time or after an update to Verus that upgrades its Rust version.
14+
2. Run `bash run.sh path_to_run_configuration.toml`. There is an example run configuration in this directory.
15+
- Running that command will start an ephemeral container and will create four permanent docker volumes: `verus-veritas-cargo-cache`, `verus-veritas-repo-cache`, `verus-veritas-rustup`, `verus-veritas-z3-cache`. These volumes cache dowloaded repositories, binaries, and other files, to reduce unnecessary traffic when performing multiple runs.

tools/veritas/build_images.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
set -e
33
set -x
44

5+
RUST_VERSION=1.88.0
6+
57
if [ "$(dirname "$0")" != "." ]; then
68
echo "Please run the script from its directory."
79
exit 1
810
fi
911

10-
docker build -f verus-lang_verus-deps.dockerfile -t ghcr.io/utaal/verus-lang/verus-deps .
11-
docker build -f verus-lang_verus-base-1.85.1.dockerfile -t ghcr.io/utaal/verus-lang/verus-base:rust-1.85.1 .
12-
docker build -f verus-lang_veritas-1.85.1.dockerfile -t ghcr.io/utaal/verus-lang/veritas:rust-1.85.1 .
12+
docker build -f verus-lang_verus-deps.dockerfile -t verus-deps .
13+
docker build -f verus-lang_verus-base-$RUST_VERSION.dockerfile -t verus-base:rust-$RUST_VERSION .
14+
docker build -f verus-lang_veritas-$RUST_VERSION.dockerfile -t veritas:rust-$RUST_VERSION .

tools/veritas/run.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#! /bin/bash
22

3+
RUST_VERSION=1.88.0
4+
35
if [ "$(dirname "$0")" != "." ]; then
46
echo "Please run the script from its directory."
57
exit 1
@@ -9,9 +11,9 @@ docker run --platform=linux/amd64 \
911
-v verus-veritas-repo-cache:/root/repos-cache \
1012
-v $(pwd):/root/veritas \
1113
-v /root/work \
12-
-v verus-veritas-cargo-cache:/root/.cargo \
14+
-v verus-veritas-cargo-$RUST_VERSION-cache:/root/.cargo \
1315
-v verus-veritas-z3-cache:/root/z3-cache \
14-
-v verus-veritas-rustup:/root/.rustup \
16+
-v verus-veritas-rustup-$RUST_VERSION:/root/.rustup \
1517
-v $(pwd)/output:/root/output \
1618
--rm \
17-
ghcr.io/utaal/verus-lang/veritas:rust-1.85.1 $@
19+
veritas:rust-$RUST_VERSION $@

tools/veritas/verus-lang_veritas-1.85.1.dockerfile renamed to tools/veritas/verus-lang_veritas-1.88.0.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/amd64 ghcr.io/utaal/verus-lang/verus-base:rust-1.85.1
1+
FROM --platform=linux/amd64 verus-base:rust-1.88.0
22

33
VOLUME /root/veritas
44

tools/veritas/verus-lang_verus-base-1.85.1.dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM --platform=linux/amd64 verus-deps
2+
3+
RUN /root/.cargo/bin/rustup install 1.88.0

0 commit comments

Comments
 (0)