Skip to content

Latest commit

 

History

History
104 lines (67 loc) · 1.75 KB

INSTALL.md

File metadata and controls

104 lines (67 loc) · 1.75 KB

📝 Installation for GCP Scanner

Install basic dependencies

Linux is the preferred operating system to use while contributing to GCP Scanner. If you're using Windows, we recommend setting up Windows Subsystem for Linux.

  • Have python installed on your system. Check out this link to download.
  • have git installed on your system.

Steps to follow to setup gcp-scanner

To install the package

Install the package using pip

pip install gcp-scanner

Check if installation was done correctly

gcp-scanner --help

Build from source

  1. Open the Terminal & Clone the project using

    git clone https://github.com/google/gcp_scanner.git
  2. Then,

    cd gcp_scanner
  3. Create a Virtual Environment to install all your dependencies with

    • on linux or wsl:
    python3 -m venv venv
    • on windows:
    python -m venv venv
    • on MacOS :
    python3 -m venv venv
  4. Activate the Virtual Environment with

    • on linux or wsl:
    source venv/bin/activate
    • on windows:
    .\venv\Scripts\activate.bat
    • on MacOS:
    source venv/bin/activate
  5. Install all dependencies using

    pip install -r requirements.txt
  6. Install the tool in your local machine

    pip install .
  7. Run to check if the tool was installed correctly

    gcp-scanner --help

Build using docker

There is a docker build file if you want to run the scanner from a container:

docker build -f Dockerfile -t sa_scanner .