12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- FROM docker.infra.flowdat.com/fd3/kea-oss-1.4.0:latest
- COPY keys/ /opt/keys
- COPY inotify.sh /usr/local/etc/kea/inotify.sh
- COPY script.sh /opt/script.sh
- COPY execute.sh /opt/execute.sh
- COPY hooks /opt/hooks
- COPY conf /opt/conf
- COPY supervisord /etc/supervisord
- # C++ LIBRARIES
- RUN chmod +x /opt/execute.sh; \
- 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/*
- ENTRYPOINT ["/opt/execute.sh"]
- HEALTHCHECK --interval=5s --timeout=3s CMD pgrep kea-dhcp4
|