Skip to content

Commit 017b80f

Browse files
committed
initial creation of the Vagrantfile that will create a TeamCity vm
1 parent a350714 commit 017b80f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

teamcity/Vagrantfile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
Vagrant.configure("2") do |config|
5+
config.vm.box = "Ubuntu precise 64 VMWare"
6+
config.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
7+
config.vm.network :forwarded_port, guest: 8111, host: 9000
8+
config.vm.provision "shell", inline: "sudo apt-get update -y"
9+
config.vm.provision "shell", inline: "sudo apt-get install openjdk-7-jre-headless -y"
10+
config.vm.provision "shell", inline: "wget http://download.jetbrains.com/teamcity/TeamCity-8.0.1.tar.gz"
11+
config.vm.provision "shell", inline: "tar -xvzf TeamCity-8.0.1.tar.gz"
12+
config.vm.provision "shell", inline: "export TEAMCITY_DATA_PATH=\"/var/TeamCity/.BuildServer\""
13+
config.vm.provision "shell", inline: "sudo mkdir -p /home/vagrant/TeamCity/logs"
14+
config.vm.provision "shell", inline: "sudo chown vagrant:vagrant /home/vagrant/TeamCity/ -R"
15+
config.vm.provision "shell", inline: "/home/vagrant/TeamCity/bin/teamcity-server.sh start"
16+
end

0 commit comments

Comments
 (0)