DodoApp: Fix volume handling
Change-Id: I84c6ea063bbd97ee6d2c4b11693b4a43df889c3c
diff --git a/core/installer/app_configs/dodo_app.cue b/core/installer/app_configs/dodo_app.cue
index 41e668d..2966704 100644
--- a/core/installer/app_configs/dodo_app.cue
+++ b/core/installer/app_configs/dodo_app.cue
@@ -617,7 +617,7 @@
managerAddr: input.managerAddr
volumes: [
for v in svc.volume {
- name: v.name
+ name: v
mountPath: "/dodo/volume/\(v)"
},
]
diff --git a/core/installer/samples/canvas.rest b/core/installer/samples/canvas.rest
index b018cdb..7454e5e 100644
--- a/core/installer/samples/canvas.rest
+++ b/core/installer/samples/canvas.rest
@@ -1,4 +1,4 @@
-POST http://appmanager.hgrz-appmanager.svc.cluster.local/api/dodo-app
+PUT http://appmanager.hgrz-appmanager.svc.cluster.local/api/dodo-app/dodo-app-gry
Content-Type: application/json
{
@@ -6,13 +6,13 @@
"service": [
{
"dev": {
- "enabled": true,
- "username": "gio"
+ "enabled": false
},
"ingress": [
{
"auth": {
- "enabled": true
+ "enabled": true,
+ "noAuthPathPatterns": ["^/api/webhook/github/push$"]
},
"network": "public",
"port": {
@@ -26,15 +26,31 @@
{
"name": "web",
"value": 8080
- }
+ },
+ {
+ "name": "api",
+ "value": 8081
+ }
],
"source": {
"branch": "main",
"repository": "https://code.v1.dodo.cloud/pcloud",
- "rootDir": "apps/canvas"
+ "rootDir": "apps/canvas/back"
},
- "type": "nodejs:23.1.0"
+ "type": "nodejs:23.1.0",
+ "volume": ["data"],
+ "preBuildCommands": [{
+ "bin": "cd ../front && npm install && npm run build"
+ }, {
+ "bin": "npx prisma deploy"
+ }, {
+ "bin": "npx prisma generate"
+ }]
}
- ]
+ ],
+ "volume": [{
+ "name": "data",
+ "size": "1Gi"
+ }]
}
}