This document provides a comprehensive guide to setting up the Lunary application using Docker and Helm charts.
- Overview
- Getting Started
- Prerequisites
- Step 1: Clone the Lunary Repository
- Step 2: Clone the Lunary-Charts Repository
- Step 3: Build Docker Images
- Step 4: Deploy Using Helm Charts
- License
The Lunary application is designed for efficient operations with a modern architecture. This guide outlines the steps necessary to set up and run the application locally using Docker and deploy it using Helm charts.
Follow the steps below to clone the Lunary repository, build the Docker images, and run the application.
Ensure you have the following installed on your machine:
- Docker: Install Docker
- Helm: Install Helm
- Git: Install Git
-
Open your terminal.
-
Clone the official Lunary repository using the following command:
git clone https://github.com/lunary-ai/lunary.git
-
Navigate into the cloned Lunary directory:
cd lunary
-
In the terminal, clone the Lunary-Charts repository using the following command:
git clone https://github.com/its-aqeel/lunary-charts.git
-
Navigate into the cloned Lunary-Charts directory:
cd lunary-charts
-
Navigate back to the Lunary directory:
cd ../lunary
-
Use the provided
Makefile
andDockerfile
from the Lunary-Charts repository to build the Docker images. Run the following commands:cp ../lunary-charts/Makefile Makefile cp ../lunary-charts/Dockerfile Dockerfile make
This command will execute the default target defined in the
Makefile
, which builds both the backend and frontend Docker images. -
After the build process completes, verify that the images have been created by running:
docker images
You should see images for both the backend and frontend in the list.
-
Navigate back to the Lunary-Charts directory:
cd ../lunary-charts/deployment
-
Ensure you have the Helm charts set up in your repository. Use the following command to install the charts:
helm install lunary-app lunary-app
-
To customize the deployment, you can modify the
values.yaml
file in your Helm chart directory. This file contains configurable parameters for your application, such as environment variables, service types, and replica counts.