Dockerfile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. FROM docker.infra.flowdat.com/fd3/kea-oss-1.4.0:latest
  2. COPY keys/ /opt/keys
  3. COPY inotify.sh /usr/local/etc/kea/inotify.sh
  4. COPY script.sh /opt/script.sh
  5. # C++ LIBRARIES
  6. RUN git clone git://github.com/alanxz/rabbitmq-c.git; \
  7. cd rabbitmq-c; \
  8. mkdir build; \
  9. cd build; \
  10. cmake ..; \
  11. cmake --build .; \
  12. cd rabbitmq-c/build; \
  13. make; \
  14. make install; \
  15. git clone https://github.com/akalend/amqpcpp; \
  16. cd amqpcpp; \
  17. make; \
  18. make install; \
  19. cp -P /usr/local/lib/x86_64-linux-gnu/librabbitmq.* /usr/local/lib/; \
  20. cp amqpcpp/libamqpcpp.a /usr/local/lib/libamqpcpp.a; \
  21. cp amqpcpp/libamqpcpp.so /usr/local/lib/libamqpcpp.so; \
  22. wget -O libzdb-3.1.tar.gz http://www.tildeslash.com/libzdb/dist/libzdb-3.1.tar.gz; \
  23. tar xvzf libzdb-3.1.tar.gz; \
  24. cd libzdb-3.1; \
  25. ./configure --without-postgresql --without-sqlite; \
  26. make; \
  27. make install; \
  28. git clone https://github.com/alanxz/SimpleAmqpClient; \
  29. cd SimpleAmqpClient; \
  30. mkdir simpleamqpclient-build; \
  31. cd simpleamqpclient-build; \
  32. cmake ..; \
  33. make; \
  34. make install; \
  35. ldconfig; \
  36. mkdir ~/.ssh; \
  37. ssh-keyscan -H -p 22 gitlag.com >> ~/.ssh/known_hosts; \
  38. ssh-keyscan -H -p 22 bitbucket.org >> ~/.ssh/known_hosts; \
  39. chmod 0600 /opt/keys/bitbucket.id_rsa; \
  40. chmod +x /opt/script.sh
  41. CMD /opt/script.sh
  42. HEALTHCHECK --interval=5s --timeout=3s CMD pgrep kea-dhcp4