Skip to content

southbayjay/NCA-Install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Prerequisite: Update Ubuntu and Install Docker with Docker Compose

Before proceeding, ensure your system is up to date and Docker (with Docker Compose) is installed. Run the following commands on Ubuntu:

Update and upgrade your system:

sudo apt update && sudo apt upgrade -y

Install required packages:

sudo apt install -y ca-certificates curl gnupg lsb-release

Add Docker’s official GPG key:

sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

Set up the Docker repository:

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Install Docker Engine, Docker CLI, containerd, and Docker Compose plugin:

sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Verify Docker installation:

docker --version

MiniIO (Object Storage) Setup (Required Before NCA Toolkit)

1. Launch MiniIO via Docker

Prepare the Data Directory and Permissions:

# Create the directory for MinIO data
mkdir -p /home/ubuntu/minio-data

# Set appropriate permissions
sudo chown -R 1000:1000 /home/ubuntu/minio-data

Run MinIO Docker Container:

docker run -d \
  -p 9000:9000 -p 9001:9001 \
  --name miniio \
  -v /home/ubuntu/minio-data:/data \
  -e MINIO_ROOT_USER=admin \
  -e MINIO_ROOT_PASSWORD=change_this_password \
  --restart always \
  quay.io/minio/minio server /data --console-address ":9001"

Verify MinIO Container:

# Check if the container is running (shows all containers including stopped ones)
docker ps -a | grep miniio

# Check container status
docker container inspect -f '{{.State.Status}}' miniio 2>/dev/null || echo "Container not found"

# If the container is not running, check logs for errors
docker logs miniio 2>/dev/null || echo "Cannot get logs - container may not exist"

2. Access the MiniIO Console

  • Console URL:
    http://you-server-ip-address:9001
  • Username:
    admin
  • Password:
    change_this_password

3. Initial Configuration

  • Log into the MiniIO console.
  • Create a bucket named:
    nca-toolkit
  • Generate Access and Secret Keys.
  • Be sure to change default root credentials or create a new user with appropriate permissions.
  • Save these keys.

4. Install NCA Toolkit

Once MiniIO is set up and your access keys are ready, run:

docker run -d -p 8080:8080 --name nca-toolkit \
  -e API_KEY=testkey123 \
  -e S3_ENDPOINT_URL=http://server-IP-address:9000 \
  -e S3_ACCESS_KEY=your_access_key \
  -e S3_SECRET_KEY=your_secret_key \
  -e S3_BUCKET_NAME=nca-toolkit \
  -e S3_REGION=None \
  stephengpope/no-code-architects-toolkit:latest

Replace your_access_key and your_secret_key with the values obtained from MiniIO.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages