|
@@ -3,11 +3,13 @@ FROM docker.infra.flowdat.com/fd3/kea-oss-1.4.0:latest
|
|
COPY keys/ /opt/keys
|
|
COPY keys/ /opt/keys
|
|
COPY inotify.sh /usr/local/etc/kea/inotify.sh
|
|
COPY inotify.sh /usr/local/etc/kea/inotify.sh
|
|
COPY script.sh /opt/script.sh
|
|
COPY script.sh /opt/script.sh
|
|
|
|
+COPY execute.sh /opt/execute.sh
|
|
COPY hooks /opt/hooks
|
|
COPY hooks /opt/hooks
|
|
COPY supervisord /etc/supervisord
|
|
COPY supervisord /etc/supervisord
|
|
|
|
|
|
# C++ LIBRARIES
|
|
# C++ LIBRARIES
|
|
-RUN git clone git://github.com/alanxz/rabbitmq-c.git; \
|
|
|
|
|
|
+RUN chmod +x /opt/execute.sh; \
|
|
|
|
+ git clone git://github.com/alanxz/rabbitmq-c.git; \
|
|
cd rabbitmq-c; \
|
|
cd rabbitmq-c; \
|
|
mkdir build; \
|
|
mkdir build; \
|
|
cd build; \
|
|
cd build; \
|
|
@@ -44,6 +46,6 @@ RUN git clone git://github.com/alanxz/rabbitmq-c.git; \
|
|
chmod +x /opt/script.sh; \
|
|
chmod +x /opt/script.sh; \
|
|
rm -rf /var/lib/apt/lists/*
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
-CMD /opt/script.sh
|
|
|
|
|
|
+ENTRYPOINT ["/opt/execute.sh"]
|
|
|
|
|
|
HEALTHCHECK --interval=5s --timeout=3s CMD pgrep kea-dhcp4
|
|
HEALTHCHECK --interval=5s --timeout=3s CMD pgrep kea-dhcp4
|