Dolt is a version-controlled SQL database that allows you to branch, merge, and collaborate on your database the same way you do with Git. It’s built for applications that require historical tracking, collaboration, and auditability.
Prerequisites
-
Akash Network Account: You should have an account on the Akash Network with sufficient AKT tokens to deploy the service.
-
Akash CLI or Console Access: Set up and configured on your machine.
-
Docker Knowledge: Familiarity with Docker is helpful.
-
Dolt Installed: Check the Dolt documentation for instructions on how to install
Step 1: Setting Up Dolt
- Initialize the Dolt Database:
Before deploying, you may want to initialize a Dolt repository locally or use an existing one. You can skip this step if you’re deploying a pre-configured database.
- Push Your Database to a Remote (Optional):
If you want to keep your database remote, you can push it to a DoltHub repository.
Step 2: Creating the Akash Deployment File
You may modiy the following deploy.yaml
file as you need:
Step 3: Deploying to Akash
You may deploy to Akash either via the CLI or the Console
Deploying via Akash CLI
- Initialize Your Akash Deployment:
- Check the Deployment Status:
Make sure your deployment is active and ready.
- Get Access to Your Database:
Once the deployment is live, you’ll receive an endpoint (IP address and port) where the Dolt database is accessible. You can connect using any MySQL client or the Dolt CLI.
Deploying via Akash Console
- Log in to the Akash Console:
-
Go to the Akash Console.
-
Connect your wallet and fund it with a minimum of 5 AKT if necessary.
- Upload the
deploy.yaml
File:
-
Navigate to the “Deployments” section.
-
Click on the “Deploy” button.
-
Upload the
deploy.yaml
file. -
Follow the prompts to submit and deploy your service.
- Monitor Deployment:
-
Use the Console to monitor the status and logs of your deployment.
-
Once the deployment is active, the Dolt database will be accessible at the provided endpoint.
Step 4: Managing Your Dolt Database
- Connecting to Dolt:
Use the IP address and port from the Akash deployment to connect:
- Running SQL Queries: