FROM centos
# install basic tools
WORKDIR /root

ADD daemon /root/daemon
RUN curl https://bootstrap.pypa.io/get-pip.py | python
RUN cd daemon
RUN pip install -r daemon/requirements.txt
RUN yum -y install git make
RUN git clone https://github.com/cwen0/wondershaper.git
RUN make -C wondershaper install

WORKDIR /root/daemon
CMD ["/usr/bin/python", "agent.py"]

