33
33
# Install pre-requisite OS packages #
34
34
# ####################################
35
35
apt-get update
36
- apt-get -y install software-properties-common curl git sudo wget
36
+ apt-get -y install software-properties-common curl git sudo wget " build-essential " zlib1g-dev libbz2-dev
37
37
38
38
# ####################################
39
39
# Install and setup Docker services #
@@ -50,40 +50,27 @@ systemctl restart docker
50
50
# ###################################
51
51
# Golang binaries for ppc64le are publicly available from Unicamp and is recommended as it includes certain platform specific tuning/optimization.
52
52
# Alternativley package part of Ubuntu disto repo can also be used.
53
- wget ftp://ftp.unicamp.br/pub/linuxpatch/toolchain/at/ubuntu/dists/trusty/at9 .0/binary-ppc64el/advance-toolchain-at9.0-golang_9 .0-3_ppc64el .deb
54
- dpkg -i advance-toolchain-at9.0-golang_9 .0-3_ppc64el .deb
55
- rm -f advance-toolchain-at9.0-golang_9 .0-3_ppc64el .deb
53
+ wget ftp://ftp.unicamp.br/pub/linuxpatch/toolchain/at/ubuntu/dists/xenial/at10 .0/binary-ppc64el/advance-toolchain-golang-at_10 .0-2_ppc64el .deb
54
+ dpkg -i advance-toolchain-golang-at_10 .0-2_ppc64el .deb
55
+ rm -f advance-toolchain-golang-at_10 .0-2_ppc64el .deb
56
56
57
57
# Create links under /usr/bin using update-alternatives
58
- update-alternatives --install /usr/bin/go go /usr/local/go/bin/go 9
59
- update-alternatives --install /usr/bin/gofmt gofmt /usr/local/go/bin/gofmt 9
58
+ update-alternatives --install /usr/bin/go go /usr/local/go/bin/go 10
59
+ update-alternatives --install /usr/bin/gofmt gofmt /usr/local/go/bin/gofmt 10
60
60
61
61
# Set the GOROOT env variable
62
- export GOROOT=" /usr/local/go"
63
-
64
- # ###################################
65
- # Build and install RocksDB #
66
- # ###################################
67
-
68
- apt-get -y install libsnappy-dev zlib1g-dev libbz2-dev " build-essential"
69
-
70
- cd /tmp
71
- git clone https://github.com/facebook/rocksdb.git
72
- cd rocksdb
73
- git checkout tags/v4.1
74
- echo There were some bugs in 4.1. This was fixed in dev stream and newer releases like 4.5.1.
75
- sed -ibak ' s/ifneq ($(MACHINE),ppc64)/ifeq (,$(findstring ppc64,$(MACHINE)))/g' Makefile
76
- PORTABLE=1 make shared_lib
77
- INSTALL_PATH=/usr/local make install-shared
78
- ldconfig
79
- cd - ; rm -rf /tmp/rocksdb
62
+ export GOROOT=" /opt/go"
63
+ ln -s /usr/local/go $GOROOT
80
64
81
65
# ###############################################
82
66
# Install PIP tools, behave and docker-compose #
83
67
# ###############################################
84
68
85
- apt-get -y install python-pip
69
+ apt-get -y install python-pip libssl-dev libffi-dev libltdl-dev
86
70
pip install --upgrade pip
87
71
pip install behave nose docker-compose
88
72
89
- pip install -I flask==0.10.1 python-dateutil==2.2 pytz==2014.3 pyyaml==3.10 couchdb==1.0 flask-cors==2.0.1 requests==2.4.3 grpcio==0.13.1 pyOpenSSL==16.2.0 sha3==0.2.1
73
+ pip install -I flask==0.10.1 python-dateutil==2.2 pytz==2014.3 pyyaml==3.10 couchdb==1.0 flask-cors==2.0.1 requests==2.4.3 grpcio==1.0.4 pyOpenSSL==16.2.0 pysha3==1.0b1
74
+
75
+ # PIP packages required for some behave tests
76
+ pip install urllib3 ndg-httpsclient pyasn1 ecdsa python-slugify grpcio-tools jinja2 b3j0f.aop six
0 commit comments