mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
install docker python3 library and set env var PYTHONPATH - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/105
This commit is contained in:
@@ -355,7 +355,9 @@ docker_install() {
|
||||
yum -y install yum-utils device-mapper-persistent-data lvm2 openssl
|
||||
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
||||
yum -y update
|
||||
yum -y install docker-ce docker-python python-docker
|
||||
yum -y install docker-ce
|
||||
pip3 install docker
|
||||
set_environment_var "PYTHONPATH=/usr/local/lib/python3.6/site-packages/"
|
||||
if [ $INSTALLTYPE != 'EVALMODE' ]; then
|
||||
docker_registry
|
||||
fi
|
||||
@@ -1023,6 +1025,15 @@ sensor_pillar() {
|
||||
|
||||
}
|
||||
|
||||
set_environment_var() {
|
||||
|
||||
echo "Setting environment variable: $1"
|
||||
|
||||
export "$1"
|
||||
echo "$1" >> /etc/environment
|
||||
|
||||
}
|
||||
|
||||
set_hostname() {
|
||||
|
||||
hostnamectl set-hostname --static $HOSTNAME
|
||||
|
||||
Reference in New Issue
Block a user