https://pantsbuild.org/ logo
#development
Title
# development
h

hundreds-father-404

09/15/2022, 8:13 PM
Any thoughts on how we can determine the Platform for remote execution? This seems complicated by the idea that they can run Docker containers
I found this TODO:
Copy code
// TODO if we ever want to configure the remote platform to be something else we
          // need to take an option all the way down here and into the remote::CommandRunner struct.
          Platform::Linux_x86_64,
This seems complicated by the idea that they can run Docker containers
I think it's theoretically possible for your RE env to be linux x86, but you use a Docker image for arm64, for example?
The simplest solution is to do what we did for
docker_environment
, have a
platform
field. I'm not sure if linux x86 is a reasonable default, or it should be a required field
f

fast-nail-55400

09/15/2022, 8:26 PM
linux/x86 is a reasonable default. the three major remote execution projects only run on Linux.
👍 1
w

witty-crayon-22786

09/15/2022, 8:31 PM
similar to docker: hardcode it for now.
er… require users to set it***
h

hundreds-father-404

09/15/2022, 8:35 PM
k, so: field with a default to linux/x86