Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.
/ powercli Public archive

This PowerCLI container image is smaller than the official VMware image

License

Notifications You must be signed in to change notification settings

tnk4on/powercli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Powercli: Container Image

Current Version: PowerShell:v7.2.0

Dowonload ---> [Quay.io: tnk4on/powercli on Quay.io] or [Docker.io]

English / Japanese

  • This repository assumes the use of Podman and Buildah. If you are using Docker, please read as appropriate.

Description

  • PowerCLI: A multi-platform scripting language to manage your VMware infrastructure on any OS.

Reference

About container images

There are four types of container images depending on how they are built

  • tnk4on/powercli:latest,mcr-alpine-3.14 -> Base Image:mcr.microsoft.com/powershell:mcr-alpine-3.14
  • tnk4on/powercli:ubi8-minimal -> Base Image:ubi8-minimal:latest
  • tnk4on/powercli:alpine-scratch -> Base Image:alpine:3.14
  • tnk4on/powercli:photon -> Base Image:photon:4.0

Features

  • Image size smaller than official VMware image(vmware/powerclicore)
  • PowerCLI-Example-Scripts are not included
  • POWERSHELL_TELEMETRY_OPTOUT is set to true

How to use

$ podman run --rm -it tnk4on/powercli

Note: CMD is set to pwsh command. You can override the execution command by specifying the command as an argument.

How to build a container image

$ git clone https://github.com/tnk4on/powercli
$ cd powercli/Containerfile.d
$ TYPE=mcr-alpine
$ buildah bud -t tnk4on/powercli -f Containerfile.${TYPE}

Note: TYPE is the name you want to build with (e.g. alpine-scratch)

  • TYPE
    • alpine-scratch
    • mcr-alpine
    • photon
    • ubi8-minimal