| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory contains a sample Flask application intended to be run under App Lifecycle Management (ALM).
First, activate your virtual environment and run the application locally:
source .venv/bin/activate
python app.pyTo deploy this containerized application to Artifact Registry, execute the following commands. Ensure that you replace your-project-id and your-region with your actual Google Cloud Project ID and region!
export _REGION="your-region"
export _PREFIX="region-deployment"
export _projectID="your-project-id"
export _version="v2.01.0"
# Create the Artifact Registry repository
gcloud artifacts repositories create ${_PREFIX} \
--repository-format=docker \
--location=$_REGION \
--project=${_projectID}
# Build the docker container
docker build --tag ${_REGION}-docker.pkg.dev/${_projectID}/${_PREFIX}/${_version}:latest .
# Push the docker container to Artifact Registry
docker push ${_REGION}-docker.pkg.dev/${_projectID}/${_PREFIX}/${_version}:latest| Back | FazBrowse Home | New Git URL |