Initial version. Only supports -n option for now

through HOSTNAME environment variable.
This commit is contained in:
Jonas Pedersen 2019-06-11 21:11:04 +02:00
parent df253d9889
commit 96d9629c4b
2 changed files with 20 additions and 0 deletions

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM python:3
WORKDIR /usr/src/app
RUN curl https://raw.githubusercontent.com/christgau/wsdd/master/src/wsdd.py -o wsdd.py
copy docker-cmd.sh .
CMD [ "./docker-cmd.sh"]

11
docker-cmd.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
args=( )
if [ ! -z "${HOSTNAME}" ]; then
args+=( "-n $HOSTNAME")
fi
python wsdd.py ${args}