build_prometheus_cpp.sh 305 B

12345678910111213
  1. #!/bin/bash -eu
  2. cd /tmp
  3. git clone --recursive --depth 1 --shallow-submodules \
  4. https://github.com/jupp0r/prometheus-cpp
  5. mkdir prometheus-cpp/build
  6. cd prometheus-cpp/build
  7. cmake .. \
  8. -DCMAKE_INSTALL_PREFIX=/usr/local \
  9. -DCMAKE_BUILD_TYPE=Release \
  10. -DENABLE_TESTING=0
  11. make -j$(nproc)
  12. sudo make install