github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/app/java/data/common/dev-dep/Vagrantfile.fragment.tpl (about) 1 $preshell = <<SCRIPT 2 if command -v apt-get >/dev/null 2>&1; then 3 export DEBIAN_FRONTEND=noninteractive 4 sudo apt-get install -y apt-transport-https >/dev/null 2>&1 5 fi 6 SCRIPT 7 8 config.vm.provision "shell", inline: $preshell 9 config.vm.provision "docker" do |d| 10 d.run "{{ name }}", args: "{{ run_args }}", image: "{{ docker_image }}" 11 end 12 13 # Sync our own dep folder in there 14 config.vm.synced_folder '{{ path.working }}', "{{ path.guest_working }}" 15 16 # Foundation configuration for dev dep 17 {% for dir in foundation_dirs.dev_dep %} 18 dir = "/otto/foundation-{{ name }}-{{ forloop.Counter }}" 19 config.vm.synced_folder '{{ dir }}', dir 20 config.vm.provision "shell", inline: "cd #{dir} && bash #{dir}/main.sh" 21 {% endfor %} 22