Depends on D3695
Adding localstack configuration to the docker-compose.yml file.
Differential D3692
[services] Dev mode - Add localstack to docker compose • karol on Apr 11 2022, 6:02 AM. Authored by Tags None Referenced Files
Details Depends on D3695 Adding localstack configuration to the docker-compose.yml file. cd services docker-compose down && docker-compose up localstack
Diff Detail
Event Timeline
Comment Actions Thanks for linking the docs, @jimpo! Really appreciate the thorough review. @karol-bisztyga – would be great if you could either:
I mention this because in the past, when you are the first person on the team to use a new technology you haven't always taken the time to learn best practices, and sometimes just submit something that works. This can lead to a situation that is very costly to fix and as a result, the fix gets deferred. This can be addressed ahead of time if you take the time to make sure you are understanding best practices.
Comment Actions It seems like we'd want a distinct deployment configuration (distinct docker-compose.yml?) for dev vs. prod... curious on what best practices are in that case, particularly in the context of localstack (which is meant to be dev-only, I think) Three questions for @jimpo:
Comment Actions Yeah, if you're deploying to prod with docker-compose, I'd just make a separate docker-compose.prod.yml and you can do docker-compose -f docker-compose.prod.yml. That said, docker-compose isn't really a production deployment tool, unlike swarm or ECS or something, since it only runs on one machine. So longer term it would be good to switch to something like that.
Comment Actions Temp dir makes sense to me
Comment Actions We have a task for this https://linear.app/comm/issue/ENG-1056/discuss-dev-mode-design Comment Actions
Comment Actions There is an explicit link in this task https://phabricator.ashoat.com/D3692#106752 that leads to your comment and this comment mentions depends_on specifically. If that's too implicit, I can copy-paste this stuff to the task.
I started a discussion on the task, the decision for adding depends_on depends on its result. Ok, so if I add depends_on here and then in the task we decide it's redundant, then we'd have to remove it again. Doesn't make sense to me, but ok, I'm addressing this feedback immediately then, so we can skip pointless cycles of exchanging opinions, etc: D3958 |