storlets/install_libs.sh
Takashi Kajinami d60176cc2f Get rid of SUID binary to restart docker containers
This patch removes a script with SUID flag,restart_docker_container,
which was used to restart docker containers and replaces it by
native python implementation. The aim of this replacmenet is to reduce
the security risk caused by SUID binaries, as well as to implement
more features and unit test coverages easily.

To allow swift user to manage docker conainers, now it is required
that swift user belong to docker group and have access to docker
unix domain socket.

Change-Id: I8103d4d826f5121e16f67f1ff49102ceecaf8a80
2021-08-19 09:17:07 +00:00

22 lines
431 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
# 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