File: Vagrantfile

package info (click to toggle)
python-redis 2.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 524 kB
  • ctags: 884
  • sloc: python: 5,032; sh: 167; makefile: 128
file content (27 lines) | stat: -rw-r--r-- 1,095 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  # ubuntu 64bit image
  config.vm.box = "hashicorp/precise64"

  # map the root of redis-py to /home/vagrant/redis-py
  config.vm.synced_folder "../", "/home/vagrant/redis-py"

  # install the redis server
  config.vm.provision :shell, :path => "bootstrap.sh"
  config.vm.provision :shell, :path => "build_redis.sh"
  config.vm.provision :shell, :path => "install_redis.sh"
  config.vm.provision :shell, :path => "install_sentinel.sh"
  config.vm.provision :file, :source => ".bash_profile", :destination => "/home/vagrant/.bash_profile"

  # setup forwarded ports
  config.vm.network "forwarded_port", guest: 6379, host: 6379
  config.vm.network "forwarded_port", guest: 6380, host: 6380
  config.vm.network "forwarded_port", guest: 26379, host: 26379
  config.vm.network "forwarded_port", guest: 26380, host: 26380
  config.vm.network "forwarded_port", guest: 26381, host: 26381
end