Aleksandr Matrosov
05/28/2022, 11:16 AMnpx sst diff dev-sst-Stack --stage dev
does deploy only dev-sst-Stack
but it builds all 100 others as welAleksandr Matrosov
05/28/2022, 11:31 AMArpad
05/28/2022, 12:01 PMAleksandr Matrosov
05/28/2022, 12:02 PMArpad
05/28/2022, 12:05 PMecs.ContainerImage.fromTarball(file)
where the tarball can be generated after building a Docker image with
docker save
https://docs.docker.com/engine/reference/commandline/save/
This way you can build the image separately and cache layers using CIAleksandr Matrosov
05/28/2022, 12:08 PMnew Function(this, "categorization", {
handler: "lala.lala_handler",
runtime: "python3.9",
});
Aleksandr Matrosov
05/28/2022, 12:08 PMArpad
05/28/2022, 12:09 PMArpad
05/28/2022, 12:09 PMArpad
05/28/2022, 12:14 PMskip: true
in CDK for this (see this test).
Arpad
05/28/2022, 12:15 PMAleksandr Matrosov
05/28/2022, 12:23 PMFrank
sst build
once, and sst deploy
reuse the built artifact, instead of building again https://github.com/serverless-stack/serverless-stack/issues/779Frank
Frank
const STACK = process.env.STACK;
(!STACK || STACK === "StackA") && app.stack(StackA);
(!STACK || STACK === "StackB") && app.stack(StackB);
(!STACK || STACK === "StackC") && app.stack(StackC);
And this will only build and deploy a single stack
STACK=StackA sst deploy
And this will deploy all stacks
sst deploy
Frank
Klaus
05/29/2022, 1:46 AMpythonRequirements:
dockerizePip: non-linux
To my mind most CI/CD systems aren't running on Windows platforms. Could we potentially get a feature that simply allows to zip up a .venv library folder in Linux / OSX systems with CDK? This would speed up the process even further to my mind.