@leverege/build-tools 2.93.7 → 2.93.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.93.7",
3
+ "version": "2.93.9",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -20,6 +20,7 @@
20
20
  "build-cnpg-image": "src/build-cnpg-image.mjs",
21
21
  "build-tools": "src/build-tools.mjs",
22
22
  "change-up": "src/change-up.sh",
23
+ "chart-compass": "src/chart-compass.mjs",
23
24
  "chart-to-museum": "src/chart-to-museum.mjs",
24
25
  "chart-to-registry": "src/chart-to-registry.mjs",
25
26
  "circleate": "src/circleate.sh",
package/src/Docker.mjs CHANGED
@@ -23,7 +23,7 @@ const DIRNAME = path.dirname( url.fileURLToPath( import.meta.url ) )
23
23
  //
24
24
  // See the latest docker images here => https://hub.docker.com/_/node
25
25
  //
26
- const dockerfileNodeVersion = process.env.DOCKER_BUILD_NODE_VERSION || '24.12.0-alpine3.23'
26
+ const dockerfileNodeVersion = process.env.DOCKER_BUILD_NODE_VERSION || '22.21.1-alpine3.23' // TODO: 1/1/26 => '24.12.0-alpine3.23'
27
27
  const dockerfileNpmVersion = process.env.DOCKER_BUILD_NPM_VERSION || '11.6.0'
28
28
 
29
29
  // The contents of these variables were initially located in files that live in
@@ -79,7 +79,7 @@ if ( args._unknown ) {
79
79
 
80
80
  const minNodejsVersion = '22.13.0'
81
81
  if ( semverLt( process.version, minNodejsVersion ) ) {
82
- warning( `suggest upgrading to at least node ${minNodejsVersion} - xxx\n` )
82
+ warning( `suggest upgrading to at least node ${minNodejsVersion}\n` )
83
83
  }
84
84
 
85
85
  // First of all, fail if we are not in a git repository
@@ -116,20 +116,33 @@ const buildCompassMap = ( yamlFile ) => {
116
116
  return chartCompass
117
117
  }
118
118
 
119
- const findChartUrl = ( config, chartName ) => {
120
- if ( !chartName ) {
121
- errorExit( 'no chart name speficied' )
122
- }
119
+ const findChartUrl = ( config, serviceName ) => {
120
+ if ( !serviceName ) errorExit( 'no chart name specified' )
123
121
 
124
122
  for ( const entry of config ) {
125
123
  const chartsPath = entry.charts_path || 'charts'
126
- for ( const [ repo, charts ] of Object.entries( entry.repositories ) ) {
127
- debug( { repo, charts }, `<==findChartUrl in repo ${chalk.bold.yellow( repo )}` )
128
- if ( charts.includes( chartName ) ) {
129
- return `${entry.registry}/${repo}/${chartsPath}/${chartName}`
124
+ const repositories = entry.repositories || {}
125
+
126
+ for ( const [ repo, chartMap ] of Object.entries( repositories ) ) {
127
+ debug( { repo, chartMap }, `<== findChartUrl in repo ${repo}` )
128
+
129
+ for ( const [ chartKey, cfg ] of Object.entries( chartMap ) ) {
130
+ const chartCfg = cfg || {}
131
+ const chartArtifact = chartCfg.chart || chartKey
132
+ const aliases = chartCfg.aliases || []
133
+
134
+ const matches =
135
+ serviceName === chartKey ||
136
+ serviceName === chartArtifact ||
137
+ aliases.includes( serviceName )
138
+
139
+ if ( matches ) {
140
+ return `${entry.registry}/${repo}/${chartsPath}/${chartArtifact}`
141
+ }
130
142
  }
131
143
  }
132
144
  }
145
+
133
146
  return undefined
134
147
  }
135
148
 
@@ -1,22 +1,27 @@
1
1
  - registry: us-docker.pkg.dev/leverege-registry
2
+ charts_path: charts
2
3
  repositories:
3
4
  stack:
4
- - api-server
5
- - authz-server
6
- - db-curator
7
- - emailer
8
- - imagine
9
- - message-processor
10
- - messenger
11
- - reason
12
- - resource-server
13
- - rule-enginer
14
- - scheduler
15
- - transponder-bq
16
- - transponder-dh
17
- - transponder-rt
18
- - transponder-tsdb
5
+ api-server: {}
6
+ authz-server: {}
7
+ db-curator: {}
8
+ emailer: {}
9
+ imagine: {}
10
+ message-processor: {}
11
+ messenger: {}
12
+ reason: {}
13
+ resource-server: {}
14
+ rule-enginer: {}
15
+ scheduler: {}
16
+
17
+ transponder:
18
+ aliases:
19
+ - transponder-bq
20
+ - transponder-dh
21
+ - transponder-rt
22
+ - transponder-tsdb
23
+
19
24
  leverege:
20
- - pubsub-pulse
21
- - pusher
22
- - overdose
25
+ pubsub-pulse: {}
26
+ pusher: {}
27
+ overdose: {}