mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +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) => {
|
.then((result) => {
|
||||||
logger.info(result)
|
logger.info(result)
|
||||||
logger.info('Done!')
|
logger.info('Done!')
|
||||||
process.exit(0)
|
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
logger.error(err)
|
logger.error(err)
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ export function buildQuestImage(questPath, questId) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
reject(err)
|
reject(err)
|
||||||
}
|
}
|
||||||
|
if (response) {
|
||||||
response.on('data', (data) => {
|
response.on('data', (data) => {
|
||||||
// Process the data (this could be Docker build output)
|
// Process the data (this could be Docker build output)
|
||||||
try {
|
try {
|
||||||
@@ -135,6 +136,7 @@ export function buildQuestImage(questPath, questId) {
|
|||||||
reject(error)
|
reject(error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user