@leverege/build-tools 2.18.2 → 2.19.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/lib/server/repo-init/config.tgz +0 -0
- package/package.json +2 -2
- package/src/decrypt-secrets +4 -1
- package/src/dockreate +6 -1
- package/src/helmup +2 -2
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.0",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -79,6 +79,6 @@
|
|
|
79
79
|
"@babel/node": "^7.18.6",
|
|
80
80
|
"@leverege/babel-preset-leverege-node": "^2.0.0",
|
|
81
81
|
"@leverege/eslint-config-leverege": "^3.0.1",
|
|
82
|
-
"npm": "^8.
|
|
82
|
+
"npm": "^8.14.0"
|
|
83
83
|
}
|
|
84
84
|
}
|
package/src/decrypt-secrets
CHANGED
|
@@ -56,10 +56,13 @@ initialize_gcloud() {
|
|
|
56
56
|
gcloud --quiet config set compute/zone ${GOOGLE_COMPUTE_ZONE}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
echo "***DUMPING ENVIRONMENT FROM DECRYPT-SECRETS BITBUCKET_CI=[$BITBUCKET_CI]"
|
|
60
|
+
env | sort
|
|
61
|
+
|
|
59
62
|
# If this is running from a BitBucket Pipeline then it is assumed that our
|
|
60
63
|
# custom image from the pipeline-image is executing which already has the
|
|
61
64
|
# Google SDK + gcloud installed - so just use it.
|
|
62
|
-
if [ "$
|
|
65
|
+
if [ "$BITBUCKET_CI" == "true" ];
|
|
63
66
|
then
|
|
64
67
|
printf " GCLOUD_PROJECT [$GCLOUD_PROJECT]\n"
|
|
65
68
|
printf " GCLOUD_COMPUTE_ZONE [$GCLOUD_COMPUTE_ZONE]\n"
|
package/src/dockreate
CHANGED
|
@@ -46,7 +46,7 @@ pluginFile="Dockerfile.plugin"
|
|
|
46
46
|
cleanup() {
|
|
47
47
|
[ ! -z "$DOCKER_SKIP_CLEANUP" ] && printf "\nSkipping clean up\n\n" && exit 1
|
|
48
48
|
printf "\nCleaning up and exiting...\n\n"
|
|
49
|
-
rm -rf ./workspace $SSHDIR .npmrc
|
|
49
|
+
rm -rf ./workspace ./scripts $SSHDIR .npmrc
|
|
50
50
|
exit 0
|
|
51
51
|
}
|
|
52
52
|
trap cleanup INT
|
|
@@ -156,6 +156,11 @@ alias inf='wget -q -O- localhost:5111/logLevel/info'
|
|
|
156
156
|
alias dbg='wget -q -O- localhost:5111/logLevel/debug'
|
|
157
157
|
alias trc='wget -q -O- localhost:5111/logLevel/trace'
|
|
158
158
|
|
|
159
|
+
socks()
|
|
160
|
+
{
|
|
161
|
+
netstat -ant | awk '{print $6}' | sort | uniq -c | sort -n
|
|
162
|
+
}
|
|
163
|
+
|
|
159
164
|
cmetrics()
|
|
160
165
|
{
|
|
161
166
|
wget -qO- localhost:5111/metrics
|
package/src/helmup
CHANGED
|
@@ -140,7 +140,7 @@ function createNamespaceIfNeeded(){
|
|
|
140
140
|
function installPrometheus() {
|
|
141
141
|
# Add the community helm repositories
|
|
142
142
|
addHelmRepo prometheus-community https://prometheus-community.github.io/helm-charts
|
|
143
|
-
[ -z "$PROMETHEUS_HELM_CHART" ] && PROMETHEUS_HELM_CHART="
|
|
143
|
+
[ -z "$PROMETHEUS_HELM_CHART" ] && PROMETHEUS_HELM_CHART="15"
|
|
144
144
|
helm upgrade --install prometheus prometheus-community/prometheus \
|
|
145
145
|
--namespace monitoring \
|
|
146
146
|
--values prometheus/values.yaml \
|
|
@@ -472,7 +472,7 @@ metadata:
|
|
|
472
472
|
name: cron-zombie-killer
|
|
473
473
|
spec:
|
|
474
474
|
schedule: "*/4 * * * *"
|
|
475
|
-
successfulJobsHistoryLimit:
|
|
475
|
+
successfulJobsHistoryLimit: 0
|
|
476
476
|
jobTemplate:
|
|
477
477
|
spec:
|
|
478
478
|
template:
|