aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2024-01-27 22:09:21 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2024-01-27 22:09:21 +0200
commite61ba22c191fd9cf7bc4301b9a56ab228ab84c95 (patch)
tree2c5d0f7c7aa710ddae0fcfe74aa05fb92204236f /examples
parentcd7dd3248aaa93e15db042070e41c52a3272a56c (diff)
Implement basic build
Diffstat (limited to 'examples')
-rw-r--r--examples/apply-config-eval7
-rw-r--r--examples/build-manifest9
-rw-r--r--examples/desmorc4
3 files changed, 18 insertions, 2 deletions
diff --git a/examples/apply-config-eval b/examples/apply-config-eval
new file mode 100644
index 0000000..80678cb
--- /dev/null
+++ b/examples/apply-config-eval
@@ -0,0 +1,7 @@
+(let ((replicas 9))
+
+ `#(((name . "foobar")
+ (base . "14.0-RELEASE-base")
+ (packages . #())
+ (commands . #())
+ (replicas . ,(+ 1 replicas)))))
diff --git a/examples/build-manifest b/examples/build-manifest
new file mode 100644
index 0000000..d0c0e56
--- /dev/null
+++ b/examples/build-manifest
@@ -0,0 +1,9 @@
+((packages
+ . #("nginx"))
+ (files
+ . #("nginx.conf"))
+ (build-commands
+ . #("sysrc nginx_enable=YES"))
+ (start-command
+ . "nginx -c nginx.conf"))
+
diff --git a/examples/desmorc b/examples/desmorc
index 53ff809..9841c81 100644
--- a/examples/desmorc
+++ b/examples/desmorc
@@ -1,2 +1,2 @@
-((mgmt-api-url "http://localhost:9939")
- (mgmt-api-key "foobar"))
+((mgmt-api-url . "http://localhost:9939")
+ (mgmt-api-key . "foobar"))