@leverege/build-tools 2.59.0-beta.1 → 2.59.0-beta.3
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
package/src/Docker.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs'
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import path from 'node:path'
|
|
3
|
+
import url from 'node:url'
|
|
4
4
|
|
|
5
5
|
import chalk from 'chalk'
|
|
6
6
|
import handlebars from 'handlebars'
|
|
@@ -15,8 +15,7 @@ import {
|
|
|
15
15
|
warning
|
|
16
16
|
} from './Utils.mjs'
|
|
17
17
|
|
|
18
|
-
const
|
|
19
|
-
const __dirname = path.dirname( __filename )
|
|
18
|
+
const DIRNAME = path.dirname( url.fileURLToPath( import.meta.url ) )
|
|
20
19
|
|
|
21
20
|
// TODO: change default to node 22 (jod) after 01/01/25
|
|
22
21
|
const dockerfileNodeVersion = process.env.USE_NODEJS_22 ? 'jod-alpine' : 'iron-alpine'
|
|
@@ -41,16 +40,16 @@ const pluginTemplate = `
|
|
|
41
40
|
# footprints small, so adding packages "just because" is not considered
|
|
42
41
|
# a best practice.
|
|
43
42
|
`
|
|
44
|
-
const dockerfileTemplate = fs.readFileSync( path.join(
|
|
45
|
-
const bashrcTemplate = fs.readFileSync( path.join(
|
|
46
|
-
const cloudBuildSteps = fs.readFileSync( path.join(
|
|
43
|
+
const dockerfileTemplate = fs.readFileSync( path.join( DIRNAME, './templates/dockerfileTemplate.hbs' ), 'utf8' )
|
|
44
|
+
const bashrcTemplate = fs.readFileSync( path.join( DIRNAME, './templates/bashrcTemplate.hbs' ), 'utf8' )
|
|
45
|
+
const cloudBuildSteps = fs.readFileSync( path.join( DIRNAME, './templates/cloudBuildSteps.hbs' ), 'utf8' )
|
|
47
46
|
|
|
48
47
|
const defaultSettings = {
|
|
49
48
|
apkadds : '',
|
|
50
49
|
date : getDateTimestamp(),
|
|
51
50
|
nodeimage : process.env.USE_NODEJS_22 ? 'jod-alpine' : 'iron-alpine',
|
|
52
51
|
imageBase : process.env.USE_NODEJS_22 ? 'node:jod-alpine' : 'node:iron-alpine',
|
|
53
|
-
npmlogging : process.env.VERBOSE_NPM_LOGGING ? '--ddd' : '--
|
|
52
|
+
npmlogging : process.env.VERBOSE_NPM_LOGGING ? '--ddd' : '--silent',
|
|
54
53
|
pluginfile : '# NO PLUGIN',
|
|
55
54
|
preInstallPluginfile : '# NO PRE-INSTALL PLUGIN',
|
|
56
55
|
regvers : 'package.version',
|
|
File without changes
|
|
File without changes
|