storlets/install_libs.sh
Takashi Kajinami f5815f065a Use the same python version to run storlet agents
This patch refactors package installations in storlets devstack
plugin, so that we can run storlets agents with the same python
version as the one we have in host to run storlets middleware.

This patch also bumps up openjdk version from 8 to 11, and python3
version from 3.5 to 3.6, so that we use the latest versin provided
in distro.

Change-Id: I6cb87976ff4fa6caaa58cf555685f24d95f214a8
2019-12-23 12:44:54 +09:00

28 lines
504 B
Bash
Executable File

#!/bin/bash
#
# Install required libraries written in c and java
#
# NOTE: The libraries are currently installed under /usr/lib/storlets
# so you may need root privilege to execute this script
set -x
# build scripts
cd scripts
# TODO(takashi): also install them
make
cd -
# install c library
cd src/c/sbus
make && make install
cd -
# Install java library
ant install
# Install container side scripts
SRC=bin
DST=/usr/local/libexec/storlets
mkdir -p -m 755 $DST
cp "$SRC/init_container.sh" $DST