Please enable JavaScript.
Coggle requires JavaScript to display documents.
Docker Pattern (Sidecar :checkered_flag: (Ambassador (pro (decoupling,…
Docker Pattern
Sidecar :checkered_flag:
verknüpfung von mehreren Containers
Aspect oriented container
Bsp: Logging, Circuit Breaker
zwei Container die sich die Arbeit teilen
ein container kennt git, der andere läuft ein webserver
shared volumes
Ambassador
für input
pro
decoupling
seperation of concerns
con
more complex
Adapter: Ambassador für output
Service Lookups
Tools like SkyDNS
Pro
explicit
dynamic
contra
contra
Patterns
Reusable solution
Template
Benamt
Struktur
Name
Solution
Pros&Cons
Dynamic DNS
Standard protocol of Service
Tools
Consul :checkered_flag:
SkyDNS
Spotify/DNS-Java
DNS Lookup for Java Clients
Pro
dynamic
standard
good infrastructure support
Configuraton
Env-Var Configuration
Twelve Factor App
Specified during build and run
Funktioniert in Kubernates
Docker-Compose
Evaluation
System.getenv()
Environment Profiles (SpringBoot)
Pros
Supported everywhere
simple
explicit
Cons
static
hard to maintain
Immutable Configuration
Configuration in extra Container
Volumne linked during runtime
pro
felxible
sharable
versioned
contra
static
maintenance overhead
ConfigurationService
Active Configuration Lookup
pro
flexible
dynamic
contra
external service
mainatnance overhead
weakend security
Env-Var Injection
Must be set during container start
Docker Images for JavaEE
Basis Image + copy image in container
Application in eigenem Container
Build Integration
fabric8/docker-maven-plugin