Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Run Vester in Docker Container #206

@jeffg-dev

Description

@jeffg-dev

There are about three issues with running Vester in a Docker container:

  1. The VMware PowerCLI Core container doesn't appear to properly load Pester
  2. Vester uses hard-coded "" path delimiters, which causes powershell core to fail on mixed paths
  3. PowerCLI Core doesn't support VMware.VumAutomation

I've addressed these three issues in the following ways:

  1. Pester: Created a container based on Microsoft's PowerShell container plus VMware PowerCLI: https://hub.docker.com/r/jeffgreenca/mspowercli/ that can load Pester
  2. Tweaked Vester code to intelligently handle platform-specific path delimiters
  3. Disabled explicit loading of the VMware.VumAutomation module

The code changes are available in my working branch https://github.com/jeffgreenca/vester/tree/feature/dockerized.

Why?!

This approach keeps Vester and its dependencies happily in their Docker container, making it easy for me to run this as part of a Jenkins pipeline.

What about a pull request?

Since I am actually using my working dockerized branch, I pulled in a handful of additional tests that have yet to be merged to this main repository. I figure it would make sense to resolve those first, then the PR should only include dockerizing specific changes. But if there is a better way, let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions