ewilde / terraform-aws-openfaas-fargate

Create an OpenFaaS platform for AWS Fargate using Terraform
23 stars 8 forks source link

Nats docker file only required to pass health checks #2

Open ewilde opened 6 years ago

ewilde commented 6 years ago

I couldn't get the fargate health checks to work using the standard nats docker image, which is based from scratch. I believe the health checks need a shell on the container image to work correctly

https://github.com/ewilde/terraform-aws-openfaas-ecs/commit/a10db574a02487eef6ecada72d4604f7146f5d00#diff-52bce21c549b4222b2c42a294a54a1a1

Maybe investigate a better workaround than creating our own docker image

ewilde commented 6 years ago

Maybe use multi-stage build: stage 1 official nat, stage 2 alpine: copy nats into stage2?