This repository has been archived by the owner. It is now read-only.
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (33 sloc) 1.57 KB
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| = "flynn-base"
config.vm.box_url = ""
config.vm.box_download_checksum = "75cb598194967fed29d5db19c8f889583655295cce5d9bc0f438f7dd1313c6e4"
config.vm.box_download_checksum_type = "sha256" "forwarded_port", guest: 80, host: 8080 "forwarded_port", guest: 443, host: 8081 "forwarded_port", guest: 2222, host: 2201
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provision "shell", inline: <<SCRIPT
# Fix for
echo 3600 > /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_close_wait
IP_ADDR=$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
echo "Configuring flynn with internal ip: ${IP_ADDR}"
docker pull flynn/host
docker pull flynn/discoverd
docker pull flynn/etcd
docker run -d -v=/var/run/docker.sock:/var/run/docker.sock -p=1113:1113 flynn/host -external ${IP_ADDR} -force
docker pull flynn/postgres
docker pull flynn/controller
docker pull flynn/gitreceive
docker pull flynn/strowger
docker pull flynn/shelf
docker pull flynn/slugrunner
docker pull flynn/slugbuilder
docker pull flynn/bootstrap
docker run -e=DISCOVERD=${IP_ADDR}:1111 flynn/bootstrap