On Thu, May 7, 2015 at 6:30 AM, Torsten Kleiber
<[email protected]> wrote:
> Vagrant.configure(2) do |config|
>   config.vm.box = "oraclelinux-7-x86_64.box"
>   config.vm.box_url =
> "http://cloud.terry.im/vagrant/oraclelinux-7-x86_64.box";
>   config.vm.provider "virtualbox" do |vb|
>     vb.gui = true
>     vb.customize ["modifyvm", :id, "--memory", "4096"]
>     vb.name = "OEL 7.1 Development Server"
>    end


Hello

Docker in oracle linux is available on the addons channel

so you need a shell provisioner that does

create group docker is not present
add vagrant to docker group
enable addons channels if not enabled
install docker
tell the OS to start docker on boot

then you can move to use docker

not sure if all is done on the base box


I have a base box oracle7 with docker installed

VAGRANTFILE_API_VERSION = "2"


Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
 config.vm.box = "kikitux/oracle7"
  config.vm.hostname = "oracle7.localdomain"

   #start docker if stopped
  config.vm.provision "shell", run: "always", inline: "systemctl
status docker.service || systemctl start docker.service"

  #use docker provider to download some images
  config.vm.provision "docker", images: ["progrium/registrator:latest"]
end

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to