Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

ALM UI Samples

This directory contains a sample Flask application intended to be run under App Lifecycle Management (ALM).

Setup

First, activate your virtual environment and run the application locally:

source .venv/bin/activate
python app.py

Deployment

To 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