Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install python-dev, allowing ambari to build on vagrant provisioned machines #9

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion centos6.4/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision :shell, :path => "bootstrap.sh"

config.vm.define :c6401 do |c6401|
c6401.vm.synced_folder "~/.m2/repository", "/home/vagrant/.m2/repository"
c6401.vm.synced_folder "~/.npm", "/home/vagrant/.npm"

# Share source folder
c6401.vm.synced_folder "../../", "/ambari"

# uncomment the line below to set up the ambari dev environment
# c6401.vm.provision :shell, :path => "dev-bootstrap.sh"
c6401.vm.provision :shell, :path => "dev-bootstrap.sh"
c6401.vm.hostname = "c6401.ambari.apache.org"
c6401.vm.network :private_network, ip: "192.168.64.101"
end
Expand Down
1 change: 1 addition & 0 deletions centos6.4/dev-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ service ntpd start
yum install git -y
yum install rpm-build -y
yum install gcc-c++ -y
yum install python-devel -y
wget http://nodejs.org/dist/v0.10.31/node-v0.10.31-linux-x64.tar.gz
tar zxvf node-v0.10.31-linux-x64.tar.gz
mv node-v0.10.31-linux-x64 /usr/share/node
Expand Down
4 changes: 2 additions & 2 deletions ubuntu12.4/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

config.vm.define :u1201 do |u1201|
# uncomment the line below to set up the ambari dev environment
#u1201.vm.provision :shell, :path => "dev-bootstrap.sh"
u1201.vm.provision :shell, :path => "dev-bootstrap.sh"
u1201.vm.hostname = "u1201.ambari.apache.org"
u1201.vm.network :private_network, ip: "192.168.12.101"
end
Expand Down Expand Up @@ -110,7 +110,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# 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.synced_folder "/Users/jonathan/dev/ambari", "/ambari"

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
Expand Down
1 change: 1 addition & 0 deletions ubuntu12.4/dev-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ service ntp start
apt-get install make -y
apt-get install g++ -y
apt-get install git -y
apt-get install python-dev
wget http://nodejs.org/dist/v0.10.31/node-v0.10.31-linux-x64.tar.gz
tar zxvf node-v0.10.31-linux-x64.tar.gz
mv node-v0.10.31-linux-x64 /usr/share/node
Expand Down
24 changes: 15 additions & 9 deletions ubuntu14.4/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,31 @@ VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu14.4"

# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.

# Ubuntu 14.04 x64 VM with VirtualBox 4.3.10 Guest Additions
config.vm.box_url = "https://github.com/hnakamur/packer-templates/releases/download/v1.0.2/ubuntu-14-04-x64-virtualbox.box"
config.vm.box = "ubuntu/trusty64"

config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", 2048] # RAM allocated to each VM
vb.memory = 3048
vb.cpus = 3
end

config.vm.provision :shell, :path => "bootstrap.sh"

config.vm.define :u1401 do |u1401|
# uncomment the line below to set up the ambari dev environment
# u1401.vm.provision :shell, :path => "dev-bootstrap.sh"
u1401.vm.provision :shell, :path => "dev-bootstrap.sh"
u1401.vm.hostname = "u1401.ambari.apache.org"
u1401.vm.network :private_network, ip: "192.168.76.101"

# Share package folders
u1401.vm.synced_folder "~/.m2/repository", "/home/vagrant/.m2/repository", type: "nfs"
u1401.vm.synced_folder "~/.npm", "/home/vagrant/.npm", type: "nfs"

# Share source folder
u1401.vm.synced_folder "../../", "/ambari", type: "nfs"

# Forward ports for remote debugging/REPL
u1401.vm.network :forwarded_port, host: 6000, guest: 6000
u1401.vm.network :forwarded_port, host: 6001, guest: 6001
end

config.vm.define :u1402 do |u1402|
Expand Down
28 changes: 7 additions & 21 deletions ubuntu14.4/dev-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,10 @@ service ntp start
apt-get install make -y
apt-get install g++ -y
apt-get install git -y
wget http://nodejs.org/dist/v0.10.31/node-v0.10.31-linux-x64.tar.gz
tar zxvf node-v0.10.31-linux-x64.tar.gz
mv node-v0.10.31-linux-x64 /usr/share/node
/usr/share/node/bin/npm install -g brunch
#wget --no-check-certificate http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
#sh setuptools-0.6c11-py2.6.egg
wget http://psg.mtu.edu/pub/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
tar zxvf apache-maven-3.0.5-bin.tar.gz
mv apache-maven-3.0.5 /usr/share/maven
apt-get install openjdk-6-jdk -y

# make maven and node available in PATH
echo 'PATH=$PATH:/usr/share/node/bin' > /etc/profile.d/node.sh
chmod +x /etc/profile.d/node.sh
echo 'PATH=$PATH:/usr/share/maven/bin' > /etc/profile.d/maven.sh
chmod +x /etc/profile.d/maven.sh

# check out Ambari source

echo 'Ambari Development VM has been set up! Enjoy!'
echo 'You can check out Ambari source by running: git clone https://git-wip-us.apache.org/repos/asf/ambari.git'
apt-get install python-dev -y
apt-get install python-setuptools -y
apt-get install openjdk-7-jdk -y
apt-get install maven -y
apt-get install nodejs-legacy -y
apt-get install npm -y
/usr/bin/npm install -g brunch
Empty file modified ubuntu14.4/up.sh
100644 → 100755
Empty file.