@leverege/build-tools 2.85.0-beta.7 → 2.85.0-beta.9
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 +1 -1
- package/src/Docker.mjs +6 -3
- package/src/docker-to-registry.mjs +2 -1
package/package.json
CHANGED
package/src/Docker.mjs
CHANGED
|
@@ -8,7 +8,6 @@ import handlebars from 'handlebars'
|
|
|
8
8
|
import {
|
|
9
9
|
errorExit,
|
|
10
10
|
getCleanTag,
|
|
11
|
-
getDateTimestamp,
|
|
12
11
|
getGcpAccount,
|
|
13
12
|
log,
|
|
14
13
|
proceed,
|
|
@@ -53,7 +52,6 @@ const cloudBuildStepsMultiArch = fs.readFileSync( path.join( DIRNAME, './templat
|
|
|
53
52
|
|
|
54
53
|
const defaultSettings = {
|
|
55
54
|
apkadds : '',
|
|
56
|
-
date : getDateTimestamp(),
|
|
57
55
|
nodeimage : 'jod-alpine',
|
|
58
56
|
imageBase : 'node:jod-alpine',
|
|
59
57
|
npmlogging : process.env.VERBOSE_NPM_LOGGING ? '--ddd' : '--silent',
|
|
@@ -210,7 +208,12 @@ const buildContainerImage = async ( repoDescr ) => {
|
|
|
210
208
|
fs.renameSync( './workspace', buildWorkspace )
|
|
211
209
|
fs.cpSync( './docker/Dockerfile', './build/Dockerfile' )
|
|
212
210
|
fs.cpSync( './build/Dockerfile', `${buildWorkspace}/Dockerfile` )
|
|
213
|
-
|
|
211
|
+
|
|
212
|
+
// bashrc won't exist if we're opting out of dockerfile generation
|
|
213
|
+
if ( fs.existsSync( './docker/bashrc' ) ) {
|
|
214
|
+
fs.renameSync( './docker/bashrc', './build/bashrc' )
|
|
215
|
+
}
|
|
216
|
+
|
|
214
217
|
if ( isNodeJsProject ) {
|
|
215
218
|
fs.cpSync( `${process.env.HOME}/.npmrc`, './build/.npmrc' )
|
|
216
219
|
fs.cpSync( './package.json', `${buildWorkspace}/package.json` )
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
debug, log,
|
|
12
12
|
errorExit,
|
|
13
13
|
analyzeRepository,
|
|
14
|
+
getDateTimestamp,
|
|
14
15
|
getGitBranchAndUpstream,
|
|
15
16
|
gitRepoIsDirty,
|
|
16
17
|
proceed,
|
|
@@ -123,6 +124,7 @@ const dockerfileOptions = {
|
|
|
123
124
|
regvers : repoDescr.packageVersion,
|
|
124
125
|
pythonVersion : repoDescr.rootPyProjectToml?.pythonVersion,
|
|
125
126
|
previousBuild : docker.getPreviousBuild(),
|
|
127
|
+
date : getDateTimestamp(),
|
|
126
128
|
}
|
|
127
129
|
let dockerInfo
|
|
128
130
|
if ( generateDockerfile ) {
|
|
@@ -256,7 +258,6 @@ if ( isNodeJsProject ) {
|
|
|
256
258
|
}
|
|
257
259
|
|
|
258
260
|
if ( isPythonProject ) {
|
|
259
|
-
log( `dockerInfo => ${JSON.stringify( dockerInfo, null, 2 )}` )
|
|
260
261
|
log( `
|
|
261
262
|
${chalk.green.bold( 'Python Docker Information:' )}
|
|
262
263
|
BaseImage: ${chalk.green.bold( dockerInfo.imageBase || `node:${dockerInfo.nodeimage}` )}
|