Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (14 sloc) 820 Bytes
#!/bin/sh
set -eu
cd iso/musl-builder
sudo docker build -t mpc-musl-builder .
cd ../../
sudo docker run --rm -it -v "$(pwd)":/home/rust/src mpc-musl-builder cargo build --release --bin compute --no-default-features
cp target/x86_64-unknown-linux-musl/release/compute iso/mpc_compute/mpc_compute.rs
sudo docker run --rm -it -v "$(pwd)":/home/rust/src mpc-musl-builder cargo build --release --bin network --no-default-features
cp target/x86_64-unknown-linux-musl/release/network iso/mpc_network/mpc_network.rs
cd iso
sudo docker build -t mpc-iso .
cd ..
sudo docker run --rm -it -v "$(pwd)":/home/builder/target mpc-iso cp -L alpine-compute.iso /home/builder/target/alpine-compute.iso
sudo docker run --rm -it -v "$(pwd)":/home/builder/target mpc-iso cp -L alpine-network.iso /home/builder/target/alpine-network.iso
You can’t perform that action at this time.