2024-04-16 17:39:33 +02:00
|
|
|
NAME = sip-tarpit
|
|
|
|
VERSION = 0.0.1
|
|
|
|
|
2024-04-15 15:31:25 +02:00
|
|
|
all:
|
|
|
|
cargo build
|
|
|
|
|
|
|
|
static:
|
2024-04-15 15:54:29 +02:00
|
|
|
CARGO_BUILD_TARGET=x86_64-unknown-linux-musl cargo build --release
|
2024-04-15 15:31:25 +02:00
|
|
|
|
|
|
|
check-static:
|
|
|
|
ldd target/x86_64-unknown-linux-musl/release/sip-tarpit
|
|
|
|
|
|
|
|
release:
|
|
|
|
cargo build --release
|
|
|
|
|
|
|
|
clean:
|
|
|
|
sudo rm -rf target
|
2024-04-16 17:39:33 +02:00
|
|
|
|
|
|
|
docker-build:
|
|
|
|
docker build --no-cache -t $(NAME):$(VERSION) .
|
|
|
|
|
|
|
|
docker-run:
|
|
|
|
docker run --rm --name $(NAME) \
|
2024-04-17 13:43:46 +02:00
|
|
|
--expose 5060/udp -p 5060:5060/udp \
|
2024-04-16 17:39:33 +02:00
|
|
|
--mount type=bind,source="$(PWD)"/config.toml,target=/app/config.toml,readonly \
|
|
|
|
$(NAME):$(VERSION)
|