Problem
The current Dagger API does not give the developer control over which platform (architecture + OS) to execute containers on. This limits possible applications of Dagger.
Solution
There many possible designs. Here is a (naive) suggestion to get us started.
package engine
#Exec: {
platform: {
// Host operating system
os: “windows” | *”linux”
// Host hardware architecture
arch: *”x86_64” | “arm64” // etc.
}
}