Dockerfile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. FROM docker.infra.flowdat.com/fd3/kea-oss-1.3.0:latest
  2. # C++ LIBRARIES
  3. RUN apt-get update && apt-get install -yq cmake
  4. RUN git clone git://github.com/alanxz/rabbitmq-c.git
  5. RUN cd rabbitmq-c && mkdir build && cd build && cmake .. && cmake --build .
  6. RUN cd rabbitmq-c/build && make && make install
  7. RUN git clone https://github.com/akalend/amqpcpp
  8. RUN cd amqpcpp && make && make install
  9. RUN cp -P /usr/local/lib/x86_64-linux-gnu/librabbitmq.* /usr/local/lib/
  10. RUN cp amqpcpp/libamqpcpp.a /usr/local/lib/libamqpcpp.a
  11. RUN cp amqpcpp/libamqpcpp.so /usr/local/lib/libamqpcpp.so
  12. RUN wget -O libzdb-3.1.tar.gz http://www.tildeslash.com/libzdb/dist/libzdb-3.1.tar.gz
  13. RUN tar xvzf libzdb-3.1.tar.gz
  14. RUN cd libzdb-3.1 && ./configure --without-postgresql --without-sqlite && make && make install
  15. RUN ldconfig
  16. # FLOWDAT KEA HOOK
  17. RUN mkdir ~/.ssh
  18. RUN ssh-keyscan -H -p 22 bitbucket.org >> ~/.ssh/known_hosts
  19. COPY keys/ /opt/keys
  20. RUN chmod 0600 /opt/keys/bitbucket.id_rsa
  21. RUN eval $(ssh-agent) && ssh-add /opt/keys/bitbucket.id_rsa && git clone git@bitbucket.org:ikflowdat/kea-cm-hook.git
  22. RUN cd kea-cm-hook && make
  23. COPY script.sh /opt/script.sh
  24. RUN chmod +x /opt/script.sh
  25. CMD /opt/script.sh