Download Dataset_Construction/projects/libp2p/rust/scripts/build-interop-image.sh from SYSUSELab/RustRepoTrans: direct link, hf CLI and curl.
- Browser
- Download file 685 Bytes
-
https://huggingface.co/datasets/SYSUSELab/RustRepoTrans/resolve/main/Dataset_Construction/projects/libp2p/rust/scripts/build-interop-image.sh
- Command line
-
hf download hf://datasets/SYSUSELab/RustRepoTrans/Dataset_Construction/projects/libp2p/rust/scripts/build-interop-image.sh
-
curl -L -o build-interop-image.sh https://huggingface.co/datasets/SYSUSELab/RustRepoTrans/resolve/main/Dataset_Construction/projects/libp2p/rust/scripts/build-interop-image.sh
685 Bytes
| # This uses the same S3 cache as all test-plans images. Because we use `cargo-chef` in the Dockerfile, we have a layer available with all dependencies built. | |
| CACHE_TO="" | |
| # If we have credentials, write to cache | |
| if [[ -n "${AWS_SECRET_ACCESS_KEY}" ]]; then | |
| CACHE_TO="--cache-to type=s3,mode=max,bucket=libp2p-by-tf-aws-bootstrap,region=us-east-1,prefix=buildCache,name=${FLAVOUR}-rust-libp2p-head" | |
| fi | |
| docker buildx build \ | |
| --load \ | |
| $CACHE_TO \ | |
| --cache-from type=s3,mode=max,bucket=libp2p-by-tf-aws-bootstrap,region=us-east-1,prefix=buildCache,name=${FLAVOUR}-rust-libp2p-head \ | |
| -t ${FLAVOUR}-rust-libp2p-head \ | |
| . \ | |
| -f interop-tests/Dockerfile.${FLAVOUR} | |