Skip to content

Instantly share code, notes, and snippets.

@gjasny
Created March 20, 2020 09:52
Show Gist options
  • Save gjasny/88fe73d3ded20c4c0f6f686f0b0193cc to your computer and use it in GitHub Desktop.
Save gjasny/88fe73d3ded20c4c0f6f686f0b0193cc to your computer and use it in GitHub Desktop.
Debug link issue in prometheus-cpp c06e0ef4e46a4770faa10210d41974df1fa12941
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y build-essential git libssl-dev libcurl4-openssl-dev curl tar zlib1g-dev
RUN curl -SLO https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz
RUN tar zxvf cmake-3.12.3-Linux-x86_64.tar.gz
RUN git clone https://github.com/jupp0r/prometheus-cpp.git
RUN cd prometheus-cpp && git submodule update --init
RUN mkdir _build
WORKDIR _build
RUN ../cmake-3.12.3-Linux-x86_64/bin/cmake -DBUILD_SHARED_LIBS=OFF -DENABLE_TESTING=OFF -DTHIRDPARTY_CIVETWEB_WITH_SSL=ON ../prometheus-cpp
RUN ../cmake-3.12.3-Linux-x86_64/bin/cmake --build . -- -j4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment