Created
August 4, 2017 19:32
-
-
Save dav1x/92fbd2a5062f5797c592da9eab1dfb3a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[code language="bash"] | |
FROM registry.access.redhat.com/rhel7.3 | |
ENV SYSTEMD_IGNORE_CHROOT=1 | |
RUN yum -y --disablerepo=\* --enablerepo=rhel-7-server-rpms install yum-utils && \ | |
yum-config-manager --disable \* && \ | |
yum-config-manager --enable rhel-7-server-rpms && \ | |
yum clean all | |
RUN yum -y install file open-vm-tools perl open-vm-tools-deploypkg net-tools iproute systemd util-linux && \ | |
yum clean all | |
LABEL Version=1.0 | |
LABEL Vendor="Red Hat" License=GPLv3 | |
LABEL RUN="docker run --privileged -v /proc/:/hostproc/ -v /sys/fs/cgroup:/sys/fs/cgroup -v /var/log:/var/log -v /run/systemd:/run/systemd -v /sysroot:/sysroot -v=/var/lib/sss/pipes/:/var/lib/sss/pipes/:rw -v /etc/passwd:/etc/passwd -v /etc/shadow:/etc/shadow -v /tmp:/tmp:rw -v /etc/sysconfig:/etc/sysconfig:rw -v /etc/resolv.conf:/etc/resolv.conf:rw -v /etc/nsswitch.conf:/etc/nsswitch.conf:rw -v /etc/hosts:/etc/hosts:rw -v /etc/hostname:/etc/hostname:rw -v /etc/localtime:/etc/localtime:rw -v /etc/adjtime:/etc/adjtime --env container=docker --net=host --pid=host IMAGE" | |
ADD service.template config.json /exports/ | |
CMD /usr/bin/vmtoolsd | |
[/code] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment