https://dagster.io/ logo
#dagster-cloud
Title
# dagster-cloud
p

Pedram Navid

04/19/2023, 5:52 PM
What architecture should I target for binaries built to run on serverless? I’m building a small binary. any of these?
Copy code
rust_target: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl, x86_64-pc-windows-gnu, aarch64-unknown-linux-gnu, riscv64gc-unknown-linux-gnu]
j

jordan

04/19/2023, 6:10 PM
if you’re also building your own image, it should pretty much be up to you as long as it’s fargate compatible https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html
There are 2 architectures available for the Amazon ECS task definition, ARM and X86_64.
When you run Windows containers on AWS Fargate, you must have the X86_64 CPU architecture.
When you run Linux containers on AWS Fargate, you can use the X86_64 CPU architecture, or the ARM64 architecture for your ARM-based applications.
if you’re running on top of our base image, i’m guessing
x86_64-unknown-linux-gnu
should probably work but i can confirm
s

Shalabh Chaturvedi

04/19/2023, 6:56 PM
Yes I'd suggest
x86_64-unknown-linux-gnu
. I believe
x86_64-unknown-linux-musl
should also work.
❤️ 1
p

Pedram Navid

04/19/2023, 7:00 PM
ty both!
s

Shalabh Chaturvedi

04/19/2023, 7:02 PM
FYI: our standard base images use
python:3.x-slim
docker images. Here's the definition for 3.8-slim: https://github.com/docker-library/python/blob/cf20bfd43383845a80e52e2c54694cc0b716fae3/3.8/slim-bullseye/Dockerfile These are based on debian and should include glibc (gnu). IIRC debian also includes musl by default but I didn't see it in the dockerfile here so slightly less confident about that.
2 Views