Sign inSign up

cisagov/pca-report-library

By cisagov

•Updated almost 5 years ago

Image
0

2.3K

cisagov/pca-report-library repository overview

⁠pca-report-generator-docker

GitHub Build Status CodeQL Known Vulnerabilities

⁠Docker Image

Docker Pulls Docker Image Size (latest by date) Platforms

This is a Docker project that containerizes the pca-report-library⁠ package, which can be used to generate Phishing Campaign Assessment (PCA) reports.

⁠Running

The following Docker commands are available.

An alias can also be set beforehand to remove redundancy.

pca-report-generator - Creates a PCA report as a PDF

docker run -v $(pwd):/home/cisa cisagov/pca-report-generator pca-report-generator

pca-report-templates - Exports the Report Mustache template and Manual data file template

docker run -v $(pwd):/home/cisa cisagov/pca-report-generator pca-report-templates

pca-report-compiler - Compiles a PCA LaTeX report file, still in development.

docker run -v $(pwd):/home/cisa cisagov/pca-report-generator pca-report-compiler

pca-report-generator-bash - Starts up a bash shell in the container

docker run -v $(pwd):/home/cisa cisagov/pca-report-generator pca-report-generator-bash
⁠Running with Docker Compose
  1. Create a docker-compose.yml file similar to the one below to use Docker Compose⁠.

    ---
    version: "3.7"
    
    services:
      pca-report-library:
        image: cisagov/pca-report-library:0.0.1
        volumes:
          - type: bind
            source: <your_log_dir>
            target: /home/cisa
    
  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/pca-report-library:0.0.1
    
  3. Recreate and run the container by following the previous instructions⁠.

⁠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.0.1).

Image:tagDescription
cisagov/pca-report-library:0.0.1An exact release version.
cisagov/pca-report-library:0.0The most recent release matching the major and minor version numbers.
cisagov/pca-report-library:0The most recent release matching the major version number.
cisagov/pca-report-library:edgeThe most recent image built from a merge into the develop branch of this repository.
cisagov/pca-report-library:nightlyA nightly build of the develop branch of this repository.
cisagov/pca-report-library: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

There are no volumes for this container.

⁠Ports

There are no ports exposed by this container.

⁠Environment variables

⁠Optional
NamePurposeDefault
CISA_HOMESets up as the working directory./home/cisa
PCA_REPORT_TOOLS_SRCSet as the directory for the pca-report-library codebase./usr/src/pca-report-tools

⁠Secrets

There are no secrets for this container.

⁠Building from source

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

docker build \
  --build-arg VERSION=0.0.1 \
  --tag cisagov/pca-report-library:0.0.1 \
  https://github.com/cisagov/pca-report-library.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/pca-report-library.git
    cd example
    
  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 \
      --build-arg VERSION=0.0.1 \
      --output type=docker \
      --tag cisagov/pca-report-library:0.0.1 .
    

⁠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

Size

647.3 MB

Last updated

almost 5 years ago

docker pull cisagov/pca-report-library:sha-64810e12