boltops-tools / ufo

AWS ECS Deployment Tool
https://ufoships.com
MIT License
219 stars 27 forks source link

Shipping with Apple Silicon #182

Open bismark64 opened 1 month ago

bismark64 commented 1 month ago

Is there any place in the vars or config to specify a specific docker image platform?

Using Apple silicon chips to build the image creates an incompatibility issue when shipping to AWS ECS.

I had to manually create the image using: UFO_DOCKER_BUILD_OPTIONS="--platform=linux/amd64" UFO_ENV=env ufo docker build --push

then manually ship it: UFO_ENV=env ufo ship --no-docker but I also had to tweak the config files in order to specify the correct image and for some reason this last command did not create a load balancer, so I had to add config.elb.enabled = true.

So in short, I found several issues when running the commands like that.

Is there a way to specify the platform (--platform=linux/amd64) when shipping using the standard ufo ship command?