[+] Rust builder?

This commit is contained in:
Azalea 2024-12-22 01:09:44 -05:00
parent a0db219ba3
commit cafa3ff752
4 changed files with 37 additions and 2 deletions

11
tools/build_rust.sh Normal file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
# Step 1: Build the Docker image
echo "Building the Docker image..."
docker build -t rust-builder-general tools/rust-builder/general
# Step 2: Run the Docker container and execute the builder script
echo "Running the Docker container..."
docker run --rm -v "$(pwd)":/app rust-builder bash -c "cd /app && ./tools/rust-builder/general/builder.sh"