Created
November 25, 2016 17:03
-
-
Save lamw/f25820bccdd858033fa1f3bf0fcc5981 to your computer and use it in GitHub Desktop.
Installing OVFTool 4.2 within a Photon Docker Container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The trick was to add this line to the top of the file (after the image name of course)
RUN tdnf remove toybox -y