CloudBuildAI is an automated cloud-native application building and deployment tool that uses AI technology to generate Dockerfiles, Kubernetes YAML files, and other cloud platform deployment configurations for users.
In cloud-native application development, building Docker images and writing Kubernetes deployment files is a tedious and important task, and that's where CloudBuildAI comes in.
CloudBuildAI can automatically generate Dockerfiles and Kubernetes deployment files by inputting a GitHub repository address and automatically deploy the application on Sealos. If the files generated by AI are not accurate enough, CloudBuildAI can continuously optimize the accuracy of file generation through automatic repair and human feedback.
Project Purpose:
- Simplify the cloud-native application deployment process
- Make it easy for more developers to achieve automated CI/CD
- Generate accurate Dockerfiles and Kubernetes YAML files through AI technology
- Continuously optimize and improve, fix incorrect configurations, and improve deployment efficiency
Note: You can get started quickly with CloudBuildAI.
- Submit your GitHub repository address to CloudBuildAI
- CloudBuildAI analyzes the code and generates Dockerfile and Kubernetes YAML files
- Check the generated files and submit feedback to CloudBuildAI
- CloudBuildAI continuously optimizes and improves
- Merge the files generated by CloudBuildAI into the repository to achieve automated deployment!
If you have access to the GPT-4 API, Auto-GPT yields better results as it is better at reasoning and drawing conclusions. It is also less prone to hallucinations. If you do not have access yet, you can join the waiting list for GPT-4 API access using the link provided here. However, you can also use the regular OpenAI API with the GPT-3.5 model.
Preparation:
- Git
- Python 3.8 or later
- OpenAI API key
- PineCone API key
Clone the repo using git:
โฏ git clone https://github.com/Significant-Gravitas/Auto-GPT
โฏ cd Auto-GPT
Install:
The requirements.txt file is a text file commonly used in Python projects that includes all the required packages and their version information for the project.
When we learned about the buildpacks project, we saw how it solved the problem of Python environment detection using the requirements.txt file.
โฏ pip install -r requirements.txt
Next, rename .env.template
to .env
, and fill in the fields with your OpenAI and PineCone API keys.
โฏ mv .env.template .env
Then, go to VIM, and paste your OpenAI API in the OPENAI_API_KEY
section. You can refer to the image below for guidance.
โฏ cat .env | grep -i OPENAI_API_KEY
## OPENAI_API_KEY - OpenAI API Key (Example: my-openai-api-key)
OPENAI_API_KEY=your-openai-api-key
Next, open pinecone.io and create a free account. It will allow LLM to retrieve relevant information from memory for use in AI applications.
Here, click API Keys
on the left sidebar, and click Create API Key
on the right pane.
Give a name, such as autogpt
, and click Create Key
Copy the Key Value, open with vim
, and paste it next to PINECONE_API_KEY
.
Similarly, copy the values under Environment
.
Now, paste it next to PINECONE_ENV
.
Open a terminal to run the main.py
Python script.
โฏ python3 -m autogpt
Name AI:
Auto-GPT will ask you to name the AI on the first run. If you do not want to create an AI for a specific use case, you can leave this field blank and press enter. It defaults to the Entrepreneur-GPT name.
Define AI's role~
Next, set goals for the autonomous AI one by one. This is where you tell the AI what goals you want to achieve. You can ask it to save information in a text or PDF file. You can also ask it to shut down after retrieving all the information.
Define AI's role:
Name and role your AI based on the functionality you wish for it to perform, such as "researcher," "content generator," or "personal encoder." To get more successful results, be clear about the goals you want the AI to accomplish.
Set goals:
Outline in detail what you want the AI to achieve, such as gathering information, storing data in a file, executing code, or modifying text. Include information about the output file to be used, as well as any other actions required to complete the task.
Goals are as follows:
- Develop the product
- Optimize the product
- Expand the product's scope
- Generate revenue of over 50 million dollars
- Maintain this consistency
Auto-GPT will begin thinking. During the process, it will ask you to authorize actions. Press "y" and then press Enter to confirm. It may connect to websites and collect information.
You can read what the AI is thinking, reasoning, and planning. It also provides criticism (a negative prompt) so that it comes up with the right information. Finally, it executes the actions.
go version:
โฏ gvm use 1.20
Now using version go1.20
โฏ go version
go version go1.20 linux/amd64
build k8sgpt:
โฏ cd k8sgpt
โฏ make build
Quick Start:
Currently the default AI provider is OpenAI, you will need to generate an API key from OpenAI
Note You can do this by running
k8sgpt generate
to open a browser link to generate it
Run k8sgpt auth
new to set it in k8sgpt.
Note You can provide the password directly using the
--password
flag.
Run k8sgpt filters
to manage the active filters used by the analyzer. By default, all filters are executed during analysis.
Run k8sgpt analyze
to run a scan.
And use k8sgpt analyze
--explain to get a more detailed explanation of the issues.
Example:
โฏ k8sgpt analyze -o json --explain --filter=Pod | jq
Work with Makefile
โฏ make help # show help
โฏ make build # build binary
Work with actions
Actions provide handling of PR and issue.
We used the bot ๐@kubecub, It can detect issues in Chinese and translate them to English, and you can interact with it using the command /comment
.
Comment in an issue:
โฏ /intive
Work with Tools
โฏ make tools
Work with Docker
โฏ make deploy
graph LR
subgraph External Services
feishuAPI --> sheetParser
end
subgraph Sheet Parser & Manager
sheetParser[Sheet Parser] --> versionControl
versionControl[Version Control] --> sheetDisplay
end
subgraph Display
sheetDisplay[Sheet Display] --> UI
end
subgraph Backend
versionControl --> API
end
subgraph Frontend
UI[User Interface]
end
API --> UI
UI --> feishuAPI
MVC Architecture Design:
graph LR
A[View] -->|1. User interaction| B(Controller)
B -->|2. Requests data| C(Model)
C -->|3. Returns data| B
B -->|4. Updates view| A
Catalog standardization design structure:
.CloudBuildAI
โโโ CONTRIBUTING.md # Contribution guidelines
โโโ LICENSE # License information
โโโ Makefile # Makefile for building and running the project
โโโ README.md # Project overview in English
โโโ README_zh-CN.md # Project overview in Chinese
โโโ api # API-related files
โ โโโ OWNERS # API owners
โ โโโ README.md # API documentation
โโโ assets # Static assets, such as images and stylesheets
โ โโโ README.md # Assets documentation
โโโ build # Build-related files
โ โโโ OWNERS # Build owners
โ โโโ README.md # Build documentation
โโโ cmd # Command-line tools and entry points
โ โโโ OWNERS # Command owners
โ โโโ README.md # Command documentation
โโโ configs # Configuration files
โ โโโ OWNERS # Configuration owners
โ โโโ README.md # Configuration documentation
โ โโโ config.yaml # Main configuration file
โโโ deploy # Deployment-related files
โ โโโ OWNERS # Deployment owners
โ โโโ README.md # Deployment documentation
โโโ docs # Project documentation
โ โโโ OWNERS # Documentation owners
โ โโโ README.md # Documentation index
โโโ examples # Example code and usage
โ โโโ OWNERS # Example owners
โ โโโ README.md # Example documentation
โโโ init # Initialization files
โ โโโ OWNERS # Initialization owners
โ โโโ README.md # Initialization documentation
โโโ internal # Internal application code
โ โโโ OWNERS # Internal code owners
โ โโโ README.md # Internal code documentation
โ โโโ app # Application logic
โ โโโ pkg # Internal packages
โ โโโ utils # Utility functions and helpers
โโโ pkg # Public packages and libraries
โ โโโ OWNERS # Package owners
โ โโโ README.md # Package documentation
โ โโโ common # Common utilities and helpers
โ โโโ log # Log utilities
โ โโโ tools # Tooling and scripts
โ โโโ utils # General utility functions
โ โโโ version # Version information
โโโ scripts # Scripts for development and automation
โ โโโ LICENSE_TEMPLATES # License templates
โ โโโ OWNERS # Script owners
โ โโโ README.md # Script documentation
โ โโโ githooks # Git hooks for development
โ โโโ make-rules # Makefile rules and scripts
โโโ test # Test files and test-related utilities
โ โโโ OWNERS # Test owners
โ โโโ README.md # Test documentation
โโโ third_party # Third-party dependencies and libraries
โ โโโ README.md # Third-party documentation
โโโ tools # Tooling and utilities for development
โ โโโ README.md # Tool documentation
โโโ web # Web-related files, such as HTML and CSS
โโโ OWNERS # Web owners
โโโ README.md # Web documentation
We welcome everyone to join us and contribute to CloudBuildAI, whether you are new to open source or professional. We are committed to promoting an open source culture, so we offer community members neighborhood prizes and reward money in recognition of their contributions. We believe that by working together, we can build a strong community and make valuable open source tools and resources available to more people. So if you are interested in CloudBuildAI, please join our community and start contributing your ideas and skills!
We take notes of each biweekly meeting in GitHub discussions, and our minutes are written in Google Docs.
CloudBuildAI maintains a public roadmap. It gives a a high-level view of the main priorities for the project, the maturity of different features and projects, and how to influence the project direction.
kubecub Our goal is to build a top-level open source community. We have a set of standards, in the Community repository.
If you'd like to contribute to this CloudBuildAI repository, please read our contributor documentation.
Before you start, please make sure your changes are in demand. The best for that is to create a new discussion OR Slack Communication, or if you find an issue, report it first.
๐ Note: The CloudBuildAI project is a preview version under development, all documents and codes are for reference only. The CloudBuildAI project may change frequently, and we do not guarantee that the information provided is the latest or accurate.
CloudBuildAI follows the MIT open source license.
Welcome to use and improve CloudBuildAI! We are committed to creating a more intelligent and easy-to-use cloud application deployment tool.