12345678910111213141516171819202122232425262728293031323334353637 |
- FROM docker.infra.flowdat.com/fd3/kea-oss-1.3.0:latest
- # C++ LIBRARIES
- RUN apt-get update && apt-get install -yq cmake
- RUN git clone git://github.com/alanxz/rabbitmq-c.git
- 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 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
- RUN eval $(ssh-agent) && ssh-add /opt/keys/bitbucket.id_rsa && git clone git@bitbucket.org:ikflowdat/kea-cm-hook.git
- RUN cd kea-cm-hook && make
- COPY script.sh /opt/script.sh
- RUN chmod +x /opt/script.sh
- CMD /opt/script.sh
|