123456789101112131415161718192021222324252627 |
- FROM ubuntu:16.04
- RUN apt-get update && apt-get install -yq git vim build-essential dhcping
- RUN apt-get update && apt-get install -yq dh-autoreconf automake
- RUN apt-get update && apt-get install -yq libssl-dev liblog4cplus-dev libboost-dev libmysqlclient-dev libboost-all-dev mysql-client wget python-pip supervisor cmake
- RUN pip install superfsmon
- RUN wget -O kea-1.4.0-P1.tar.gz https://www.isc.org/downloads/file/kea-1-4-0-p1/?version=tar-gz
- RUN tar -zxvf kea-1.4.0-P1.tar.gz
- RUN mv kea-1.4.0-P1 /opt/kea
- RUN cd /opt/kea && autoreconf --install && ./configure --with-dhcp-mysql --enable-shell && make && make install && ldconfig
- EXPOSE 67/udp
- EXPOSE 68/udp
- ENV KEA_MSG_COMPILER=/usr/local/bin/kea-msg-compiler
- ENV KEA_LIB=/opt/kea/src/lib
- ENV KEA_INCLUDE=/opt/kea/src/lib
- COPY script.sh /opt/script.sh
- RUN chmod +x /opt/script.sh
- CMD /opt/script.sh
- HEALTHCHECK --interval=5s --timeout=3s CMD pgrep kea-dhcp4
|