Skip to content

Humanitec-DemoOrg/aks-store-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aks-store-demo

Get the Azure-Samples/aks-store-demo to Score and Humanitec.

Open in GitHub Codespaces

Local deployment with Docker Compose

Deploy and test locally with Docker compose:

make compose-up

make compose-test

Local deployment with Kind cluster

Deploy and test locally with Kind cluster:

make kind-create-cluster

make k8s-up

make k8s-test

Humanitec deployment

You will need to install humctl locally.

Deploy to Humanitec:

export HUMANITEC_ORG=FIXME
export HUMANITEC_APPLICATION=store-front
export HUMANITEC_ENVIRONMENT=development

humctl login

humctl create app ${HUMANITEC_APPLICATION} \
    --name ${HUMANITEC_APPLICATION}

humctl apply \
    -f resources/in-cluster-rabbitmq.yaml
humctl apply \
    -f resources/in-cluster-mongodb.yaml

make humanitec-deploy

Get the generated DNS one the deployment is done:

humctl get active-resources \
    --app ${HUMANITEC_APPLICATION} \
    --env ${HUMANITEC_ENVIRONMENT} \
    -o json \
    | jq -c '.[] | select(.metadata.type | contains("dns"))' \
    | jq -r .status.resource.host

Here is the associated resource graph generated by Humanitec:

humctl resources graph \
    --app ${HUMANITEC_APPLICATION} \
    --env ${HUMANITEC_ENVIRONMENT}