Skip to content

Commit

Permalink
Fix Debian Vagrant file (#884)
Browse files Browse the repository at this point in the history
* Fix Debian Vagrant file

Add more required packages
Fix upgraded Python packages
Add missing options to configure line
Fix ssh known hosts

* Fix ImportError with cffi and setuptools_ext

* latest changes from Dave
  • Loading branch information
andreasscherbaum authored and davecramer committed Jun 29, 2016
1 parent 45f2aa9 commit d4a45bb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion vagrant/debian/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ Vagrant.configure("2") do |config|


config.vm.provision "shell", path: "vagrant-setup.sh"
#config.vm.provision "shell", path: "vagrant-build.sh"
config.vm.provision "shell", path: "vagrant-build.sh", privileged: false
end
8 changes: 6 additions & 2 deletions vagrant/debian/vagrant-build.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
cd /gpdb
./configure --enable-debug --with-python --with-java --with-libxml --prefix=/usr/local/gpdb
./configure --enable-debug --with-python --with-perl --enable-mapreduce --with-libxml --prefix=/usr/local/gpdb

make clean
make -j4
make -j 4
sudo make install

cd /gpdb/gpAux
cp -rp gpdemo /home/vagrant/
sudo chown -R vagrant:vagrant /home/vagrant/gpdemo
cat /home/vagrant/.ssh/id_rsa.pub >> /home/vagrant/.ssh/authorized_keys
# make sure ssh is not stuck asking if the host is known
ssh-keyscan -H localhost >> /home/vagrant/.ssh/known_hosts
ssh-keyscan -H 127.0.0.1 >> /home/vagrant/.ssh/known_hosts
ssh-keyscan -H debian-jessie >> /home/vagrant/.ssh/known_hosts
cd /home/vagrant/gpdemo
source /usr/local/gpdb/greenplum_path.sh
make cluster
Expand Down
15 changes: 12 additions & 3 deletions vagrant/debian/vagrant-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,24 @@ sudo apt-get install wget
sudo apt-get -y install docker-engine build-essential libreadline6 \
libreadline6-dev zlib1g-dev bison flex git-core libcurl4-openssl-dev \
python-dev libxml2-dev pkg-config vim libbz2-dev python-pip \
libapr1-dev libevent-dev
libapr1-dev libevent-dev libyaml-dev libperl-dev libffi-dev \
python-setuptools-whl libssl-dev

echo locales locales/locales_to_be_generated multiselect de_DE ISO-8859-1, de_DE ISO-8859-15, de_DE.UTF-8 UTF-8, de_DE@euro ISO-8859-15, en_GB ISO-8859-1, en_GB ISO-8859-15, en_GB.ISO-8859-15 ISO-8859-15, en_GB.UTF-8 UTF-8, en_US ISO-8859-1, en_US ISO-8859-15, en_US.ISO-8859-15 ISO-8859-15, en_US.UTF-8 UTF-8 | debconf-set-selections
echo locales locales/default_environment_locale select en_US.UTF-8 | debconf-set-selections
dpkg-reconfigure locales -f noninteractive


su vagrant -c "ssh-keygen -t rsa -f .ssh/id_rsa -q -N ''"

pip install --upgrade pip
pip install cffi --upgrade
pip install lockfile
pip install paramiko
pip install setuptools
pip install paramiko --upgrade
pip install setuptools --upgrade
pip install epydoc
pip install --pre psutil
pip install cryptography --upgrade

sudo service docker start
sudo useradd postgres
Expand Down

0 comments on commit d4a45bb

Please sign in to comment.