Use the -rm option to clean up the container once it exits. Do this in place of providing the property, as you would when running Synopsys Detect via the script or jar. You may also use the -v option to create a bind mount that will link a provided path to an output directory on your host to the /output directory within the container.
Use the -v option to create a bind mount that will link a provided path to project source on your host to the /source directory within the container. Use the -it options to view logs during the container run. To run a container built from a Synopsys Detect image, use the Docker CLI's docker run command. Synopsys Detect publishes Docker images which can be used to run Detect from within a Docker container. Running Synopsys Detect from within a Docker container
#SYNOPSYS COM DOWNLOAD#
Use the following command to download and run the latest version of Synopsys Detect:įor specific types of projects, Synopsys Detect automatically downloads one or more inspectors as needed. On Linux or Mac, execute the Synopsys Detect script (detect7.sh, which is a Bash script) from Bash.
#SYNOPSYS COM HOW TO#
Information about how to configure the scripts is in the Shell script configuration. The Synopsys Detect version to download/run by default, the latest version. Several aspects of script functionality can be configured, including: The primary function of the Synopsys Detect scripts is to download and execute the Synopsys Detect.
#SYNOPSYS COM UPDATE#
The primary reason to run Synopsys Detect from within a Docker container is to take advantage of the benefits of Docker containers, which include standardized run environment configuration Synopsys Detect does not automatically update in this scenario. jar directly is that this method provides direct control over the exact Synopsys Detect version Synopsys Detect does not automatically update in this scenario. The primary reason to run the Synopsys Detect. To run Synopsys Detect 6 instead, simply substitute detect.sh for detect7.sh, or detect.ps1 for detect7.ps1. Instructions and examples in this documentation that reference the scripts assume you are running Synopsys Detect 7, so refer to detect7.sh or detect7.ps1. Each script limits itself to a specific Synopsys Detect major version (for example, 7.y.z, or 6.y.z), unless you override this default behavior. When you run Synopsys Detect via one of the provided scripts, you automatically pick up fixes and new features as they are released. jar file within a specific major version downloading it for you if necessary. By default, they always run the latest version of the Synopsys Detect. The primary reason to run one of the Synopsys Detect scripts is that the scripts have an auto-update feature. Run Synopsys Detect within a Docker container. There are three ways to run Synopsys Detect: Results from buildless mode may be less accurate than results from build mode. In buildless mode, there is no requirement that Synopsys Detect must run as a post-build step. In buildless mode, Synopsys Detect makes its best effort to discover dependencies without the benefit of build artifacts or build tools. Building your project prior to running Synopsys Detect is often required for the detector to run successfully, and helps ensure that the build artifacts are available for signature scanning. In build mode, which is the default, Synopsys Detect should be executed as a post-build step in the build environment of the project.
View Detect Properties Positioning Synopsys Detect in the build processĬhoose a build mode or a buildless mode. When that property is not set, Synopsys Detect assumes the current working directory is the project directory. If you are not running Synopsys Detect from the project directory, provide the project directory using the source path property. You can run Synopsys Detect from any directory. What tools and detectors do you want to include or exclude?ĭo you want to run Detect offline, or connected to Black Duck?
jar file this affects which version is run.
In which directory do you want to run Detect?ĭo you want to run Detect before you build or after?ĭo you want to run Detect as a script or a. Deciding how to use Detectīefore you download and run Detect, you need to make the following decisions: This page describes downloading and running Synopsys Detect.