Private beta, by invitation. It may change without warning. While the beta lasts, some paid features are free. See pricing

trumlyspec GitHub
Try trumly

← Packs

containers

VerifiedEnrichment0.1.2

Use when: When the system ships as container images, run on laptops, servers, Compose or a managed container service. Add the kubernetes pack as well for a cluster.

How software is packaged and run as containers, before any orchestrator: the image that holds it, the registry that stores it, the container that runs it, the host it runs on and the storage it uses. OCI only, so Docker, Podman and containerd all fit. Rules ask that every container runs one image in one place, and that images are pinned and stored in a registry.

Add it

Open it in trumly cloud to start a project with this pack already in. In an existing project, open the editor's Packs tab, choose containers, then Add. Nodes you change after adding are kept when the pack is upgraded.

From a known source. Reviewed by us, and the publisher is known.

Explore is a read-only demo in your browser: nothing to sign in to, and nothing is saved.

Namespace
ctr--
Size
19 nodes
Needs
core@^1.0.0
Works with
kubernetes@^0.2.0
Enriches
design
Publisher
trumly
Versions
0.1.2·0.1.1·0.1.0
Checksum
c89c1da70495faa7…

Examples 1

  • The ops API in containersA starting point

    One image for the operations API, stored in Amazon ECR and run two ways: on a developer laptop with Compose, and on AWS App Runner for previews.

    40 nodes33 typesneeds hosting, core

    Show the 40 nodes
    • Jobs listedacceptance-criterionacceptance-criterion-jobs-listed
    • Ops staffactoractor-ops-staff
    • Job volume stays modestassumptionassumption-job-volume
    • View job statuscapabilitycapability-view-job-status
    • AWScloud-providercloud-provider-aws
    • AWS App Runnercloud-servicecloud-service-apprunner
    • Amazon ECRcloud-servicecloud-service-ecr
    • ECS Fargatecloud-servicecloud-service-fargate
    • RDS for PostgreSQLcloud-servicecloud-service-rds
    • Ops APIcomponentcomponent-ops-api
    • Local development stackcompose-projectcompose-project-ops-local
    • Jobconceptconcept-job
    • Vertical scalingconsequenceconsequence-one-engine
    • Data stays in UK/EUconstraintconstraint-uk-eu-data
    • API on App Runnercontainercontainer-ops-api-apprunner
    • API on a laptopcontainercontainer-ops-api-local
    • Short titlesconventionconvention-short-titles
    • Ops dbdatastoredatastore-ops-db
    • Managed document storedecision-optiondecision-option-document-store
    • Managed PostgreSQLdecision-optiondecision-option-managed-postgres
    • Database choicedecisiondecision-use-postgres
    • Productionenvironmentenvironment-production
    • Timely ops visibilitygoalgoal-timely-visibility
    • Developer laptophosthost-dev-laptop
    • ops-api imageimageimage-ops-api
    • Cache imageimageimage-ops-cache
    • Live job statusincrementincrement-live-status
    • Ops APIinterfaceinterface-ops-api
    • Job status agemetricmetric-status-freshness
    • Ops APIoverviewoverview
    • Prefer managed servicesprincipleprinciple-prefer-managed
    • Londonregionregion-london
    • Container registryregistryregistry-ecr
    • List jobsrequirementrequirement-list-jobs
    • Job volume growthriskrisk-job-volume-growth
    • Devteamteam-dev
    • Platformteamteam-platform
    • Local API datavolumevolume-ops-local-data
    • Build status APIwork-packagework-package-build-status-api
    • Private zonenetwork-zonezone-private

Planes 1

  • Containers

Types 6

  • compose-projectUse for a group of containers started together on one host from a single Compose file, such as an app, its database and its cache.
  • containerUse for one running instance of an image: the process, its limits and its ports. Model one per place the image runs, such as your laptop, a Kubernetes workload or a managed container service.
  • hostUse for a single machine that runs containers directly, with no orchestrator: a developer laptop, a build server or a small VM running Docker.
  • imageUse for a packaged, versioned build of your software that can be started as a container. Build it once, run it in many places. One image per deployable piece of software.
  • registryUse for the place images are stored and pulled from. Every image that runs somewhere other than the machine that built it needs one.
  • volumeUse for storage a container reads or writes outside its own disposable filesystem, such as a database folder or uploaded files.

Link types 5

  • belongs-toUse to say which group something is a member of: a container in a Compose project, or (with the kubernetes pack) a namespace in a cluster or a workload in a namespace.
  • mountscontainer, workload → volume, persistent-volume-claimUse to say something reads and writes durable storage: a container mounts a volume, or (with the kubernetes pack) a workload mounts a persistent volume claim.
  • packagesimage → componentUse to say what software an image holds. This joins the design to the container that ships it.
  • runscontainer → imageUse to say which image a container is started from.
  • stored-inimage → registryUse to say which registry holds an image.

Calculated values 1

  • reference{stored-in/url}/{repository}:{tag}The full reference of an image, the name a container pulls.

Rules 6

  • WarningEvery container details a component or a datastore, or runs in a workload that does
  • InfoContainers should not run as root unless there is a reason
  • ErrorEvery container runs exactly one image
  • ErrorEvery container runs in exactly one place
  • WarningEvery image is stored in a registry
  • WarningNo image uses the latest tag