88
99# low-level helper to run any CLI command in its own one-off docker container,
1010# ensuring that `db` and `s3` are running.
11- _ cli service_name * args : _touch-docker-env ensure_db_and_s3_are_running
11+ _ cli service_name * args : _touch-docker-env _ensure_db_and_s3_are_running
1212 # dependencies in the docker-compose file are ignored
1313 # when running a one-off service with `docker compose run`.
1414 # Instead we explicitly start any dependent services first via
15- # `ensure_db_and_s3_are_running `.
15+ # `_ensure_db_and_s3_are_running `.
1616
1717 docker compose run --build --rm {{ service_name }} {{ args }}
1818
1919# run any CLI command in its own one-off `cli` docker container. Args are passed to the container.
2020# Only for commands that just need `db` and `s3` and minimal system dependencies.
2121[group (' cli' )]
22- cli + args : _touch-docker-env cli-db-migrate
22+ cli + args : _touch-docker-env cli-db-migrate
2323 just _cli cli {{ args }}
2424
2525# Initialize the `docs.rs` database
@@ -36,48 +36,51 @@ cli-db-migrate:
3636# add a release to the build queue
3737[group (' cli' )]
3838[group (' queue' )]
39- cli-queue-add + args :
39+ cli-queue-add crate_name crate_version :
4040 # only does things with the database, so can use the lightweight `cli` container.
41- just cli queue add {{ args }}
41+ just cli queue add {{ crate_name }} {{ crate_version }}
4242
4343# run builder CLI command in its own one-off `build-server` docker container.
4444# Uses a separate builder-cli container & workspace that doesn't conflict
4545# with the continiously running build-servers.
4646[group (' cli' )]
47- [group (' build ' )]
47+ [group (' builder ' )]
4848cli-build + args : _touch-docker-env cli-db-migrate
4949 just _cli builder-cli {{ args }}
5050
5151# set the nightly rust version to be used for builds. Format: `nightly-YYYY-MM-DD`
5252# or just `nightly` for always using the latest nightly.
5353[group (' cli' )]
54- [group (' build ' )]
54+ [group (' builder ' )]
5555cli-build-set-toolchain name only_first_time = " false":
56+ #!/usr/bin/env bash
57+ set -euo pipefail
58+
5659 FLAG=" "
5760 if [ " {{ only_first_time}} " = " true" ]; then FLAG=" --only-first-time" ; fi
5861 just cli-build build set-toolchain {{ name }} $FLAG
5962
6063# update the toolchain in the builders
6164[group (' cli' )]
62- [group (' build ' )]
65+ [group (' builder ' )]
6366cli-build-update-toolchain :
6467 just cli-build build update-toolchain
6568
6669# build & upload toolchain shared static resources
6770[group (' cli' )]
68- [group (' build ' )]
71+ [group (' builder ' )]
6972cli-build-add-essential-files :
7073 just cli-build build add-essential-files
7174
7275# build a release
7376[group (' cli' )]
74- [group (' build ' )]
77+ [group (' builder ' )]
7578cli-build-crate name version :
7679 just cli-build build crate {{ name }} {{ version }}
7780
7881# run registry-watcher CLI command in its own one-off `registry-watcher` docker container.
7982[group (' cli' )]
80- [group (' registry- watcher' )]
83+ [group (' watcher' )]
8184cli-watcher + args : _touch-docker-env cli-db-migrate
8285 just _cli registry-watcher-cli {{ args }}
8386
0 commit comments