@aifabrix/builder 2.3.3 → 2.3.4

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 CHANGED
@@ -11,6 +11,12 @@ Local development infrastructure + Azure deployment tool.
11
11
  npm install -g @aifabrix/builder
12
12
  ```
13
13
 
14
+ OR
15
+
16
+ ```bash
17
+ sudo npm install -g @aifabrix/builder
18
+ ```
19
+
14
20
  ## Quick Start
15
21
 
16
22
  ```bash
@@ -16,6 +16,9 @@ const handlebars = require('handlebars');
16
16
  const config = require('../config');
17
17
  const buildCopy = require('./build-copy');
18
18
 
19
+ // Register commonly used helpers
20
+ handlebars.registerHelper('eq', (a, b) => a === b);
21
+
19
22
  // Register Handlebars helper for quoting PostgreSQL identifiers
20
23
  // PostgreSQL requires identifiers with hyphens or special characters to be quoted
21
24
  handlebars.registerHelper('pgQuote', (identifier) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aifabrix/builder",
3
- "version": "2.3.3",
3
+ "version": "2.3.4",
4
4
  "description": "AI Fabrix Local Fabric & Deployment SDK",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -82,8 +82,10 @@ services:
82
82
 
83
83
  volumes:
84
84
  dev{{devId}}_postgres_data:
85
+ name: {{#if (eq devId 0)}}infra_postgres_data{{else}}infra_dev{{devId}}_postgres_data{{/if}}
85
86
  driver: local
86
87
  dev{{devId}}_redis_data:
88
+ name: {{#if (eq devId 0)}}infra_redis_data{{else}}infra_dev{{devId}}_redis_data{{/if}}
87
89
  driver: local
88
90
 
89
91
  networks:
@@ -14,7 +14,7 @@ services:
14
14
  - {{networkName}}
15
15
  {{#if requiresStorage}}
16
16
  volumes:
17
- - "{{mountVolume}}:/mnt/data"
17
+ - {{#if (eq devId 0)}}aifabrix_{{app.key}}_data{{else}}aifabrix_dev{{devId}}_{{app.key}}_data{{/if}}:/mnt/data
18
18
  {{/if}}
19
19
  healthcheck:
20
20
  test: ["CMD", "curl", "-f", "http://localhost:{{port}}{{healthCheck.path}}"]
@@ -98,6 +98,19 @@ services:
98
98
  restart: "no"
99
99
  {{/if}}
100
100
 
101
+ {{#if requiresStorage}}
102
+ volumes:
103
+ {{#if (eq devId 0)}}
104
+ aifabrix_{{app.key}}_data:
105
+ name: aifabrix_{{app.key}}_data
106
+ driver: local
107
+ {{else}}
108
+ aifabrix_dev{{devId}}_{{app.key}}_data:
109
+ name: aifabrix_dev{{devId}}_{{app.key}}_data
110
+ driver: local
111
+ {{/if}}
112
+ {{/if}}
113
+
101
114
  networks:
102
115
  {{networkName}}:
103
116
  external: true
@@ -14,7 +14,7 @@ services:
14
14
  - {{networkName}}
15
15
  {{#if requiresStorage}}
16
16
  volumes:
17
- - "{{mountVolume}}:/mnt/data"
17
+ - {{#if (eq devId 0)}}aifabrix_{{app.key}}_data{{else}}aifabrix_dev{{devId}}_{{app.key}}_data{{/if}}:/mnt/data
18
18
  {{/if}}
19
19
  healthcheck:
20
20
  test: ["CMD", "curl", "-f", "http://localhost:{{port}}{{healthCheck.path}}"]
@@ -98,6 +98,19 @@ services:
98
98
  restart: "no"
99
99
  {{/if}}
100
100
 
101
+ {{#if requiresStorage}}
102
+ volumes:
103
+ {{#if (eq devId 0)}}
104
+ aifabrix_{{app.key}}_data:
105
+ name: aifabrix_{{app.key}}_data
106
+ driver: local
107
+ {{else}}
108
+ aifabrix_dev{{devId}}_{{app.key}}_data:
109
+ name: aifabrix_dev{{devId}}_{{app.key}}_data
110
+ driver: local
111
+ {{/if}}
112
+ {{/if}}
113
+
101
114
  networks:
102
115
  {{networkName}}:
103
116
  external: true