Skip to content

Instantly share code, notes, and snippets.

@bolry
Created November 7, 2018 16:27
Show Gist options
  • Save bolry/59f8af458c13ca321aad527639105428 to your computer and use it in GitHub Desktop.
Save bolry/59f8af458c13ca321aad527639105428 to your computer and use it in GitHub Desktop.
Make a CppCheck binary for CentOS
FROM centos:7.5.1804
RUN yum -y update && yum -y install redhat-lsb
RUN yum -y install gcc-c++
RUN yum -y install cmake
WORKDIR /opt/cppcheck
ADD https://github.com/danmar/cppcheck/archive/1.85.tar.gz .
RUN tar xf 1.85.tar.gz
WORKDIR /opt/cppcheck/cppcheck-1.85/build
RUN cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/opt/cppcheckresult ..
RUN make -j$(nproc)
RUN make install
RUN yum -y install man
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment