|
@@ -1,39 +1,47 @@
|
|
|
FROM docker.infra.flowdat.com/fd3/kea-oss-1.4.0:latest
|
|
|
|
|
|
-# C++ LIBRARIES
|
|
|
-
|
|
|
-RUN git clone git://github.com/alanxz/rabbitmq-c.git
|
|
|
-RUN apt-get update && apt-get install -yq cmake
|
|
|
-RUN cd rabbitmq-c && mkdir build && cd build && cmake .. && cmake --build .
|
|
|
-RUN cd rabbitmq-c/build && make && make install
|
|
|
-
|
|
|
-RUN git clone https://github.com/akalend/amqpcpp
|
|
|
-RUN cd amqpcpp && make && make install
|
|
|
-
|
|
|
-RUN cp -P /usr/local/lib/x86_64-linux-gnu/librabbitmq.* /usr/local/lib/
|
|
|
-RUN cp amqpcpp/libamqpcpp.a /usr/local/lib/libamqpcpp.a
|
|
|
-RUN cp amqpcpp/libamqpcpp.so /usr/local/lib/libamqpcpp.so
|
|
|
-
|
|
|
-RUN wget -O libzdb-3.1.tar.gz http://www.tildeslash.com/libzdb/dist/libzdb-3.1.tar.gz
|
|
|
-RUN tar xvzf libzdb-3.1.tar.gz
|
|
|
-RUN cd libzdb-3.1 && ./configure --without-postgresql --without-sqlite && make && make install
|
|
|
-
|
|
|
-RUN git clone https://github.com/alanxz/SimpleAmqpClient
|
|
|
-RUN cd SimpleAmqpClient && mkdir simpleamqpclient-build && cd simpleamqpclient-build && cmake .. && make && make install
|
|
|
-
|
|
|
-RUN ldconfig
|
|
|
-
|
|
|
-# FLOWDAT KEA HOOK
|
|
|
-
|
|
|
-RUN mkdir ~/.ssh
|
|
|
-RUN ssh-keyscan -H -p 22 bitbucket.org >> ~/.ssh/known_hosts
|
|
|
COPY keys/ /opt/keys
|
|
|
-RUN chmod 0600 /opt/keys/bitbucket.id_rsa
|
|
|
-
|
|
|
COPY inotify.sh /usr/local/etc/kea/inotify.sh
|
|
|
-
|
|
|
COPY script.sh /opt/script.sh
|
|
|
-RUN chmod +x /opt/script.sh
|
|
|
+
|
|
|
+# C++ LIBRARIES
|
|
|
+RUN git clone git://github.com/alanxz/rabbitmq-c.git; \
|
|
|
+ cd rabbitmq-c; \
|
|
|
+ mkdir build; \
|
|
|
+ cd build; \
|
|
|
+ cmake ..; \
|
|
|
+ cmake --build .; \
|
|
|
+ cd rabbitmq-c/build; \
|
|
|
+ make; \
|
|
|
+ make install; \
|
|
|
+ git clone https://github.com/akalend/amqpcpp; \
|
|
|
+ cd amqpcpp; \
|
|
|
+ make; \
|
|
|
+ make install; \
|
|
|
+ cp -P /usr/local/lib/x86_64-linux-gnu/librabbitmq.* /usr/local/lib/; \
|
|
|
+ cp amqpcpp/libamqpcpp.a /usr/local/lib/libamqpcpp.a; \
|
|
|
+ cp amqpcpp/libamqpcpp.so /usr/local/lib/libamqpcpp.so; \
|
|
|
+ wget -O libzdb-3.1.tar.gz http://www.tildeslash.com/libzdb/dist/libzdb-3.1.tar.gz; \
|
|
|
+ tar xvzf libzdb-3.1.tar.gz; \
|
|
|
+ cd libzdb-3.1; \
|
|
|
+ ./configure --without-postgresql --without-sqlite; \
|
|
|
+ make; \
|
|
|
+ make install; \
|
|
|
+ git clone https://github.com/alanxz/SimpleAmqpClient; \
|
|
|
+ cd SimpleAmqpClient; \
|
|
|
+ mkdir simpleamqpclient-build; \
|
|
|
+ cd simpleamqpclient-build; \
|
|
|
+ cmake ..; \
|
|
|
+ make; \
|
|
|
+ make install; \
|
|
|
+ ldconfig; \
|
|
|
+ mkdir ~/.ssh; \
|
|
|
+ ssh-keyscan -H -p 22 gitlag.com >> ~/.ssh/known_hosts; \
|
|
|
+ ssh-keyscan -H -p 22 bitbucket.org >> ~/.ssh/known_hosts; \
|
|
|
+ chmod 0600 /opt/keys/bitbucket.id_rsa; \
|
|
|
+ chmod +x /opt/script.sh; \
|
|
|
+ rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
CMD /opt/script.sh
|
|
|
+
|
|
|
HEALTHCHECK --interval=5s --timeout=3s CMD pgrep kea-dhcp4
|