@leverege/build-tools 2.50.13 → 2.50.15
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.50.
|
|
3
|
+
"version": "2.50.15",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -61,19 +61,19 @@
|
|
|
61
61
|
"command-line-usage": "^7.0.1",
|
|
62
62
|
"deepmerge": "^4.3.1",
|
|
63
63
|
"enquirer": "^2.4.1",
|
|
64
|
-
"execa": "^9.
|
|
64
|
+
"execa": "^9.2.0",
|
|
65
65
|
"glob": "^10.4.1",
|
|
66
66
|
"handlebars": "^4.7.8",
|
|
67
67
|
"inquirer": "^9.2.23",
|
|
68
68
|
"js-yaml": "^4.1.0",
|
|
69
69
|
"ms": "^2.1.3",
|
|
70
|
-
"npm-registry-fetch": "^17.0
|
|
70
|
+
"npm-registry-fetch": "^17.1.0",
|
|
71
71
|
"package-up": "^5.0.0",
|
|
72
72
|
"parse-gitignore": "^2.0.0",
|
|
73
73
|
"read-pkg": "^9.0.1",
|
|
74
74
|
"readline-sync": "^1.4.10",
|
|
75
75
|
"semver": "^7.6.2",
|
|
76
|
-
"simple-git": "^3.
|
|
76
|
+
"simple-git": "^3.25.0",
|
|
77
77
|
"zx": "^8.1.2"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
package/src/circleate.sh
CHANGED
package/src/dockreate.sh
CHANGED
|
@@ -98,7 +98,7 @@ DOCKERPLUGIN
|
|
|
98
98
|
# $3 = additional packages to install (htop redis-cli etc)
|
|
99
99
|
create_Dockerfile() {
|
|
100
100
|
local regvers="${1}"
|
|
101
|
-
local nodeimg="${2:-
|
|
101
|
+
local nodeimg="${2:-iron-alpine}"
|
|
102
102
|
local apkadds="${3}"
|
|
103
103
|
|
|
104
104
|
create_DockerfilePlugin
|
|
@@ -236,7 +236,7 @@ fi
|
|
|
236
236
|
|
|
237
237
|
# TODO: these should be combined into one require
|
|
238
238
|
nodeimg=$(packageJson '.leverege.nodeimg')
|
|
239
|
-
nodeimg="${nodeimg:-
|
|
239
|
+
nodeimg="${nodeimg:-iron-alpine}"
|
|
240
240
|
apkadds=$(packageJson '.leverege.apkadds')
|
|
241
241
|
runuser=$(packageJson '.leverege.runuser')
|
|
242
242
|
[ -z "${runuser}" ] && runuser='node'
|
|
@@ -4,7 +4,7 @@ showInstalling "Grafana"
|
|
|
4
4
|
|
|
5
5
|
addHelmRepo grafana https://grafana.github.io/helm-charts
|
|
6
6
|
|
|
7
|
-
[ -z "$GRAFANA_CHART_VERSION" ] && GRAFANA_CHART_VERSION="
|
|
7
|
+
[ -z "$GRAFANA_CHART_VERSION" ] && GRAFANA_CHART_VERSION="8"
|
|
8
8
|
helm upgrade --install grafana grafana/grafana \
|
|
9
9
|
--namespace monitoring --create-namespace \
|
|
10
10
|
--values grafana/grafana-local.yaml \
|
|
@@ -4,7 +4,7 @@ showInstalling "Redis"
|
|
|
4
4
|
|
|
5
5
|
OCI_CHART="oci://registry-1.docker.io/bitnamicharts/redis"
|
|
6
6
|
|
|
7
|
-
[ -z "$REDIS_CHART_VERSION" ] && REDIS_CHART_VERSION="19.5.
|
|
7
|
+
[ -z "$REDIS_CHART_VERSION" ] && REDIS_CHART_VERSION="19.5.4"
|
|
8
8
|
|
|
9
9
|
helm upgrade --install redis $OCI_CHART \
|
|
10
10
|
--values redis/redis-local.yaml \
|
package/src/overwhelm.mjs
CHANGED
|
@@ -74,6 +74,13 @@ if ( fs.existsSync( 'values-default.yaml' ) ) {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
// Avoid race condition when running overwhelm for the first time on a new
|
|
78
|
+
// cluster and the default-configs.yaml file has yet to be created.
|
|
79
|
+
const defaultConfigs = 'default-configs.yaml'
|
|
80
|
+
if ( !fs.existsSync( defaultConfigs ) ) {
|
|
81
|
+
fs.closeSync( fs.openSync( defaultConfigs, 'w' ) ) // same as unix touch
|
|
82
|
+
}
|
|
83
|
+
|
|
77
84
|
// Load the default values and then overlay with the project specific yaml
|
|
78
85
|
// values. This supports the notion of this type of approach in the
|
|
79
86
|
// overwhelm yaml settings:
|
|
@@ -201,7 +208,7 @@ const doReplacements = ( yamls, replacements ) => {
|
|
|
201
208
|
|
|
202
209
|
// Collect all of the yaml from the yams...
|
|
203
210
|
const buildYaml = ( yamls, replacements ) => {
|
|
204
|
-
const always = [
|
|
211
|
+
const always = [ defaultConfigs ]
|
|
205
212
|
const values = [ ...always, ...yamls ]
|
|
206
213
|
const loaded = []
|
|
207
214
|
let allYamls = ''
|