Page MenuHomeDevCentral

Standardize containers pillar
ClosedPublic

Authored by dereckson on Sep 11 2018, 13:07.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 13:01
Unknown Object (File)
Tue, Nov 19, 12:59
Unknown Object (File)
Tue, Nov 19, 05:02
Unknown Object (File)
Tue, Nov 19, 05:01
Unknown Object (File)
Mon, Nov 18, 18:20
Unknown Object (File)
Mon, Nov 18, 18:19
Unknown Object (File)
Tue, Nov 12, 15:43
Unknown Object (File)
Sun, Nov 10, 09:59
Subscribers
None

Details

Summary

The docker_containers dictionnary contains two kind of items:

  • containers, with several instance, one key per instance
  • unique container with one assocaited instance

While it currently works, this setup makes complex to parse the entry
without knowledge of what key contains what.

An example of an issue is how to provide nginx configuration for
the containers with several instances? That would require two for loop
one to find containers with Host key at first level, a second to seek
Host key at second level (and parse wastefully properties of unique
containers).

This change standardizes the entries to use the hierarchy model
and provides documentation about the entry structure and how it
matches roles/ states and files.

A drawback is it repeats the service name as instance name for
containers deployed only once like Cachet, but that also provides
more flexibility if in the future we need to run another instance
of the same service for someone else.

Ref T1422

Test Plan

Apply nginx and containers configuration to Equatower

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
docker-standard
Build Status
Buildable 2682
Build 2930: arc lint + arc unit

Event Timeline

dereckson created this revision.

Refactor nginx configuration states for the new topology. Fix cachet instance name.

Disambig double containers variable use

This revision is now accepted and ready to land.Sep 11 2018, 13:40
This revision was automatically updated to reflect the committed changes.