@leverege/build-tools 2.12.0-john.4 → 2.12.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 +1 -1
- package/src/dockreate +13 -2
|
Binary file
|
package/package.json
CHANGED
package/src/dockreate
CHANGED
|
@@ -7,6 +7,7 @@ fi
|
|
|
7
7
|
# Load common bash functions
|
|
8
8
|
. `build-tools --bashfun`
|
|
9
9
|
GITTOP=`git rev-parse --show-toplevel`
|
|
10
|
+
cd $GITTOP/docker
|
|
10
11
|
|
|
11
12
|
if [ ! -x "$(command -v jq)" ];
|
|
12
13
|
then
|
|
@@ -18,6 +19,16 @@ NO_JQ
|
|
|
18
19
|
exit 1
|
|
19
20
|
fi
|
|
20
21
|
|
|
22
|
+
if [ ! -d "$GITTOP/dist" ];
|
|
23
|
+
then
|
|
24
|
+
cat<<NO_DIST
|
|
25
|
+
|
|
26
|
+
`color r "***ERROR: Missing the dist directory, run this first => "``color g 'npm run build'`
|
|
27
|
+
|
|
28
|
+
NO_DIST
|
|
29
|
+
exit 1
|
|
30
|
+
fi
|
|
31
|
+
|
|
21
32
|
function packageJson() {
|
|
22
33
|
result=$(jq -r $1 $GITTOP/package.json)
|
|
23
34
|
[ "$result" != "null" ] && echo $result
|
|
@@ -53,7 +64,7 @@ create_Dockerfile() {
|
|
|
53
64
|
local nodeimg="${2:-gallium-alpine}"
|
|
54
65
|
local apkadds="${3}"
|
|
55
66
|
|
|
56
|
-
|
|
67
|
+
echo "Creating the Dockerfile for node ${nodeimg}"
|
|
57
68
|
cat<<DOCKERBLD > Dockerfile
|
|
58
69
|
# Version ${regvers} @ `date`
|
|
59
70
|
#
|
|
@@ -333,7 +344,7 @@ create_Dockerfile "$version" "$nodeimg" "$apkadds"
|
|
|
333
344
|
create_bashrc "$version" "$nodeimg"
|
|
334
345
|
|
|
335
346
|
rm -rf ./workspace && mkdir -p ./workspace
|
|
336
|
-
cp -rfp
|
|
347
|
+
cp -rfp ${GITTOP}/package*json ${GITTOP}/dist/* ./workspace
|
|
337
348
|
|
|
338
349
|
# grab the read only npmrc token for the image
|
|
339
350
|
cp -f $NPMRC .npmrc
|