Created
November 7, 2018 16:27
-
-
Save bolry/59f8af458c13ca321aad527639105428 to your computer and use it in GitHub Desktop.
Make a CppCheck binary for CentOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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