Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

CLI Container as execution platform

glechev edited this page Jun 30, 2021 · 1 revision

CLI Container as execution platform

An example redistributable image of vRealize Automation Content Generator can be build from this Dockerfile.

  1. Build vRealize Automation Content Generator - mvn clean install -DskipTests
  2. Build the Docker image - docker build --tag vra-cg .
  3. Usage:
docker run --rm vra-cg -h
Unknown option: '-h'
Usage: <main class> [--filter=<filter>] [-i=INSTANCE] [-l=INSTANCE]
                    [-p=PASSWORD] [--path=<path>] [-t=TOKEN] [-u=USERNAME]
      --filter=<filter>     Regex to filter the specs from other files
  -i, --instance=INSTANCE   On-prem or cloud instance
  -l, --login-instance=INSTANCE
                            Csp or VIDM instance
  -p, --password=PASSWORD   Password when using u/p for login
      --path=<path>         Path to file or directory containing the specs
  -t, --refresh-token=TOKEN Csp or VIDM instance
  -u, --username=USERNAME   Username when using u/p for login


docker run --rm -v <your-sources>:/resources vra-cg -i <instance> -l <login instace> -u <username> -p <password>

This container can be also used as a base to pack your content sources inside it.