Skip to content

Commit

Permalink
Merge pull request #948 from joseph-v/fix-install-doc
Browse files Browse the repository at this point in the history
Fix documentation for delfin install
  • Loading branch information
skdwriting authored Nov 28, 2022
2 parents 2f1231d + 8393235 commit 4ba8e59
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions installer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,24 @@ The SODA Delfin supports two types of installation

### Install steps

Ensure no ansible & docker installed, OR Lastest ansible and docker tools are installed with versions listed below or later. If ansible & docker is not installed in the OS, script `install_dependencies.sh` will install it.

```bash
sudo apt-get update && sudo apt-get install -y git make curl wget libltdl7 libseccomp2 libffi-dev gawk
sudo apt-get update && sudo apt-get install -y git
git clone https://github.com/sodafoundation/delfin.git
# git checkout <delfin-release-version>
# git checkout <delfin-release-version v1.6.1+>
cd delfin/installer
chmod +x install_dependencies.sh && ./install_dependencies.sh
chmod +x install_dependencies.sh && source install_dependencies.sh
cd ansible
export PATH=$PATH:/home/$USER/.local/bin
sudo -E env "PATH=$PATH" ansible-playbook site.yml -i local.hosts -v
```

**NOTE:** *Tools version used for verification of Delfin under Ubuntu 20.04*
* ansible version: 5.10.0
* docker version: 20.10.21
* docker compose version: 2.12.2

### Uninstall
```bash
sudo -E env "PATH=$PATH" ansible-playbook clean.yml -i local.hosts -v
Expand Down
4 changes: 2 additions & 2 deletions installer/install_dependencies.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ sudo apt-get update

# Install dependencies
echo Installing dependencies
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg gnupg-agent lsb-release software-properties-common sshpass pv gawk
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

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

# Install ansible if not present
if [ "`which ansible`" != "" ]; then
Expand Down

0 comments on commit 4ba8e59

Please sign in to comment.