You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/env/README.md
+45-21Lines changed: 45 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,12 +188,6 @@ dev: env.#Container & {
188
188
}
189
189
```
190
190
191
-
### Things you can do
192
-
193
-
- use `env.Terminal`, `--on-failure`, `--no-exit`, or `hof env run` to enter interactive terminal sessions. Great for debugging failed image builds or CI.
194
-
- put schemas on your Ansible equivalent templated config file rendering
195
-
- sequence and order Terraform + Helm operations
196
-
197
191
### Run an example
198
192
199
193
```sh
@@ -253,28 +247,29 @@ cd k8s && \
253
247
254
248
#### CUE (user) files
255
249
256
-
[todo] make these links
257
-
258
250
-[schemas/env](../../schemas/env)
259
251
-[catalogs/env](../../catalogs/env) (important, these are ordered to avoid cycles)
260
-
-_note_, catalogs/env is an example and you can make your own, the only requirement is using the schemas/env
261
-
-`utils/` helpers that only import veg/schemas/...
262
-
-`bases/` operating systems and other basie images manually crafted, even from scratch
263
-
-`packs/` abstractions, collections, and other reusable packs of env stuff
252
+
- _note_, catalogs/env is an example and you can make your own, the only requirement is using the schemas/env
253
+
- `utils/` helpers that only import veg/schemas/...
254
+
- `bases/` operating systems and other basie images manually crafted, even from scratch
255
+
- `packs/` abstractions, collections, and other reusable packs of env stuff
264
256
-[`.veg/`](../../.veg) the kitchen sink, it's all the things for this repo
265
257
-[examples/env](../../examples/env/)
266
-
-`basic/` multi-stage build and 3-tier app
267
-
-`adk/`commands example with matrix test & lint
268
-
-`atproto/`docker compose like setup & app, full network in an env
258
+
- `basic/` multi-stage build and 3-tier app
259
+
- `advanced/` demonstrates more complex patterns and day-2 features
260
+
- `adk/` commands example with matrix test and lint
269
261
- `inception/` using docker, dagger, hof, helm, kubernetes from inside an env
270
262
263
+
Links to more examples can be found below.
264
+
271
265
#### Go (impl) files:
272
266
273
-
-`lib/env/...`
267
+
Everything is under`lib/env/...`
274
268
275
269
> [!INFO] > `schemas/env` and `lib/env/dag` align very closely. The `dag` package uses a new progressive CUE schema alignment and decoding strategy
276
270
> that works really, really well and will be used more widely in veg. It's also prime time for `veg gen`.
277
271
272
+
278
273
### The `veg/env` command
279
274
280
275
The `veg/env` command aims to be flexible, extensible, and consistent
@@ -528,11 +523,11 @@ These are artifacts, intermediates, or resources you can work with
528
523
529
524
## Examples
530
525
531
-
### Multi-Stage Builds and Beyond, DAG style
526
+
This repo is an excellent example, [`.veg/`](../../.veg) is a kitchen sink, it's all the things for this repo
527
+
528
+
[verdverm/testnet](https://github.com/verdverm/testnet) has a docker-compose like setup for [ATProtocol](https://atproto.com), build social apps, develop algos, run independent networks locally or for testing.
532
529
533
-
- multi-stage
534
-
- no need for yum rm
535
-
- how binaries and dirs work
530
+
### Debian Base Container with Apt Caches
536
531
537
532
That long-time advice to install packages like this: `apt update && apt install && apt clean`... it's over!
538
533
We can now attach caches, just like we do for languages like `go.mod` and `node_modules`,
@@ -722,14 +717,43 @@ cmd: {
722
717
723
718
```
724
719
720
+
725
721
### Release Bundles
726
722
727
723
You can define release bundles and then assemble and publish them with a single command.
0 commit comments