Files
db-middleware/README.md

2.0 KiB

Capital Index Database Middleware

Description:

About this project:

Database Middleware that handles database's querying and changes monitoring.

Adds an abstraction layer on top of your Database.

This repo contains:

  1. Middleware Source Code
  2. Dockerfile
  3. Install & Manage Scripts

Getting Started:

Installation:

1. Install the required dependencies:

Needed to download and build the docker container.

Debian/Ubuntu
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install wget git docker.io -y

[Optional] Install Docker build-kit:

sudo apt-get install docker-buildx -y
CentOS/Fedora
  • Note: CentOS 7 uses yum instead of dnf. Replace dnf with yum if on CentOS 7.
sudo dnf update -y
sudo dnf upgrade -y
sudo dnf install -y wget git docker

[Optional] Install Docker build-kit:

sudo dnf install -y docker-buildx
Arch Linux:
sudo pacman -Syu --noconfirm && sudo pacman -S --noconfirm wget git docker

[Optional] Install Docker build-kit:

sudo pacman -S --noconfirm docker-buildx
Alpine Linux:
sudo apk update
sudo apk upgrade
sudo apk add --no-cache wget git docker

[Optional] Install Docker build-kit:

sudo apk add --no-cache docker-cli-buildx

2. Run the setup script:

Add your user to the docker group and login again:

sudo usermod -aG docker $USER && sudo su - $USER

This will download & execute the setup.sh script.

mkdir -p ~/.db-middleware/scripts &&
rm -rf ~/.db-middleware/scripts/* &&
cd ~/.db-middleware/scripts &&
wget -qO setup.sh https://gitea.abdulhade.com/abdulhade/db-middleware/raw/branch/main/scripts/setup.sh &&
bash setup.sh