Skip to content

Latest commit

 

History

History

container_analysis

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Google
Cloud Platform logo

Google Cloud Container Analysis Samples

Container Analysis scans container images stored in Container Registry for vulnerabilities. Continuous automated analysis of containers keep you informed about known vulnerabilities so that you can review and address issues before deployment.

Additionally, third-party metadata providers can use Container Analysis to store and retrieve additional metadata for their customers' images, such as packages installed in an image.

Description

These samples show how to use the Google Cloud Container Analysis Client Library.

Build and Run

  1. Enable APIs

  2. Install and Initialize Cloud SDK

  3. Authenticate with GCP

  4. Clone the repo and cd into this directory

    git clone https://github.com/GoogleCloudPlatform/python-docs-samples
    cd python-docs-samples
    
  5. Set Environment Variables

    export GCLOUD_PROJECT="YOUR_PROJECT_ID"
    
  6. Run Tests

    nox -s "py36(sample='./container_registry/container_analysis')"
    

Contributing changes

Licensing