Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes install_dependencies for delfin installation in centos #528

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

## Introduction

SODA installer project provides easy installation and basic deployment based on specific configurations for SODA Projects. The installer is created so as to support the integrated installation of specific projects for each SODA Release.
SODA installer project provides easy installation and basic deployment based on specific configurations for SODA Projects. The installer is created so as to support the integrated installation of specific projects foreach SODA Release.

It is modular and specific project installation information is built based on the installation hooks and related configurations. Basically SODA installer plays a wrapper role to put all together and provide a simple installation for the users and experience overall solution.

Expand Down
20 changes: 7 additions & 13 deletions ansible/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Install dependencies
echo Installing dependencies
sudo apt-get install -y make curl wget libltdl7 libseccomp2 libffi-dev gawk apt-transport-https ca-certificates curl gnupg gnupg-agent lsb-release software-properties-common sshpass pv
sudo yum install -y make curl wget libltdl7 libseccomp2 libffi-dev gawk apt-transport-https ca-certificates curl gnupg gnupg-agent lsb-release software-properties-common sshpass pv

echo Enabling docker repository
sudo mkdir -p /etc/apt/keyrings
Expand All @@ -14,19 +14,13 @@ echo \

# Update local repositories
echo Updating local repositories
sudo apt-get update
sudo yum update

# Install python dependencies
echo Installing Python dependencies
sudo apt-get install -y python3-distutils python3-testresources python3-pip
python3 -m pip install -U pip

# Update setuptool version if it is higher than 65
ver=$(python3 -m pip show setuptools | awk '/^Version: / {sub("^Version: ", ""); print}' | cut -d. -f1)
if [ "$ver" -gt 65 ]; then
echo Downgrade setuptools version to 65
python3 -m pip install setuptools==65.0.0
fi
sudo yum install -y python3-distutils
sudo yum install -y python3-pip
python3 -m pip install -U pip setuptools==65.0.0

# Install ansible if not present
if [ "`which ansible`" != "" ]; then
Expand All @@ -41,7 +35,7 @@ if [ "`which docker`" != "" ]; then
echo Docker already installed, skipping.
else
echo Installing docker
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo yum install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo adduser $USER vboxsf
fi

Expand All @@ -66,4 +60,4 @@ fi

# Ensure /usr/local/bin is in path
export PATH=$PATH:/usr/local/bin:/usr/local/go/bin
export GOPATH=$HOME/gopath
export GOPATH=$HOME/gopath