Skip to content

0xcastleblack/oci-ovftool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

License

Containerized Open Virtualization Format Tool

This is a Open Container Initiative (OCI) container image for the Open Virtualization Format Tool (ovftool).

VMware OVF Tool is a command-line utility that allows you to import and export OVF packages to and from many VMware products.

This project is not affiliated with Open Container Initiative (OCI) nor VMware.

Container Repositories

Quay.io

Docker Hub

Assumptions

This container image assumes that you have read and agreed to any end-user license agreement, privacy policy, legalese, etc., provided when installing Open Virtualization Format Tool (ovftool).

Building

buildah bud --build-arg OVFTOOL_BUNDLE=VMware-ovftool-VERSION-BUILD-lin.x86_64.bundle --build-arg BUILD_DATE=`date --utc +%FT%TZ` --tag 0xcastleblack/ovftool

Usage

Podman is used as the container engine in the following examples. podman and docker are interchangeable.

Obtaining the version of ovftool:

podman run --rm -it 0xcastleblack/ovftool --version

Obtaining the help for the ovftool:

podman run --rm -it 0xcastleblack/ovftool --help

The working directory within the container image is /ovftool.

Any commands that read file(s) will expect the file to exist in that directory.

Any commands that write file(s) will write to that directory.

You can mount any local directory to /ovftool by including it as a volume when running the container image, for example, -v $HOME/ovftool:/ovftool.

More documentation on the usage of ovftool can be found here.

The follow are alias commands to make life easier:

alias ovftool='podman run --rm -it -v $(pwd):/ovftool 0xcastleblack/ovftool'

If you are having issues with podman reading from a file within your home directory, use the following alias:

alias ovftool='podman run --rm -it -v $(pwd):/ovftool --security-opt label=disable 0xcastleblack/ovftool'

Should you be running Windows, you can try the same with doskey. I have not tested this myself so YMMV.

doskey ovftool=docker run --rm -ti -v %cd%:/ovftool 0xcastleblack/ovftool $*

Releases

No releases published

Packages

No packages published