Added support to other Operating Systems.
This commit is contained in:
70
README.md
70
README.md
@@ -1,6 +1,5 @@
|
|||||||
# Capital Index Database Middleware
|
# Capital Index Database Middleware
|
||||||
|
|
||||||
|
|
||||||
## Description:
|
## Description:
|
||||||
|
|
||||||
### About this project:
|
### About this project:
|
||||||
@@ -23,19 +22,77 @@ Adds an abstraction layer on top of your Database.
|
|||||||
|
|
||||||
Needed to download and build the docker container.
|
Needed to download and build the docker container.
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Debian/Ubuntu</summary>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install wget git docker.io -y
|
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install wget git docker.io -y
|
||||||
```
|
```
|
||||||
|
|
||||||
[Optional] Install Docker build-kit:
|
[Optional] Install Docker build-kit:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt-get docker-buildx -y
|
sudo apt-get install docker-buildx -y
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
|
||||||
|
<summary> CentOS/Fedora</summary>
|
||||||
|
|
||||||
|
- Note: CentOS 7 uses yum instead of dnf. Replace dnf with yum if on CentOS 7.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo dnf update -y
|
||||||
|
sudo dnf upgrade -y
|
||||||
|
sudo dnf install -y wget git docker
|
||||||
|
```
|
||||||
|
|
||||||
|
[Optional] Install Docker build-kit:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo dnf install -y docker-buildx
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Arch Linux:</summary>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo pacman -Syu --noconfirm && sudo pacman -S --noconfirm wget git docker
|
||||||
|
```
|
||||||
|
|
||||||
|
[Optional] Install Docker build-kit:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo pacman -S --noconfirm docker-buildx
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Alpine Linux:</summary>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apk update
|
||||||
|
sudo apk upgrade
|
||||||
|
sudo apk add --no-cache wget git docker
|
||||||
|
```
|
||||||
|
|
||||||
|
[Optional] Install Docker build-kit:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apk add --no-cache docker-cli-buildx
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
#### 2. Run the setup script:
|
#### 2. Run the setup script:
|
||||||
|
|
||||||
Add your user to the docker group and login again:
|
Add your user to the docker group and login again:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo usermod -aG docker $USER && sudo su - $USER
|
sudo usermod -aG docker $USER && sudo su - $USER
|
||||||
```
|
```
|
||||||
@@ -43,14 +100,13 @@ sudo usermod -aG docker $USER && sudo su - $USER
|
|||||||
This will download & execute the `setup.sh` script.
|
This will download & execute the `setup.sh` script.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkdir -p ~/.db-middleware/scripts &&
|
mkdir -p ~/.db-middleware/scripts &&
|
||||||
rm -rf ~/.db-middleware/scripts/* &&
|
rm -rf ~/.db-middleware/scripts/* &&
|
||||||
cd ~/.db-middleware/scripts &&
|
cd ~/.db-middleware/scripts &&
|
||||||
wget -qO setup.sh https://gitea.abdulhade.com/abdulhade/db-middleware/raw/branch/main/scripts/setup.sh &&
|
wget -qO setup.sh https://gitea.abdulhade.com/abdulhade/db-middleware/raw/branch/main/scripts/setup.sh &&
|
||||||
bash setup.sh
|
bash setup.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
<!-- #### 3. Add your user to the docker group:
|
<!-- #### 3. Add your user to the docker group:
|
||||||
|
|
||||||
So you don't have to use `sudo` to run the script.
|
So you don't have to use `sudo` to run the script.
|
||||||
|
|||||||
Reference in New Issue
Block a user