mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 19:40:11 +08:00
fix: no response when buildImage
This commit is contained in:
1 parent
1bca61da40
commit
27c5794700
2 files changed
+2
-1
No files matched your search
@@ -17,7 +17,6 @@ buildImages()
|
||||
.then((result) => {
|
||||
logger.info(result)
|
||||
logger.info('Done!')
|
||||
process.exit(0)
|
||||
})
|
||||
.catch((err) => {
|
||||
logger.error(err)
|
||||
|
||||
@@ -109,6 +109,7 @@ export function buildQuestImage(questPath, questId) {
|
||||
if (err) {
|
||||
reject(err)
|
||||
}
|
||||
if (response) {
|
||||
response.on('data', (data) => {
|
||||
// Process the data (this could be Docker build output)
|
||||
try {
|
||||
@@ -135,6 +136,7 @@ export function buildQuestImage(questPath, questId) {
|
||||
reject(error)
|
||||
})
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user