Skip to content

Commit 92f07fe

Browse files
committed
init commit
0 parents  commit 92f07fe

File tree

137 files changed

+14035
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+14035
-0
lines changed

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Hugo build output
2+
public/
3+
resources/
4+
5+
# Hugo cache
6+
.hugo_build.lock
7+
8+
# Node modules
9+
node_modules/
10+
11+
# IDE
12+
.idea/
13+
.vscode/
14+
*.swp
15+
*.swo
16+
17+
# OS
18+
.DS_Store
19+
Thumbs.db
20+
21+
# Vendor cache
22+
_vendor/

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
default: dev
2+
3+
d: dev
4+
dev:
5+
hugo serve
6+
7+
b: build
8+
build:
9+
hugo build --minify
10+
11+
s: sync
12+
sync:
13+
rsync -avz public/ server:/www/piglet.run/
14+
15+
.PHONY: default d dev b build s sync

assets/icons/logo.svg

Lines changed: 22 additions & 0 deletions
Loading

assets/scss/_styles_project.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Custom styles for Piglet Run
2+
3+
// Adjust content max width on larger screens
4+
.td-max-width-on-larger-screens {
5+
@include media-breakpoint-up(lg) {
6+
max-width: 90%;
7+
}
8+
}
9+
10+
// Add spacing and separator before feedback section
11+
.feedback--title {
12+
margin-top: 3rem;
13+
padding-top: 2rem;
14+
border-top: 1px solid #dee2e6;
15+
}
16+
17+
// Widen the left sidebar on desktop
18+
@include media-breakpoint-up(xl) {
19+
.td-sidebar__inner {
20+
flex: 0 1 380px !important;
21+
}
22+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
$primary: #E83E8C;
2+
$secondary: #6C757D;

content/_index.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Piglet Run
3+
---
4+
5+
{{< blocks/cover title="Piglet Run" image_anchor="top" height="full" >}}
6+
<a class="btn btn-lg btn-primary me-3 mb-4" href="{{< relref "/docs" >}}">
7+
Get Started <i class="fas fa-arrow-alt-circle-right ms-2"></i>
8+
</a>
9+
<a class="btn btn-lg btn-secondary me-3 mb-4" href="https://github.com/pgsty/piglet.run">
10+
GitHub <i class="fab fa-github ms-2 "></i>
11+
</a>
12+
<p class="lead mt-5">PostgreSQL Cloud Environment Provisioning Service</p>
13+
{{< blocks/link-down color="info" >}}
14+
{{< /blocks/cover >}}
15+
16+
17+
{{% blocks/lead color="primary" %}}
18+
**Piglet Run** helps you provision PostgreSQL environments in the cloud with ease.
19+
20+
Deploy production-ready PostgreSQL clusters on any cloud provider in minutes.
21+
{{% /blocks/lead %}}
22+
23+
24+
{{% blocks/section color="dark" type="row" %}}
25+
{{% blocks/feature icon="fa-lightbulb" title="Easy to Use" %}}
26+
Simple configuration, one-click deployment. Get your PostgreSQL cluster running in minutes.
27+
{{% /blocks/feature %}}
28+
29+
{{% blocks/feature icon="fab fa-github" title="Open Source" url="https://github.com/pgsty/piglet.run" %}}
30+
Built on top of Pigsty, fully open source. Contributions welcome!
31+
{{% /blocks/feature %}}
32+
33+
{{% blocks/feature icon="fa-cloud" title="Multi-Cloud" %}}
34+
Support for AWS, GCP, Azure, and more cloud providers.
35+
{{% /blocks/feature %}}
36+
{{% /blocks/section %}}

content/_index.zh.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Piglet Run
3+
---
4+
5+
{{< blocks/cover title="Piglet Run" image_anchor="top" height="full" >}}
6+
<a class="btn btn-lg btn-primary me-3 mb-4" href="{{< relref "/docs" >}}">
7+
快速开始 <i class="fas fa-arrow-alt-circle-right ms-2"></i>
8+
</a>
9+
<a class="btn btn-lg btn-secondary me-3 mb-4" href="https://github.com/pgsty/piglet.run">
10+
GitHub <i class="fab fa-github ms-2 "></i>
11+
</a>
12+
<p class="lead mt-5">PostgreSQL 云端环境配置服务</p>
13+
{{< blocks/link-down color="info" >}}
14+
{{< /blocks/cover >}}
15+
16+
17+
{{% blocks/lead color="primary" %}}
18+
**Piglet Run** 帮助您轻松在云端配置 PostgreSQL 环境。
19+
20+
在任何云服务商上快速部署生产级 PostgreSQL 集群。
21+
{{% /blocks/lead %}}
22+
23+
24+
{{% blocks/section color="dark" type="row" %}}
25+
{{% blocks/feature icon="fa-lightbulb" title="简单易用" %}}
26+
简单配置,一键部署。让您的 PostgreSQL 集群快速运行。
27+
{{% /blocks/feature %}}
28+
29+
{{% blocks/feature icon="fab fa-github" title="开源免费" url="https://github.com/pgsty/piglet.run" %}}
30+
基于 Pigsty 构建,完全开源。欢迎贡献!
31+
{{% /blocks/feature %}}
32+
33+
{{% blocks/feature icon="fa-cloud" title="多云支持" %}}
34+
支持 AWS、GCP、Azure 等多种云服务商。
35+
{{% /blocks/feature %}}
36+
{{% /blocks/section %}}

content/docs/_index.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: Documentation
3+
linkTitle: Docs
4+
weight: 10
5+
description: Piglet Run documentation - AI coding sandbox with PostgreSQL, JuiceFS, VS Code, and more.
6+
icon: fa-solid fa-book
7+
---
8+
9+
Welcome to **Piglet Run** documentation!
10+
11+
Piglet Run is a lightweight runtime environment from Pigsty, designed as a cloud coding sandbox for AI Web Coding. It integrates PostgreSQL database, JuiceFS distributed storage, VS Code, JupyterLab, and more into a unified environment.
12+
13+
## Documentation Structure
14+
15+
Our documentation follows the **Diataxis** framework, organized into four categories:
16+
17+
| Category | Purpose | Example |
18+
|----------|---------|---------|
19+
| [**Concept**](/docs/concept/) | Understand the principles | What is Piglet Run? How does snapshot work? |
20+
| [**Tutorial**](/docs/tutorial/) | Learn step by step | Install Piglet Run, Create your first project |
21+
| [**Task**](/docs/task/) | Get specific things done | Backup database, Deploy application |
22+
| [**Reference**](/docs/reference/) | Look up detailed info | Configuration options, CLI commands |
23+
24+
## Quick Links
25+
26+
- **New to Piglet Run?** Start with the [Installation Tutorial](/docs/tutorial/install/)
27+
- **Want to understand the concepts?** Read [What is Piglet Run?](/docs/concept/overview/)
28+
- **Looking for how-to guides?** Check the [Task](/docs/task/) section
29+
- **Need detailed reference?** See the [Reference](/docs/reference/) section
30+
31+
## Core Features
32+
33+
| Feature | Description |
34+
|---------|-------------|
35+
| 🤖 AI Coding | Pre-installed Claude Code, VS Code, Jupyter, Python/Go/Node.js |
36+
| 🐘 Data Powerhouse | PostgreSQL 18 + 400+ extensions |
37+
| 💾 Shared Storage | JuiceFS stores workspace in database |
38+
| ⏱️ Time Machine | Database PITR + filesystem snapshots |
39+
| 🔀 Instant Clone | Copy-on-Write database forking |
40+
| 🌐 One-Click Deploy | Built-in Nginx with auto SSL |
41+
| 📊 Full Observability | VictoriaMetrics + Grafana |

content/docs/_index.zh.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: 文档
3+
linkTitle: 文档
4+
weight: 10
5+
description: Piglet Run 文档 - AI 编码沙箱,集成 PostgreSQL、JuiceFS、VS Code 等。
6+
icon: fa-solid fa-book
7+
---
8+
9+
欢迎使用 **Piglet Run** 文档!
10+
11+
Piglet Run(小猪运行时)是 Pigsty 的轻量运行时环境,专为 AI Web Coding 打造的云端编码沙箱。它将 PostgreSQL 数据库、JuiceFS 分布式存储、VS Code、JupyterLab 等工具整合为一体。
12+
13+
## 文档结构
14+
15+
本文档采用 **Diataxis** 框架,分为四个类别:
16+
17+
| 类别 | 用途 | 示例 |
18+
|------|------|------|
19+
| [**概念**](/docs/concept/) | 理解原理 | 什么是 Piglet Run?快照如何工作? |
20+
| [**教程**](/docs/tutorial/) | 循序渐进学习 | 安装 Piglet Run,创建第一个项目 |
21+
| [**任务**](/docs/task/) | 完成具体操作 | 备份数据库,部署应用 |
22+
| [**参考**](/docs/reference/) | 查阅详细信息 | 配置选项,CLI 命令 |
23+
24+
## 快速链接
25+
26+
- **刚接触 Piglet Run?**[安装教程](/docs/tutorial/install/) 开始
27+
- **想理解概念?** 阅读 [什么是 Piglet Run?](/docs/concept/overview/)
28+
- **需要操作指南?** 查看 [任务](/docs/task/) 章节
29+
- **需要详细参考?** 查阅 [参考](/docs/reference/) 章节
30+
31+
## 核心特性
32+
33+
| 特性 | 说明 |
34+
|------|------|
35+
| 🤖 AI 编码 | 预装 Claude Code、VS Code、Jupyter,Python/Go/Node.js 开箱即用 |
36+
| 🐘 数据全能 | PostgreSQL 18 + 400+ 扩展 |
37+
| 💾 共享存储 | JuiceFS 将工作目录存入数据库 |
38+
| ⏱️ 时光机器 | 数据库 PITR + 文件系统快照 |
39+
| 🔀 瞬间克隆 | Copy-on-Write 零拷贝克隆 |
40+
| 🌐 一键上线 | 内置 Nginx,自动 SSL |
41+
| 📊 全栈监控 | VictoriaMetrics + Grafana |

content/docs/about/_index.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: About
3+
linkTitle: About
4+
weight: 5
5+
description: Learn about Piglet Run project, its license, community, and how to get support.
6+
icon: fa-solid fa-circle-info
7+
sidebar_expanded: true
8+
---
9+
10+
**Piglet Run** is a lightweight runtime environment from [Pigsty](https://pigsty.io), designed as a cloud coding sandbox for AI Web Coding.
11+
12+
## What is Piglet Run?
13+
14+
Piglet Run integrates:
15+
16+
- **PostgreSQL 18** with 400+ extensions
17+
- **JuiceFS** distributed storage with PITR support
18+
- **VS Code Server** for web-based development
19+
- **JupyterLab** for data science
20+
- **Claude Code** for AI-assisted coding
21+
- **Grafana** for observability
22+
23+
All in a single, easy-to-deploy package.
24+
25+
## Project Links
26+
27+
| Resource | Link |
28+
|----------|------|
29+
| GitHub | [github.com/pgsty](https://github.com/pgsty) |
30+
| Documentation | [piglet.run](https://piglet.run) |
31+
| Discord | [Join Community](https://discord.gg/wDzt5VyWEz) |
32+
| Pigsty | [pigsty.io](https://pigsty.io) |
33+
34+
## Topics
35+
36+
| Topic | Description |
37+
|-------|-------------|
38+
| [License](/docs/about/license/) | Open source license (Apache 2.0) |

0 commit comments

Comments
 (0)