Build & Deploy Application

10 minutes

In this step, you’ll build Docker images for all Cosmic Observatory Shop services, push them to the k3d local registry, and deploy the full stack to Kubernetes.

Build Container Images

With all required env values configured, run:

bash
cd ~/workshop/context-propagation
make build

This builds and pushes four images to localhost:5111

ImageService
cosmic-shop/frontendReact shop UI with Splunk RUM
cosmic-shop/storefront-apiOrder API with Splunk APM
cosmic-shop/catalog-apiProduct catalog with Splunk APM
cosmic-shop/order-workerRabbitMQ consumer with Splunk APM

Validation Checklist - Build

1. Confirm all images were pushed

bash
curl -s http://localhost:5111/v2/_catalog | python3 -m json.tool

2. Confirm all relevant images exist

bash
docker images | grep '^cosmic-shop/'