Skip to content

Commit ecf765f

Browse files
committed
feat: carving out superset-node as pre-command to reduce parallelism
1 parent 3e0de6e commit ecf765f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/cli.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,15 @@ export default function getCLI(context) {
208208

209209
// --------------------------------------------------------------------
210210
console.log("Building python-base layer first to reduce parallelism");
211-
const tempOpts = { ...opts, preset: 'python-base' };
212211
command = await docker.getDockerCommand({
213-
...tempOpts, buildContext, buildContextRef, latestRelease, extraFlags,
212+
...{ ...opts, preset: 'python-base' }, buildContext, buildContextRef, latestRelease, extraFlags,
213+
});
214+
if (!opts.dryRun) {
215+
await utils.runShellCommand({ command, raiseOnError: false });
216+
}
217+
console.log("Building superset-node layer first to reduce parallelism");
218+
command = await docker.getDockerCommand({
219+
...{ ...opts, preset: 'superset-node' }, buildContext, buildContextRef, latestRelease, extraFlags,
214220
});
215221
if (!opts.dryRun) {
216222
await utils.runShellCommand({ command, raiseOnError: false });

src/docker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ export async function getDockerCommand({
8888
pyVer = '3.10-slim-bookworm';
8989
} else if (preset === 'python-base') {
9090
buildTarget = 'python-base';
91+
} else if (preset === 'superset-node') {
92+
buildTarget = 'superset-node';
9193
} else if (preset === 'py311') {
9294
buildTarget = 'lean';
9395
pyVer = '3.11-slim-bookworm';

0 commit comments

Comments
 (0)