Concepts
Services
Overview
Services allow you to deploy a application with minimal configuration. Given your application code and a Dockerfile to run it, LaunchFlow will setup a deployment pipeline including:
- Create a Dockerfile that can build and run your application.
- Add a Cloud Run service to your
infra.py
file. Pass it the path to the Dockerfile you created if necessary (by default, it will search for one next to yourlaunchflow.yaml
). - Run
lf deploy
on the command line. This will prompt you to confirm the deployment, and create the following in GCP:- An Artifact Registry repository to store the Docker image.
- A Cloud Build workflow to build and deploy it.
- A Load Balancer to route traffic to it.
- A Cloud Run service to run it.
CLI Commands
Create a Service
1lf deploy
Delete a Service
1lf destroy
List Services
1lf services list
Promote a Service
1lf promote [FROM_ENVIRONMENT] [TO_ENVIRONMENT]
For a full list of options see the command references: