AppManager: Add API endpoint to install dodo app
Refactors cue definitions.
Next steps:
* Needs some cleanup, namespace is hard coded ...
* Maybe merge with regular install API
* Support exposing ports across clusters
Change-Id: Ibfc3c3f742b61f2c5874012fe6c77b958eae81d9
diff --git a/core/installer/canvas-app.cue b/core/installer/canvas-app.cue
new file mode 100644
index 0000000..a8be305
--- /dev/null
+++ b/core/installer/canvas-app.cue
@@ -0,0 +1,37 @@
+POST http://localhost:8080/api/dodo-app
+Content-Type: application/json
+
+{
+ "id": "canvas",
+ "sshPrivateKey": "",
+ "config": {
+ "service": [{
+ "name": "app",
+ "type": "golang:1.24.0",
+ "source": {
+ "repository": "https://code.v1.dodo.cloud/pcloud",
+ "branch": "test-canvas",
+ "rootDir": "apps/canvas/server"
+ },
+ "ingress": {
+ "network": "private",
+ "subdomain": "canvas",
+ "auth": {
+ "enabled": false
+ }
+ },
+ "dev": {
+ "enabled": false
+ }
+ }],
+ "mongodb": [{
+ "name": "pgg",
+ "size": "2Gi",
+ "expose": [{
+ "network": "private",
+ "subdomain": "mongoo"
+ }]
+ }],
+ "cluster": "ct"
+ }
+}