Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): create docker provider (#462)
* feat(docker): Add config for Docker provider * feat(docker): Add Docker client constructor * feat(docker): Implement Discoverer interface for Docker provider * feat(docker): connect the new docker provider to the rest of the code * feat(docker): Refactor discover targets * feat(docker): add container and image support to target table * feat(docker): Create volume with the target container's filesystem * feat(docker): Create volume with the target image's filesystem * feat(docker): remove scanconfig.yaml file * feat(docker): implement getScanConfigFileName function * feat(docker): start scanner container part 1 * feat(docker): set vmclarity rest backend address to host.docker.internal * feat(docker): Fix docker client constructor * feat(docker): Fix flag in scan container script * fix(docker): scanner cli config marshalling * feat(docker): Skip volume mount if volume already mounted * feat(docker): Check if config file and scan container are already created before creation * feat(docker): Clean up and code review changes * feat: improve concurrency model for docker asset discovery Signed-off-by: Ramiz Polic <ramiz.polic@hotmail.com> * feat: standardize docker asset discovery Signed-off-by: Ramiz Polic <ramiz.polic@hotmail.com> * feat(docker): Create new bridge network to run scan container * feat(docker): Code review changes * feat(docker): Code review changes * refactor(docker): break down entrypoint script, add comment to docker image pull * Fix asset type switch case * feat(docker): Add volume mount point as input in family configuration * refactor(docker): remove docker config * feat(docker): Clean up and remove container location * feat(docker): Fix verification errors * feat: simplify docker provider flow Signed-off-by: Ramiz Polic <ramiz.polic@hotmail.com> * feat(docker): Code review changes * feat(docker): Fix CI verification * feat(docker): network changes for scanner container * feat(docker): fix create volume success return * feat(docker): change yaml package to fix families config marshalling * refactor(docker): parse constants with viper * refactor(docker): move default values to constants * fix(docker): format with gofumpt --------- Signed-off-by: Ramiz Polic <ramiz.polic@hotmail.com> Co-authored-by: Catarina Paralta <anacatarinaparalta@gmail.com> Co-authored-by: Ramiz Polic <ramiz.polic@hotmail.com> Co-authored-by: Catarina Paralta <46568597+paralta@users.noreply.github.com>
- Loading branch information