Skip to content

Instantly share code, notes, and snippets.

@taoky
Created August 14, 2021 13:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taoky/1731dcca55a27e6f3f359450f1a04a10 to your computer and use it in GitHub Desktop.
Save taoky/1731dcca55a27e6f3f359450f1a04a10 to your computer and use it in GitHub Desktop.
VMware's vibauthor in Docker
FROM centos:6
RUN echo "207.241.237.3 web.archive.org" >> /etc/hosts && \
curl https://web.archive.org/web/20140123032613if_/http://download3.vmware.com/software/vmw-tools/vibauthor/vmware-esx-vib-author-5.0.0-0.0.847598.i386.rpm > /tmp/vibauthor.rpm && \
sed -e "s|^mirrorlist=|#mirrorlist=|g" \
-e "s|^#baseurl=http://mirror.centos.org/centos/\$releasever|baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/6.10|g" \
-i.bak \
/etc/yum.repos.d/CentOS-*.repo && \
yum makecache && \
yum install -y python-lxml && \
rpm -i --nodeps /tmp/vibauthor.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment