5 ms·
I'd be very interested to see the code for the AWS Lambda functions mentioned—specifically the one about ephemeral development environments based on open PRs. W
by Perceptes 10y ago
I'd be very interested to see the code for the AWS Lambda functions mentioned—specifically the one about ephemeral development environments based on open PRs. We're building something similar at InQuicker and it'd be great to see how other people are approaching it.
- danielmartins 10y agoIt' not open source, but I'll try to sell the idea to our CTO. :) Just to give you more details about its inner workings, this function is written in JavaScript that gets called when certain events come from GitHub ('pull_request', 'status', and 'push'), and uses kubectl to modify the corresponding deployments depending on the event. Nothing fancy there, trust me.
- Perceptes 10y agoDo you only create copies of the stateless pieces of each stack, or do you also copy databases?
- danielmartins 10y agoWe currently only run stateless apps on Kubernetes. All databases are hosted elsewhere (RDS, MongoDB Cloud, etc)
- Perceptes 10y agoLet me rephrase that: Do you spin up a new copy of any necessary data stores when you deploy a topic branch of an app, or do all versions of the app share the same view of data in their environment (e.g. staging/production)?
- danielmartins 10y agoNo, these 'development' environments point to other services in 'staging'.