]> git.lizzy.rs Git - rust.git/commitdiff
update josh onstructions
authorRalf Jung <post@ralfj.de>
Wed, 21 Dec 2022 16:54:10 +0000 (17:54 +0100)
committerRalf Jung <post@ralfj.de>
Wed, 21 Dec 2022 16:54:10 +0000 (17:54 +0100)
src/tools/miri/CONTRIBUTING.md

index 9d61cc4e2d5f0f0a686ef639e5940e5ed49ba777..6efaefdefffb3ee1e6e67801631d22826196312b 100644 (file)
@@ -232,16 +232,16 @@ You can also directly run Miri on a Rust source file:
 
 ## Advanced topic: Syncing with the rustc repo
 
-We use the [`josh` proxy](https://github.com/josh-project/josh) to transmit
-changes between the rustc and Miri repositories. For now, the latest git version
-of josh needs to be built from source. This downloads and runs josh:
+We use the [`josh` proxy](https://github.com/josh-project/josh) to transmit changes between the
+rustc and Miri repositories. The eaisest way to run josh is via docker:
 
 ```sh
-git clone https://github.com/josh-project/josh
-cd josh
-cargo run --release -p josh-proxy -- --local=local --remote=https://github.com --no-background
+docker pull joshproject/josh-proxy:latest
+docker run -it -p 8000:8000 -e JOSH_REMOTE=https://github.com -e JOSH_EXTRA_OPTS=--no-background -v josh-vol:/data/git joshproject/josh-proxy:latest
 ```
 
+This sets up a local volume `josh-vol` for josh's cache.
+
 ### Importing changes from the rustc repo
 
 Josh needs to be running, as described above.