mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: add mongo init script, use root in app image
This commit is contained in:
1 parent
ec90c484b4
commit
c3030b22be
5 files changed
+28
-13
No files matched your search
@@ -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 })
|
||||
|
||||
|
||||
Reference in new issue
Block a user