recast-hep / recast-atlas

CLI for ATLAS RECAST contributors
https://recast.docs.cern.ch/
Apache License 2.0
5 stars 5 forks source link

Add ability to set platform from packtivity environmental variable #128

Closed matthewfeickert closed 4 months ago

matthewfeickert commented 4 months ago

At the moment

https://github.com/recast-hep/recast-atlas/blob/99528ea9ea19ff636e88a4e8d127961cf98169a8/src/recastatlas/backends/docker.py#L28-L39

does not allow for setting the --platform flag. For aarch_64 machines, if there is no image with linux/arm64 in the manifest then being able to set the platform to linux/arm64 is necessary to be able to take advantage of emulation (e.g. rosetta).

c.f. https://atlas-talk.web.cern.ch/t/rosetta-docker-emulation-in-recast/873