Last active
February 17, 2017 16:34
-
-
Save edvardm/ebc6b7b3d820f1b48060f5cf8b62b2d3 to your computer and use it in GitHub Desktop.
Quick vagrant ubuntu box for toying /w Docker
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
### NOTE: you need to run | |
# vagrant plugin install vagrant-docker-compose | |
# before running this to make docker-compose provisioner work | |
Vagrant.configure("2") do |config| | |
config.vm.box = "cbednarski/ubuntu-1604-large" | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine. In the example below, | |
# accessing "localhost:8080" will access port 80 on the guest machine. | |
# config.vm.network "forwarded_port", guest: 80, host: 8080 | |
# Create a private network, which allows host-only access to the machine | |
# using a specific IP. | |
# config.vm.network "private_network", ip: "192.168.33.10" | |
# Create a public network, which generally matched to bridged network. | |
# Bridged networks make the machine appear as another physical device on | |
# your network. | |
# config.vm.network "public_network" | |
# Share an additional folder to the guest VM. The first argument is | |
# the path on the host to the actual folder. The second argument is | |
# the path on the guest to mount the folder. And the optional third | |
# argument is a set of non-required options. | |
# config.vm.synced_folder "../data", "/vagrant_data" | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = false | |
vb.memory = "8192" | |
end | |
config.vm.provision :docker | |
config.vm.provision :docker_compose | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment