提交 d4a45bbc 编写于 作者: A Andreas Scherbaum 提交者: Dave Cramer

Fix Debian Vagrant file (#884)

* 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
上级 45f2aa96
......@@ -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
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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册