feat: add mongo init script, use root in app image

This commit is contained in:
wancat committed 2023-07-31 17:19:03 +08:00
1 parent ec90c484b4
commit c3030b22be
5 files changed
+28 -13

No files matched your search

+4 -4
View File
@@ -6,7 +6,7 @@ const engine = new Docker()
const questPath = '/home/zeko/src/linux-odyssey/server/quests'
const containerOptions = {
Image: 'lancatlin/quest-helloworld',
Image: 'lancatlin/linux-odyssey:helloworld',
AttachStdin: true,
AttachStdout: true,
AttachStderr: true,
@@ -38,9 +38,9 @@ export async function getOrCreateContainer(id) {
...containerOptions,
name: id,
})
} catch (error) {
console.log(error)
throw error
} catch (err) {
console.log(err)
throw err
}
await network.connect({ Container: container.id })