This repository has been archived by the owner. It is now read-only.
Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (25 sloc) 1.08 KB
FROM centos:6
MAINTAINER james.williams@packetgeek.net
## Setup OpenVswitch, KVM, and SSH Envrionment
RUN yum install -y https://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-6/rdo-release-icehouse-1.noarch.rpm
RUN yum install -y http://mirror.rackspace.com/epel/6/x86_64/epel-release-6-8.noarch.rpm
RUN yum install -y qemu-img qemu-kvm openvswitch python-openvswitch python-pip supervisor openssh-server libvirt uml_utilities tunctl
RUN ln -s /usr/libexec/qemu-kvm /usr/bin/qemu-kvm
## Add supervisord configuration file
COPY supervisord.conf /etc/supervisord.conf
## Add IOS-XRV Image and init scripts
COPY iosxrv-k9-5.1.1.img /root/iosxrv-k9-5.1.1.img
COPY bin /root/bin
RUN chmod +x /root/bin/*
COPY bootvm.sh /root/bootvm.sh
RUN chmod +x /root/bootvm.sh
## Initialize SSH and openvswitch
RUN /etc/init.d/sshd start
RUN /etc/init.d/openvswitch start
RUN /etc/init.d/libvirtd start
## Setup a default password for root - You should probably change this.
RUN echo "root:defaultpassword" | chpasswd
## Export SSH port
EXPOSE 22 8001
## Start supervisord
CMD ["/usr/bin/supervisord"]