mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 23:49:59 -07:00
18 lines
531 B
Bash
Executable File
18 lines
531 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Tool to cross-compile outside of Linux.
|
|
#
|
|
# On MacOS, OrbStack is recommended, but other docker distributions will work
|
|
# too.
|
|
#
|
|
# Usage:
|
|
# ./tools/run-docker-devenv
|
|
#
|
|
# Inside the shell:
|
|
# cargo build --bin rayhunter-daemon --target armv7-unknown-linux-musleabihf --release
|
|
#
|
|
# Your output binary is in ./target/armv7-unknown-linux-musleabihf/release/rayhunter-daemon
|
|
|
|
docker build -t rayhunter-devenv -f tools/devenv.dockerfile .
|
|
exec docker run --user $UID:$GID -v ./:/workdir -w /workdir -it rayhunter-devenv "$@"
|