@leverege/build-tools 2.5.37 → 2.5.38
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/lib/server/repo-init/templates/Templates.js +1 -1
- package/package.json +10 -9
- package/src/dockreate +4 -5
- package/src/helmup +5 -1
- package/src/klog +3 -2
|
Binary file
|
|
@@ -116,7 +116,7 @@ class Templates {
|
|
|
116
116
|
type: 'confirm',
|
|
117
117
|
name: 'template.helmify',
|
|
118
118
|
message: 'Run helmify to generate Helm Charts?',
|
|
119
|
-
default:
|
|
119
|
+
default: true,
|
|
120
120
|
when: answers => {
|
|
121
121
|
const template = this.lookupTemplateByType(answers.template.type);
|
|
122
122
|
return typeof template.helm !== 'undefined';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.38",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"author": "Leverege Devs",
|
|
51
51
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"chalk": "^4.1.
|
|
53
|
+
"chalk": "^4.1.1",
|
|
54
54
|
"clear": "^0.1.0",
|
|
55
55
|
"clipboardy": "^2.3.0",
|
|
56
56
|
"command-line-args": "^5.1.1",
|
|
@@ -61,23 +61,24 @@
|
|
|
61
61
|
"git-branch": "^2.0.1",
|
|
62
62
|
"glob": "^7.1.6",
|
|
63
63
|
"inquirer": "^7.3.3",
|
|
64
|
-
"js-yaml": "^4.
|
|
64
|
+
"js-yaml": "^4.1.0",
|
|
65
|
+
"kubernetes-client": "^9.0.0",
|
|
65
66
|
"ncp": "^2.0.0",
|
|
66
|
-
"npm-check-updates": "^11.
|
|
67
|
+
"npm-check-updates": "^11.5.1",
|
|
67
68
|
"npm-registry-fetch": "^9.0.0",
|
|
68
|
-
"open": "^
|
|
69
|
+
"open": "^8.0.6",
|
|
69
70
|
"ora": "^5.4.0",
|
|
70
71
|
"parse-gitignore": "^1.0.1",
|
|
71
72
|
"readline-sync": "^1.4.10",
|
|
72
73
|
"semver": "^7.3.5",
|
|
73
|
-
"simple-git": "^2.
|
|
74
|
+
"simple-git": "^2.38.0"
|
|
74
75
|
},
|
|
75
76
|
"devDependencies": {
|
|
76
|
-
"@babel/cli": "^7.13.
|
|
77
|
-
"@babel/core": "^7.13.
|
|
77
|
+
"@babel/cli": "^7.13.16",
|
|
78
|
+
"@babel/core": "^7.13.16",
|
|
78
79
|
"@babel/node": "^7.13.13",
|
|
79
80
|
"@leverege/babel-preset-leverege-node": "^1.1.1",
|
|
80
81
|
"@leverege/eslint-config-leverege": "^2.2.0",
|
|
81
|
-
"npm": "^7.
|
|
82
|
+
"npm": "^7.11.1"
|
|
82
83
|
}
|
|
83
84
|
}
|
package/src/dockreate
CHANGED
|
@@ -75,7 +75,7 @@ COPY ./.npmrc /usr/src/app/.npmrc
|
|
|
75
75
|
RUN apk --no-cache add curl git openssh-client && \
|
|
76
76
|
apk --update add --no-cache --virtual build-dep g++ gcc libgcc \\
|
|
77
77
|
libstdc++ linux-headers make python ${apkadds} && \
|
|
78
|
-
npm
|
|
78
|
+
npm ci --production --silent && \
|
|
79
79
|
rm -f /usr/src/app/.npmrc /root/.ssh/*
|
|
80
80
|
|
|
81
81
|
# --------------------------------------------------------------
|
|
@@ -84,7 +84,7 @@ RUN apk --no-cache add curl git openssh-client && \
|
|
|
84
84
|
|
|
85
85
|
FROM node:${nodeimg}
|
|
86
86
|
|
|
87
|
-
# Install
|
|
87
|
+
# Install tini for PID 1 and replace shell with bash so we can source files
|
|
88
88
|
RUN apk update && \
|
|
89
89
|
apk add --no-cache tini bash vim ${apkadds} && \
|
|
90
90
|
rm /bin/sh && ln -s /bin/bash /bin/sh && \
|
|
@@ -331,8 +331,7 @@ fi
|
|
|
331
331
|
create_Dockerfile "$version" "$nodeimg" "$apkadds"
|
|
332
332
|
create_bashrc "$version" "$nodeimg"
|
|
333
333
|
|
|
334
|
-
|
|
335
|
-
mkdir -p ./workspace
|
|
334
|
+
rm -rf ./workspace && mkdir -p ./workspace
|
|
336
335
|
cp -rfp ../package*json ../dist/* ./workspace
|
|
337
336
|
|
|
338
337
|
# grab the read only npmrc token for the image
|
|
@@ -359,7 +358,7 @@ else
|
|
|
359
358
|
fi
|
|
360
359
|
|
|
361
360
|
# submit the build request to gcloud
|
|
362
|
-
gcloud builds submit --tag $gcimage:$version .
|
|
361
|
+
time gcloud builds submit --tag $gcimage:$version .
|
|
363
362
|
|
|
364
363
|
if [ $? -ne 0 ];
|
|
365
364
|
then
|
package/src/helmup
CHANGED
|
@@ -118,7 +118,11 @@ SA_EXISTS
|
|
|
118
118
|
|
|
119
119
|
# Verify the Kubernetes SA
|
|
120
120
|
kubectl get sa -n monitoring $SDEXP_SA
|
|
121
|
-
|
|
121
|
+
if [[ $? -eq 1 ]];
|
|
122
|
+
then
|
|
123
|
+
printf "The $SDEXP_SA SA seems to be missing, which is weird - creating it now\n"
|
|
124
|
+
kubectl create sa -n monitoring stackdriver-exporter
|
|
125
|
+
fi
|
|
122
126
|
|
|
123
127
|
# NOTE: The k8s SA != GCP SA - the former is created by the helm chart
|
|
124
128
|
# that installs the stackdriver-exporter, the latter is handled here in
|
package/src/klog
CHANGED
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
DTS="`date +\"%Y%m%d-%H%M%S\"`"
|
|
6
6
|
PRETTY="pino-pretty -c -t 'HH:MM:ss.l'"
|
|
7
|
+
IFS="/" read APP <<< "$1"
|
|
7
8
|
|
|
8
|
-
if [ ! -z "$
|
|
9
|
+
if [ ! -z "$APP" ];
|
|
9
10
|
then
|
|
10
11
|
NS=${2:-"default"}
|
|
11
|
-
kubecmd="kubectl logs -f -n $NS -l app=$
|
|
12
|
+
kubecmd="kubectl logs -f -n $NS --max-log-requests=16 -l app=$APP -c $APP | tee $APP-$DTS.log | $PRETTY"
|
|
12
13
|
echo " run=[$kubecmd]"
|
|
13
14
|
eval ${kubecmd}
|
|
14
15
|
exit $?
|