Skip to content

Commit 9a286ec

Browse files
committed
Copying Vagrantfile to the container image
1 parent 5a4ebec commit 9a286ec

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ RUN yum -y install rsync openssh-clients libvirt-client \
77
https://releases.hashicorp.com/vagrant/2.2.2/vagrant_2.2.2_x86_64.rpm \
88
&& vagrant box add centos/7 --provider libvirt \
99
&& vagrant plugin install vagrant-libvirt
10+
11+
COPY Vagrantfile /workDir/

Vagrantfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Vagrant.configure(2) do |config|
2+
config.vm.box = "centos/7"
3+
config.vm.provider "libvirt" do |libvirt|
4+
libvirt.memory = 2048
5+
libvirt.cpus = 1
6+
libvirt.nested = true
7+
libvirt.volume_cache = 'none'
8+
libvirt.driver = "kvm"
9+
libvirt.uri = "qemu:///system"
10+
libvirt.connect_via_ssh = false
11+
libvirt.username = "root"
12+
end
13+
end

0 commit comments

Comments
 (0)