Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to configure input and output directories #71

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

mcdonnnj
Copy link
Member

🗣 Description

This pull requests adds the ability to configure the input and output directories used by the vdp_scanner.py script. It also updates how the default directory is created in the Docker image configuration.

💭 Motivation and context

Adding the ability to specify these directories is a useful feature but also makes it possible to more easily build on top of this image. As an example you may want to specify the sub-directory of the mounted Docker volume for output while leaving an input file in the root of that directory or even an entirely different mounted volume.

🧪 Testing

Automated testing passes. I verified locally that the new options work both in default and in customized configurations.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated
    to reflect the changes in this PR.
  • All new and existing tests pass.

✅ Pre-merge checklist

  • Finalize version.

✅ Post-merge checklist

  • Create a release.

@mcdonnnj mcdonnnj added the improvement This issue or pull request will add or improve functionality, maintainability, or ease of use label Mar 21, 2023
@mcdonnnj mcdonnnj self-assigned this Mar 21, 2023
@mcdonnnj mcdonnnj force-pushed the improvement/configure_output_directory branch from f16190d to 19cbe39 Compare April 14, 2023 19:23
@mcdonnnj mcdonnnj force-pushed the improvement/configure_output_directory branch from 19cbe39 to 0861aac Compare April 12, 2024 15:28
This allows configuring the output directory path for the
vdp_scanner.py script. The default value for this argument is the
previously hard-coded value to maintain expected functionality.
This allows configuring the input directory path for the vdp_scanner.py
script. The default value for this argument is the previously hard-
coded value to maintain expected functionality.
Add a HOST_MOUNT argument to the Dockerfile to support adjusting the
path for the host mount directory in the image. Rearrange some of the
RUN instructions in the Dockerfile and change the host mount directory
creation to also create any intermediate directories.
@mcdonnnj mcdonnnj force-pushed the improvement/configure_output_directory branch from 0861aac to fdb7eda Compare May 25, 2024 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement This issue or pull request will add or improve functionality, maintainability, or ease of use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants