Skip to content
Snippets Groups Projects
  • Nicolas "Pixel" Noble's avatar
    b8b3e01c
    Adding Dockerfile for grpc/scan-build. · b8b3e01c
    Nicolas "Pixel" Noble authored
    This can be simply used that way:
    
      docker run -p 8182:8181 grpc/scan-build
    
    This will grab grpc's latest github code, compile it through clang's scan-build tool (http://clang-analyzer.llvm.org/scan-build.html) and output the result on stdout. This will also start an HTTP server on port 8182 on your machine, displaying the report nicely.
    As a nice side-effect, this will also produce scan reports for openssl and protobuf.
    
    The server can be then stopped this way:
    
      docker ps -l # figure out the container-id
      docker kill container-id
    b8b3e01c
    History
    Adding Dockerfile for grpc/scan-build.
    Nicolas "Pixel" Noble authored
    This can be simply used that way:
    
      docker run -p 8182:8181 grpc/scan-build
    
    This will grab grpc's latest github code, compile it through clang's scan-build tool (http://clang-analyzer.llvm.org/scan-build.html) and output the result on stdout. This will also start an HTTP server on port 8182 on your machine, displaying the report nicely.
    As a nice side-effect, this will also produce scan reports for openssl and protobuf.
    
    The server can be then stopped this way:
    
      docker ps -l # figure out the container-id
      docker kill container-id