Creating containers using a Podman image

When creating containers using a Podman image, you must specify the image, license information, and make scan artifacts available to the image:
  • Command

    podman run ... hcl/appscan/source/cli:10.1.0

  • License information

    --env <name=value

    --env-file env.list

  • Scan artifacts

    --volume /data/wa:/data/wa

Using the AppScan® Source CLI Podman image, create containers by executing this command:

> podman run hcl/appscan/source/cli:10.1.0

Podman supports the following optional flags. See the Podman documentation for a detailed discussion of these and additional flags.

Flag Description
--rm Automatically remove the container when it exits
--detach, --d Run container in background and print container ID
--interactive, -i Keep STDIN open even if not attached
--ttv, -t Allocate pseudo-TTY

Examples:

podman run –i --rm \
	    --env AS_LICENSE_INSTANCE=xxxx \
	    --volume /data/wa:/data/wa \
	    hcl/appscan/source/cli:10.1.0    
podman run --env-file env.list --volume /data/wa:/data/wa hcl/appscan/source/cli:10.1.0
Usage notes:
  • The CLI client does not support generating .paf/.ppf files, nor does the CLI running in a container
  • By default, a container opens AppScan® Source CLI shell, in which only supported AppScan® Source CLI commands can be executed.
  • Scanning .NET projects is not supported as the container is made available only on Linux.
Note: As of version 10.3.0, AppScan® Source supports containerization using Podman. Since Docker is not supported in Red Hat Enterprise Linux 8 and 9, use Podman if your host is running RHEL 8 or 9. Podman supports all major Docker commands; replace Docker with Podman in the examples in this topic to create containers and scan in the Podman environment.