Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.52 KB

README.md

File metadata and controls

50 lines (31 loc) · 1.52 KB

cppcheck-docker

Introduction

Dockerfile to build latest and any tagged version of cppcheck.

Main aims:

  1. Ability to build the most recent version of cppcheck. With this Dockerfile you can build the lastest main branch.

  2. Make the result image as small as possible. This Dockerfile uses alpine linux and removes any unneeded file and strips the resulting cppcheck binary.

  3. Easy to use. Only need to mount a directory to /src to start check.

Usage

Available Multi-Arch Images

CI/CD will automatically build, test and push new images to container registries. Currently, the following registries are supported:

CLI

docker run -v $(pwd):/src neszt/cppcheck-docker

To allow Ctrl + C during cppcheck run use -t docker argument:

docker run -t -v $(pwd):/src neszt/cppcheck-docker

References

Cppcheck manual

Build your own image

Latest:

docker build -t cppcheck .

For Specific version use any tag from cppcheck tags

docker build --build-arg SOURCE_BRANCH=2.2 -t cppcheck .