Skip to content

Commit 9d753f8

Browse files
fix: pass through DEBUG
1 parent eae1fc4 commit 9d753f8

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

lib/Lens.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,16 +337,17 @@ class Lens extends Configurable {
337337

338338
// create container
339339
if (!containerId) {
340-
containerId = await Studio.execDocker([
341-
'create',
342-
'-p', '9000:9000',
340+
containerId = await Studio.execDocker([
341+
'create',
342+
'-p', '9000:9000',
343343
...(persistentDebugContainer ? ['--name', persistentDebugContainer] : []),
344-
sha256Hash
345-
]);
346-
containerId = containerId.trim();
344+
...(process.env.DEBUG ? ['-e', 'DEBUG=1'] : []),
345+
sha256Hash
346+
]);
347+
containerId = containerId.trim();
347348

348-
logger.info('starting container');
349-
await Studio.execDocker(['start', containerId]);
349+
logger.info('starting container');
350+
await Studio.execDocker(['start', containerId]);
350351
}
351352

352353
// wait for port 9000 to be available

0 commit comments

Comments
 (0)