initial release

This commit is contained in:
Nils 2021-05-29 18:18:29 +02:00
parent e19e4ab5e8
commit 940a9c1209
Signed by: byreqz
GPG Key ID: 396A62D7D436749E
3 changed files with 34 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM debian:sid
RUN apt-get update
RUN apt-get install -y curl jq netdiscover
RUN curl -s https://api.github.com/repos/yudai/gotty/releases/latest | jq -r '.assets[].browser_download_url' | grep "gotty_linux_amd64.tar.gz" | xargs curl -L -o gotty_linux_amd64.tar.gz
RUN tar xvfz gotty_linux_amd64.tar.gz
COPY run.sh ./run.sh
RUN chmod +x ./run.sh
ENTRYPOINT ["/run.sh"]

12
docker-compose.yml Normal file
View File

@ -0,0 +1,12 @@
version: '2.3'
services:
netdiscover-docker:
container_name: netdiscover-docker
network_mode: host
image: byreqz/netdiscover-docker:latest
restart: unless-stopped
# environment:
# - port=1234
# - userpass=user:pass
# - title=1234

12
run.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
if [[ -z "$port" ]];then
port=8080
fi
if [[ -n "$userpass" ]];then
creds="-c "$userpass""
fi
if [[ -z "$title" ]];then
title=netdiscover-docker
fi
./gotty -p "$port" $creds --title-format "$title" netdiscover