Public Repository

Last pushed: a year ago
Short Description
vSphere SDK for Perl 5.5
Full Description

vSphere SDK for Perl

Installed on Ubuntu 12.04 according to http://pubs.vmware.com/vsphere-51/index.jsp#com.vmware.sdk.doc/GUID-2F1B2F72-92F1-442C-8283-CF5736392DEA.html

By default it runs esxcli

$ docker run vulk/esxcli --version
Script 'esxcli' version: 5.5.0
$ docker run vulk/esxcli --username=${VI_USERNAME} \
                                      --password=${VI_PASSWORD} \
                                      --server=1.1.1.1 \
                                      --vihost=1.1.1.2 \
                                      system version get
   Product: VMware ESXi
   Version: 5.5.0
   Build: Releasebuild-1331820
   Update: 0

Dockerfile

FROM ubuntu:12.04.5

# Some Environment Variables
ENV HOME /root
ENV DEBIAN_FRONTEND noninteractive

# # Ensure UTF-8 lang and locale
RUN locale-gen en_US.UTF-8
ENV LANG       en_US.UTF-8
ENV LC_ALL     en_US.UTF-8

# Initial update and install of dependency that can add apt-repos
RUN apt-get -y update && apt-get install -y software-properties-common python-software-properties

# Add universe to get vmware-manager and friends
RUN add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu precise multiverse" && apt-get update && apt-get -y upgrade

# CPAN modules from http://pubs.vmware.com/vsphere-55/index.jsp#com.vmware.perlsdk.install.doc/cli_install.3.3.html
# and vmware-manager / other deps
RUN apt-get install -y vmware-manager lib32ncurses5 lib32z1 lib32tinfo5 build-essential gcc uuid uuid-dev perl libssl-dev perl-doc liburi-perl libxml-libxml-perl libcrypt-ssleay-perl libcrypt-ssleay-perl libio-compress-perl libcompress-raw-zlib-perl libarchive-zip-perl data-dumper libdata-dumper-concise-perl libxml-libxml-perl libwww-perl liblwp-protocol-https-perl libxml-namespace-perl libxml-sax-perl liburi-perl libuuid-perl libsoap-lite-perl libhtml-parser-perl libperl-version-perl libversion-perl libclass-methodmaker-perl liblwp-useragent-determined-perl lib32gcc1

# We needed lsmod and ping for the install script to run
# #lsmod => kmod (16.04) module-init-tools (12.04)
# #ping => inetutils-ping (16.04) iputils-ping (12.04)
RUN apt-get install -y module-init-tools iputils-ping wget

RUN wget -O /tmp/VMware-vSphere-Perl-SDK-5.5.0-1384587.x86_64.tar.gz http://dev.vulk.co/files/vmware/VMware-vSphere-Perl-SDK-5.5.0-1384587.x86_64.tar.gz
RUN tar xvfzC /tmp/VMware-vSphere-Perl-SDK-5.5.0-1384587.x86_64.tar.gz /tmp

# get rid of prompts
RUN sed -i '/show_EULA()/d' /tmp/vmware-vsphere-cli-distrib/vmware-install.pl
# set path to install
RUN echo /usr/local/bin | /tmp/vmware-vsphere-cli-distrib/vmware-install.pl
# clean up tmp
RUN rm -rf /tmp/*

# This is needed for version 6.0, which we don't need
#RUN sed -i '/sub get_answer {/a \ \ return "yes"\;' /tmp/vmware-vsphere-cli-distrib/vmware-install.pl
ENTRYPOINT ["/usr/local/bin/esxcli"]

```

Docker Pull Command
Owner
vulk