@fabioplunser/epd 0.5.18 → 0.5.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -17
- package/bin/epd.js +0 -0
- package/dist/cli.js +333 -94
- package/package.json +15 -29
- package/docs/.vitepress/config.mts +0 -92
- package/docs/.vitepress/theme/DeployAnimation.vue +0 -989
- package/docs/.vitepress/theme/index.ts +0 -10
- package/docs/.vitepress/theme/style.css +0 -151
- package/docs/agents.md +0 -166
- package/docs/ci-cd.md +0 -152
- package/docs/getting-started.md +0 -296
- package/docs/guide/accessories.md +0 -103
- package/docs/guide/architecture.md +0 -94
- package/docs/guide/blue-green.md +0 -93
- package/docs/guide/dashboard-validation.md +0 -181
- package/docs/guide/deployment-modes.md +0 -135
- package/docs/guide/getting-started.md +0 -296
- package/docs/guide/high-availability.md +0 -89
- package/docs/guide/installation.md +0 -124
- package/docs/guide/multi-site.md +0 -101
- package/docs/guide/private-repositories.md +0 -44
- package/docs/guide/routing.md +0 -129
- package/docs/guide/secrets.md +0 -132
- package/docs/guide/server-baseline.md +0 -104
- package/docs/guide/storage-validation.md +0 -40
- package/docs/guide/troubleshooting.md +0 -113
- package/docs/guide.md +0 -150
- package/docs/hetzner-dns.md +0 -95
- package/docs/index.md +0 -44
- package/docs/public/CNAME +0 -1
- package/docs/public/favicon.svg +0 -52
- package/docs/public/llms-full.txt +0 -344
- package/docs/public/llms.txt +0 -43
- package/docs/reference/cli.md +0 -510
- package/docs/reference/config.md +0 -237
package/README.md
CHANGED
|
@@ -25,29 +25,50 @@ Multiple machines, load balancing and failover are first-class: replicas are
|
|
|
25
25
|
balanced by Traefik, and with `cross_host: true` every server's proxy balances
|
|
26
26
|
across every server's replicas, so one machine can serve while another is down.
|
|
27
27
|
|
|
28
|
-
📖 **Documentation Site:** [
|
|
29
|
-
📖 **User Manual & Full Reference:** [Complete Guide](docs/guide.md)
|
|
28
|
+
📖 **Documentation Site:** [epddocs.peppi.dev](https://epddocs.peppi.dev)
|
|
29
|
+
📖 **User Manual & Full Reference:** [Complete Guide](apps/docs/guide.md)
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
33
33
|
## Monorepo
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
| Path | What it is | Develop |
|
|
36
|
+
|---|---|---|
|
|
37
|
+
| [`packages/cli`](packages/cli) | The `epd` CLI, published to npm as `@fabioplunser/epd` and as standalone binaries | `cd packages/cli && bun run start` |
|
|
38
|
+
| [`apps/dashboard`](apps/dashboard) | The self-hosted dashboard for deployments, servers, CrowdSec, metrics, logs and notifications. Its image bundles the CLI. | `cd apps/dashboard && bun run dev` |
|
|
39
|
+
| [`apps/docs`](apps/docs) | The VitePress documentation site, hosted through EPD | `cd apps/docs && bun run dev` |
|
|
40
|
+
|
|
41
|
+
Use Bun 1.4.2, as specified in `.bun-version` and `package.json`. Run one install from the repository root. Each workspace has its own build and development commands. CI checks affected workspaces, including the dashboard when the CLI it bundles changes. CLI releases use `v*` tags.
|
|
36
42
|
|
|
37
43
|
```bash
|
|
38
44
|
bun install --frozen-lockfile
|
|
39
|
-
bun run
|
|
40
|
-
bun run
|
|
41
|
-
bun run
|
|
42
|
-
bun run
|
|
45
|
+
bun run cli:test # or cli:typecheck, cli:build
|
|
46
|
+
bun run dashboard:dev # or dashboard:check, dashboard:test, dashboard:build
|
|
47
|
+
bun run docs:dev
|
|
48
|
+
bun run check # CLI types and dashboard diagnostics
|
|
49
|
+
bun run test # CLI and dashboard unit tests
|
|
50
|
+
bun run build # CLI, dashboard and docs production builds
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Run the CLI from the repository root so it finds this checkout's `epd.yml` and `.env`:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
bun run cli --help
|
|
57
|
+
bun run deploy --dry-run
|
|
58
|
+
bun run deploy
|
|
43
59
|
```
|
|
44
60
|
|
|
61
|
+
The checked-in deployment targets `edp.peppi.dev` on peppi.dev. Its secrets stay in the ignored root `.env`. The deployment hooks connect the dashboard to the existing monitoring stack and stop the old Compose dashboard after health checks pass. On macOS, start the local container VM with `podman machine start` before building or deploying.
|
|
62
|
+
|
|
63
|
+
Deploy the docs separately with `bun run docs:deploy`. The root `epd.docs.yml` builds `apps/docs/Dockerfile` and serves the site at `https://epddocs.peppi.dev`. It uses the existing Caddy proxy, loopback ports 8600 and 8616 for blue/green deployments, and `CLOUDFLARE_API_TOKEN` from the root `.env` for DNS. The static server supports direct links to VitePress pages and returns HTTP 404 for missing pages. This deployment does not require GitHub Pages. The Pages workflow remains available as a separate publishing option.
|
|
64
|
+
|
|
45
65
|
To self-host on a Linux server with Docker Compose and WireGuard support:
|
|
46
66
|
|
|
47
67
|
```bash
|
|
68
|
+
cd apps/dashboard
|
|
48
69
|
cp .env.example .env
|
|
49
70
|
# Set the values in .env before starting.
|
|
50
|
-
bun run
|
|
71
|
+
bun run up
|
|
51
72
|
```
|
|
52
73
|
|
|
53
74
|
Set `ORIGIN` to the HTTPS dashboard URL, `MONITOR_WG_ENDPOINT` to its public `hostname:51820`, and a strong `EPD_ADMIN_PASSWORD`. Generate separate persistent `EPD_SESSION_SECRET` and `UI_ENCRYPTION_KEY` values with `openssl rand -base64 32`. Allow incoming UDP 51820 and put port 3000 behind your HTTPS reverse proxy.
|
|
@@ -101,7 +122,7 @@ Standalone binaries are also downloadable directly from [GitHub Releases](https:
|
|
|
101
122
|
|
|
102
123
|
```bash
|
|
103
124
|
git clone https://github.com/FabioPlunser/epd.git && cd epd && bun install
|
|
104
|
-
bun run build
|
|
125
|
+
bun run cli:build # compiles packages/cli/dist/cli.js and packages/cli/dist/epd
|
|
105
126
|
```
|
|
106
127
|
|
|
107
128
|
Source builds need Bun. Deployments need an SSH client. Container mode also needs
|
|
@@ -113,11 +134,18 @@ scripts, and the dashboard SSH test runner select a running Docker, Podman or ne
|
|
|
113
134
|
engine, in that order. OrbStack, Colima and Rancher Desktop can work through
|
|
114
135
|
their Docker-compatible CLI. Set `container_engine: podman` in `epd.yml`,
|
|
115
136
|
or use a custom Docker-compatible executable name or path. The environment
|
|
116
|
-
variable `EPD_CONTAINER_ENGINE` overrides YAML. When
|
|
117
|
-
session
|
|
137
|
+
variable `EPD_CONTAINER_ENGINE` overrides YAML. When an engine is installed but
|
|
138
|
+
not running, a terminal session offers to start it: `podman machine start` (after
|
|
139
|
+
`podman machine init` if no machine exists), Docker Desktop in the background,
|
|
140
|
+
OrbStack, Colima, Rancher Desktop or the system service. epd then waits until the
|
|
141
|
+
engine answers. Scripts and CI fail with setup instructions instead of asking.
|
|
118
142
|
An explicit choice never silently falls back.
|
|
119
143
|
|
|
120
|
-
|
|
144
|
+
Build, push and engine start output is drawn in a frame under the step that
|
|
145
|
+
started it, with image digests shortened. `--log-format json` and run logs keep
|
|
146
|
+
every line unchanged.
|
|
147
|
+
|
|
148
|
+
To run the dashboard locally with Podman on macOS, start the VM first. Then run
|
|
121
149
|
`bun run dashboard:up` as usual. Podman Compose needs an installed Compose
|
|
122
150
|
provider such as `podman-compose`. Podman builds use the configured platform
|
|
123
151
|
and Docker image format so images can be loaded on Docker servers.
|
|
@@ -140,7 +168,7 @@ refuses to overwrite an existing file. No AI account is needed to read the guide
|
|
|
140
168
|
|
|
141
169
|
Remote servers still use Docker, including provisioning, container management,
|
|
142
170
|
and monitoring. Keep `mode: docker` in `epd.yml` when building locally with
|
|
143
|
-
Podman. The older `test/e2e/*.sh` suites share a Docker socket and still require
|
|
171
|
+
Podman. The older `packages/cli/test/e2e/*.sh` suites share a Docker socket and still require
|
|
144
172
|
Docker. Privileged integration suites also need the kernel capabilities their
|
|
145
173
|
fixtures use, such as WireGuard and nested containers.
|
|
146
174
|
|
|
@@ -574,7 +602,7 @@ Generate this workflow file automatically when creating your project:
|
|
|
574
602
|
epd init --ci
|
|
575
603
|
```
|
|
576
604
|
|
|
577
|
-
For detailed guides on setting up SSH deploy keys, using GitHub Container Registry (`ghcr.io`), or multi-environment deployments, see the [GitHub Actions CI/CD Guide](https://
|
|
605
|
+
For detailed guides on setting up SSH deploy keys, using GitHub Container Registry (`ghcr.io`), or multi-environment deployments, see the [GitHub Actions CI/CD Guide](https://epddocs.peppi.dev/ci-cd).
|
|
578
606
|
|
|
579
607
|
---
|
|
580
608
|
|
|
@@ -603,6 +631,8 @@ For detailed guides on setting up SSH deploy keys, using GitHub Container Regist
|
|
|
603
631
|
|
|
604
632
|
Global flags: `-c/--config`, `-d/--destination`, `-v/--verbose`.
|
|
605
633
|
|
|
634
|
+
Without `--config`, EPD checks the current directory and parents, then searches the Git project tree for a config such as `deploy/epd.yml`. Outside Git, it searches the current subtree. Dependency folders, build output and nested repositories are excluded from the tree search. If several directories contain configs, choose one with `epd deploy --config deploy/docs/epd.yml`. Relative paths and `.env` files use the config's directory. See [config discovery](apps/docs/reference/cli.md#config-discovery).
|
|
635
|
+
|
|
606
636
|
### Generating the docker command
|
|
607
637
|
|
|
608
638
|
```bash
|
|
@@ -659,9 +689,9 @@ block. Set `port_base:` in one of them to any free multiple of 256.
|
|
|
659
689
|
## Tests
|
|
660
690
|
|
|
661
691
|
```bash
|
|
662
|
-
bun test
|
|
663
|
-
./test/e2e/run.sh # real deploy over ssh: docker mode, two apps, rollback
|
|
664
|
-
./test/e2e/process.sh # real deploy over ssh: process mode, pm2, no docker
|
|
692
|
+
bun run cli:test # config, routing, port allocation, health probes
|
|
693
|
+
./packages/cli/test/e2e/run.sh # real deploy over ssh: docker mode, two apps, rollback
|
|
694
|
+
./packages/cli/test/e2e/process.sh # real deploy over ssh: process mode, pm2, no docker
|
|
665
695
|
```
|
|
666
696
|
|
|
667
697
|
The end-to-end tests build a throwaway "server" container running sshd and
|
package/bin/epd.js
CHANGED
|
File without changes
|