Skip to content

Humanitec-DemoOrg/onlineboutique-demo

Repository files navigation

Get the GoogleCloudPlatform/microservices-demo to Score and Humanitec.

Open in GitHub Codespaces

This repository has been illustrated with this blog post: Platform Engineering in action: Deploy the Online Boutique sample apps with Score and Humanitec.

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 kind-load-image

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=onlineboutique
export HUMANITEC_ENVIRONMENT=development

humctl login

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

humctl apply \
    -f resources/in-cluster-redis.yaml

make humanitec-deploy

Get the generated DNS once 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}

More: