Skip to content

Scanning with the CodeLogic Java Agent (Docker)

The CodeLogicJava Agent for Docker provides an easy way to integrate CodeLogic scanning into your build process.

  1. Generate the Docker Image
  2. Run the Docker Image
  3. View Scan Results

Generate the Docker Command

  • Click Store from the left hand menu.

    DockerAgents.png

  • Locate the Java Agent Docker Image tile and click Generate.

  • Enter your CodeLogic Server IP address or hostname.
  • Enter the directory path to be scanned in the field provided.
  • Click Next.
  • Copy your code snippet from the Success! window.

Run the Docker Image

Tip

You can copy and paste the code snippet directly into your Jenkins file.

Only analyze an application

analyze -a yourApp -t ARCHIVE -p /locationToYourApp/app.jar

analyze an application with a relational database

analyze -a yourApp -d jdbc:postgresql://localhost:5432/sampledb -t ARCHIVE -p /locationToYourApp/app.jar

For more information, see Binary Scanning via Command Line (Java).

View Scan Results

  • Select the Search tab.
  • Expand the application to view items and their dependencies.