#best way to actually trigger container build from dockerfile
1 messages · Page 1 of 1 (latest)
Yes, you can use await ctr.sync().
is the same as await the promise? also if i want to build multiple images at the same time, micro service architecture, which is the best way?
the engine can run as many builds as you want concurrently. You just need to make sure your client requests are running concurrently, using your language's native concurrency features (goroutines in go for example)
You can see an example here: https://docs.dagger.io/cookbook#build-multi-arch-image. Notice the platform_variants.
Maybe you mean different images, not for different platforms though?
yeah I misread also initially. not a multi-platform use case.
There's more information on language concurrency here: https://github.com/dagger/dagger/issues/4766.