Sign inSign up

cisagov/vdp-scanner

By cisagov

•Updated about 1 year ago

Docker image to run VDP scanning.

Image
1

10K+

cisagov/vdp-scanner repository overview

⁠vdp-scanner-docker 🔍📄

GitHub Build Status CodeQL Known Vulnerabilities

⁠Docker Image

Docker Pulls Docker Image Size (latest by date) Platforms

This is a Docker project to scan either the GSA current Federal .gov domain list⁠ or a given CSV in the same format with the cisagov/hash-http-content⁠ Python library. Then it will output CSVs with agency and domain level results.

⁠Running

⁠Running with Docker

To run the cisagov/vdp-scanner image via Docker:

docker run cisagov/vdp-scanner:0.2.0-dev.8
⁠Running with Docker Compose
  1. Create a compose.yml file similar to the one below to use Docker Compose⁠.

    ---
    name: vdp-scanner
    
    services:
      vdp-scanner:
        image: cisagov/vdp-scanner:0.2.0-dev.8
        volumes:
          - .:/task/host_mount
    
  2. Start the container and detach:

    docker compose up --detach
    

⁠Updating your container

⁠Docker Compose
  1. Pull the new image from Docker Hub:

    docker compose pull
    
  2. Recreate the running container by following the previous instructions⁠:

    docker compose up --detach
    
⁠Docker
  1. Stop the running container:

    docker stop <container_id>
    
  2. Pull the new image:

    docker pull cisagov/vdp-scanner:0.2.0-dev.8
    
  3. Recreate and run the container by following the previous instructions⁠.

⁠Updating Python dependencies

This image uses Pipenv⁠ to manage Python dependencies using a Pipfile⁠. Both updating dependencies and changing the Pipenv⁠ configuration in src/Pipfile will result in a modified src/Pipfile.lock file that should be committed to the repository.

Warning

The `src/Pipfile.lock` as generated will fail `pre-commit` checks due to JSON formatting.
⁠Updating dependencies

If you want to update existing dependencies you would run the following command in the src/ subdirectory:

pipenv lock
⁠Modifying dependencies

If you want to add or remove dependencies you would update the src/Pipfile file and then update dependencies as you would above.

Note

You should only specify packages that are direct requirements of your Docker configuration. Allow [Pipenv] to manage the dependencies of the specified packages.

⁠Image tags

The images of this container are tagged with semantic versions⁠ of the underlying example project that they containerize. It is recommended that most users use a version tag (e.g. :0.2.0-dev.8).

Image:tagDescription
cisagov/vdp-scanner:0.2.0-dev.8An exact release version.
cisagov/vdp-scanner:0.2The most recent release matching the major and minor version numbers.
cisagov/vdp-scanner:0The most recent release matching the major version number.
cisagov/vdp-scanner:edgeThe most recent image built from a merge into the develop branch of this repository.
cisagov/vdp-scanner:nightlyA nightly build of the develop branch of this repository.
cisagov/vdp-scanner:latestThe most recent release image pushed to a container registry. Pulling an image using the :latest tag should be avoided.⁠

See the tags tab⁠ on Docker Hub for a list of all the supported tags.

⁠Volumes

Mount pointPurpose
/task/host_mountOutput directory.

⁠Ports

There are no exposed ports.

⁠Environment variables

⁠Required

There are no required environment variables.

⁠Optional

There are no optional environment variables.

⁠Secrets

There are no secrets.

⁠Building from source

Build the image locally using this git repository as the build context⁠:

docker build \
  --tag cisagov/vdp-scanner:0.2.0-dev.8 \
  https://github.com/cisagov/vdp-scanner-docker.git#develop

⁠Cross-platform builds

To create images that are compatible with other platforms, you can use the buildx⁠ feature of Docker:

  1. Copy the project to your machine using the Code button above or the command line:

    git clone https://github.com/cisagov/vdp-scanner-docker.git
    cd vdp-scanner-docker
    
  2. Create the Dockerfile-x file with buildx platform support:

    ./buildx-dockerfile.sh
    
  3. Build the image using buildx:

    docker buildx build \
      --file Dockerfile-x \
      --platform linux/amd64 \
      --output type=docker \
      --tag cisagov/vdp-scanner:0.2.0-dev.8 .
    

⁠Contributing

We welcome contributions! Please see CONTRIBUTING.md⁠ for details.

⁠License

This project is in the worldwide public domain⁠.

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication⁠.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

Tag summary

Content type

Image

Digest

sha256:6e51811f0…

Size

326.3 MB

Last updated

about 1 year ago

docker pull cisagov/vdp-scanner:sha-1b7a689