-
-
Save gblok/3ceb66db98192e579514f801706fc710 to your computer and use it in GitHub Desktop.
Vagrantfile for Alpine Linux with docker
This file contains 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
Vagrant.configure("2") do |config| | |
config.vm.box = "maier/alpine-3.3.1-x86_64" | |
config.vm.network "public_network", ip: "192.168.1.31", auto_config: true | |
config.vm.synced_folder ".", "/vagrant", disabled: true | |
config.vm.provider "virtualbox" do |vb| | |
vb.name = 'Alpine1' | |
vb.cpus = 1 | |
vb.memory = 1024 | |
#vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
# Display the VirtualBox GUI when booting the machine | |
# vb.gui = true | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
echo http://dl-3.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories | |
echo http://dl-3.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories | |
apk update | |
apk add docker | |
rc-update add docker boot | |
service docker start | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment