Public Repository

Last pushed: 3 months ago
Short Description
Klocwork C/C++, Java and C# Static Analysis for Quality and Security
Full Description

EMENDA Dockerfile for Klocwork

This repository gives you Dockerfiles for Klocwork Server(static analysis tools for C/C++, Java, C# for quality and security) to help you in the deployment of your Klocwork environment.

What is Klocwork?

The Klocwork analysis engine is the culmination of over 15 years of static analysis research. At the core of its technology is the ability to monitor the lifecycles of objects and infer their run time behaviour without executing the code. This allows a broad range of quality, reliability, security, and maintainability issues to be identified, with high accuracy.

Quick reference

Where to get help

Supported architecture:

amd64

How to use images?

Prerequisites

  • Have administrative rights
  • Have an available internet connexion
  • Download Docker from official website and install it by following the instructions

Configure the Docker file

  • Download your dockerfile for your favorite environment
  • Edit the dockerfile with your favorite editor and update
    • KW database port
    • KW server port (to access server with the browser)
    • KW license port (server license port)
    • KW installer path (server install directory)
    • KW project root (path of your project root)
    • KW installer path (path of the installer archive)
    • KW license file (path of your license file)

Example: (update bold values in Dockerfile)

ARG DATABASE_PORT=3123
ARG KW_PORT=8123
ARG LICENSE_PORT=27000
ARG INSTALLER_PATH=/opt/Klocwork
ARG INSTALL_DIRECTORY=/opt/Klocwork/Server
ARG PROJECTS_ROOT=/opt/Klocwork/Projects_root_12_3
ARG INSTALLER_FILE=http://emenda.com/download.?file=kw-server-installer.latest.tar.gz
ARG LICENSE_FILE=/license_path/LICENSE.lic

How to run it?

  • Start Docker service: sudo service docker start
  • If you use the image from DockerHub ignore this step go to next step directly

    • Compile the Dockerfile docker build -t[Name of your docker image] [path of the docker file]

      Example

    docker build -t Ubuntu\_KW12\_3\_server\_docker .
    Sending build context to Docker daemon
    Step 0 : FROM debian:unbuntu
    ---> bf84c1d84a8f
    Step 1 : RUN apt-get -y update
    ...
    Removing intermediate container 9522c6b9bf95
    Successfully built aaf20fb25dac
  • If you use directly image from the DockerHub Website (link)

    1. Pull the image from Docker Hub docker pull emenda klocwork
    2. Run the image docker run -d --name[contener name]-p[local computer port]:[container port] [Name of your docker image]

      Example

      docker run -d --name KW_server_12_3 -p 8123:8123 Ubuntu_KW12_3_server_docker
      e9ca3cd8f90b8554ca99ec8ba15a039f827005bd8fecbf80d72ce7267006a6df

  • Run the image docker run -d --name[contener name]-p[local computer port]:[container port] [Name of your docker image]

    Example

    docker run -d --name KW\_server\_12\_3 -p 8123:8123 Ubuntu\_KW12\_3\_server\_docker`
    e9ca3cd8f90b8554ca99ec8ba15a039f827005bd8fecbf80d72ce7267006a6df
  • Optional

    • Stop the docker docker stop[Name of your docker image]

      Example

        docker stop Ubuntu\_KW12\_3\_server\_docker
      
    • Delete the docker docker rm[Name of your docker image]

      Example

        docker rm Ubuntu\_KW12\_3\_server\_docker
      

Authors

  • Ludovic Ponsolle - Initial work - Emenda

Need helps to customize your Docker

Don't hesitate to contact directly Emenda if you need help to customize your Klocwork Docker image or to start your continuous integration process.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Docker Pull Command
Owner
emenda