Newer
Older
dhcp2MQTT / Dockerfile
@Osbert Feng Osbert Feng on 27 Sep 2015 516 bytes Dockerize, use DASH_MAC_ADDRESS and URL_CALLBACK
  1. FROM ubuntu
  2. MAINTAINER Osbert Feng
  3.  
  4. USER root
  5. RUN apt-get update -qq && apt-get install -qq -y python-scapy tcpdump tcpreplay wireshark python-requests
  6.  
  7. RUN useradd -m -s /bin/bash amzn-dash
  8. RUN echo amzn-dash:amzn-dash | chpasswd
  9.  
  10. USER root
  11. ADD dash-listen.py /home/amzn-dash/dash-listen.py
  12. CMD python /home/amzn-dash/dash-listen.py
  13.  
  14. # NOTE: To run this, you must link against the host networking stack
  15. # docker run --net=host -e DASH_MAC_ADDRESS=<use-dash-probe> -e URL_CALLBACK=http://url/to/callback dash-listen