Initial version. Only supports -n option for now
through HOSTNAME environment variable.
This commit is contained in:
parent
df253d9889
commit
96d9629c4b
2 changed files with 20 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal 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
11
docker-cmd.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
args=( )
|
||||
|
||||
if [ ! -z "${HOSTNAME}" ]; then
|
||||
args+=( "-n $HOSTNAME")
|
||||
fi
|
||||
|
||||
python wsdd.py ${args}
|
||||
|
||||
|
Loading…
Reference in a new issue