@aifabrix/builder 2.3.6 → 2.5.0
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 +3 -0
- package/lib/app-down.js +123 -0
- package/lib/app.js +4 -2
- package/lib/build.js +19 -13
- package/lib/cli.js +52 -9
- package/lib/config.js +83 -8
- package/lib/env-reader.js +3 -2
- package/lib/generator.js +0 -9
- package/lib/infra.js +30 -3
- package/lib/schema/application-schema.json +0 -15
- package/lib/schema/env-config.yaml +8 -8
- package/lib/secrets.js +167 -253
- package/lib/templates.js +10 -18
- package/lib/utils/api-error-handler.js +182 -147
- package/lib/utils/api.js +144 -354
- package/lib/utils/build-copy.js +6 -13
- package/lib/utils/compose-generator.js +2 -1
- package/lib/utils/device-code.js +349 -0
- package/lib/utils/env-config-loader.js +102 -0
- package/lib/utils/env-copy.js +131 -0
- package/lib/utils/env-endpoints.js +209 -0
- package/lib/utils/env-map.js +116 -0
- package/lib/utils/env-ports.js +60 -0
- package/lib/utils/environment-checker.js +39 -6
- package/lib/utils/image-name.js +49 -0
- package/lib/utils/paths.js +40 -18
- package/lib/utils/secrets-generator.js +3 -3
- package/lib/utils/secrets-helpers.js +359 -0
- package/lib/utils/secrets-path.js +24 -71
- package/lib/utils/secrets-url.js +38 -0
- package/lib/utils/secrets-utils.js +0 -41
- package/lib/utils/variable-transformer.js +0 -9
- package/package.json +1 -1
- package/templates/applications/README.md.hbs +9 -5
- package/templates/applications/miso-controller/env.template +1 -1
- package/templates/infra/compose.yaml +4 -0
- package/templates/infra/compose.yaml.hbs +9 -4
|
@@ -16,7 +16,7 @@ services:
|
|
|
16
16
|
ports:
|
|
17
17
|
- "{{postgresPort}}:5432"
|
|
18
18
|
volumes:
|
|
19
|
-
- dev{{devId}}_postgres_data:/var/lib/postgresql/data
|
|
19
|
+
- {{#if (eq devId 0)}}postgres_data{{else}}dev{{devId}}_postgres_data{{/if}}:/var/lib/postgresql/data
|
|
20
20
|
- ./init-scripts:/docker-entrypoint-initdb.d
|
|
21
21
|
networks:
|
|
22
22
|
- {{networkName}}
|
|
@@ -35,7 +35,7 @@ services:
|
|
|
35
35
|
ports:
|
|
36
36
|
- "{{redisPort}}:6379"
|
|
37
37
|
volumes:
|
|
38
|
-
- dev{{devId}}_redis_data:/data
|
|
38
|
+
- {{#if (eq devId 0)}}redis_data{{else}}dev{{devId}}_redis_data{{/if}}:/data
|
|
39
39
|
networks:
|
|
40
40
|
- {{networkName}}
|
|
41
41
|
healthcheck:
|
|
@@ -55,6 +55,8 @@ services:
|
|
|
55
55
|
PGADMIN_CONFIG_SERVER_MODE: 'False'
|
|
56
56
|
ports:
|
|
57
57
|
- "{{pgadminPort}}:80"
|
|
58
|
+
volumes:
|
|
59
|
+
- {{#if (eq devId 0)}}pgadmin_data{{else}}dev{{devId}}_pgadmin_data{{/if}}:/var/lib/pgadmin
|
|
58
60
|
restart: unless-stopped
|
|
59
61
|
depends_on:
|
|
60
62
|
postgres:
|
|
@@ -81,12 +83,15 @@ services:
|
|
|
81
83
|
- {{networkName}}
|
|
82
84
|
|
|
83
85
|
volumes:
|
|
84
|
-
dev{{devId}}_postgres_data:
|
|
86
|
+
{{#if (eq devId 0)}}postgres_data{{else}}dev{{devId}}_postgres_data{{/if}}:
|
|
85
87
|
name: {{#if (eq devId 0)}}infra_postgres_data{{else}}infra_dev{{devId}}_postgres_data{{/if}}
|
|
86
88
|
driver: local
|
|
87
|
-
dev{{devId}}_redis_data:
|
|
89
|
+
{{#if (eq devId 0)}}redis_data{{else}}dev{{devId}}_redis_data{{/if}}:
|
|
88
90
|
name: {{#if (eq devId 0)}}infra_redis_data{{else}}infra_dev{{devId}}_redis_data{{/if}}
|
|
89
91
|
driver: local
|
|
92
|
+
{{#if (eq devId 0)}}pgadmin_data{{else}}dev{{devId}}_pgadmin_data{{/if}}:
|
|
93
|
+
name: {{#if (eq devId 0)}}infra_pgadmin_data{{else}}infra_dev{{devId}}_pgadmin_data{{/if}}
|
|
94
|
+
driver: local
|
|
90
95
|
|
|
91
96
|
networks:
|
|
92
97
|
{{networkName}}:
|