@leverege/build-tools 2.68.0 → 2.68.2-beta.1
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/Utils.mjs
CHANGED
|
@@ -537,7 +537,14 @@ export const analyzeRepository = async ( giveGuidance ) => {
|
|
|
537
537
|
process.exit( 1 )
|
|
538
538
|
}
|
|
539
539
|
|
|
540
|
-
|
|
540
|
+
if ( isNodeJsProject ) {
|
|
541
|
+
log( chalk.green.bold( '\nParsing and analyzing the package.json file\n' ) )
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
if ( isPythonProject ) {
|
|
545
|
+
log( chalk.green.bold( '\nParsing and analyzing the pyproject.toml file\n' ) )
|
|
546
|
+
}
|
|
547
|
+
|
|
541
548
|
let closestPackageJson
|
|
542
549
|
try {
|
|
543
550
|
closestPackageJson = await parsePackageJson( './package.json' )
|
|
@@ -110,9 +110,9 @@ const leveregeStanza = isNodeJsProject ? repoDescr.closestPackageJson.leverege :
|
|
|
110
110
|
const dockerInfo = await docker.generateDockerfile( {
|
|
111
111
|
isNodeJsProject,
|
|
112
112
|
isPythonProject,
|
|
113
|
-
buildEnv : leveregeStanza.buildEnv || leveregeStanza
|
|
114
|
-
imageBase : leveregeStanza.imageBase,
|
|
115
|
-
runuser : leveregeStanza.runUser || leveregeStanza
|
|
113
|
+
buildEnv : leveregeStanza.buildEnv || leveregeStanza['build-env'] || 'alpine',
|
|
114
|
+
imageBase : leveregeStanza.imageBase || leveregeStanza['image-base'],
|
|
115
|
+
runuser : leveregeStanza.runUser || leveregeStanza['run-user'] || isNodeJsProject ? 'node' : 'python',
|
|
116
116
|
nodeimage : leveregeStanza.nodeimg, // left as nodeimg in package.json for backwards compat
|
|
117
117
|
regvers : repoDescr.packageVersion,
|
|
118
118
|
pythonVersion : repoDescr.rootPyProjectToml?.pythonVersion,
|
|
@@ -46,9 +46,7 @@ COPY --chown=python:python ./workspace/pyproject.toml \
|
|
|
46
46
|
/usr/src/app/
|
|
47
47
|
|
|
48
48
|
# Sync dependencies
|
|
49
|
-
RUN uv sync
|
|
50
|
-
--extra-index-url https://oauth2accesstoken@us-python.pkg.dev/leverege-registry/leverege-python-packages/simple \
|
|
51
|
-
&& rm -rf /home/{{runuser}}/.cache
|
|
49
|
+
RUN uv sync && rm -rf /home/{{runuser}}/.cache
|
|
52
50
|
|
|
53
51
|
# Copy application source AFTER venv + tool setup
|
|
54
52
|
COPY --chown={{runuser}}:{{runuser}} ./workspace/ /usr/src/app/
|