Skip to content

Instantly share code, notes, and snippets.

@lamw
Created November 25, 2016 17:03
Show Gist options
  • Save lamw/f25820bccdd858033fa1f3bf0fcc5981 to your computer and use it in GitHub Desktop.
Save lamw/f25820bccdd858033fa1f3bf0fcc5981 to your computer and use it in GitHub Desktop.
Installing OVFTool 4.2 within a Photon Docker Container
FROM photon
RUN tdnf -y install tar gzip sed gawk ncurses-compat
ADD VMware-ovftool-4.2.0-4586971-lin.x86_64.bundle /tmp/
RUN chmod +x /tmp/VMware-ovftool-4.2.0-4586971-lin.x86_64.bundle
RUN echo -e "/w00t\n" >> /tmp/answer
RUN /tmp/VMware-ovftool-4.2.0-4586971-lin.x86_64.bundle --eulas-agreed --required --console < /tmp/answer
CMD ["/bin/bash"]
@mtcoffee
Copy link

Works great in Photon1 but Photon 2+ returns the error stat: Unknown option format (see "stat --help")

Any ideas?

@mtcoffee
Copy link

Works great in Photon1 but Photon 2+ returns the error stat: Unknown option format (see "stat --help")

Any ideas?

The trick was to add this line to the top of the file (after the image name of course)
RUN tdnf remove toybox -y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment