Dockercompose
- 2. Meet Rory
• Developer in R&D team at BBD
– Training for 700 Developers
– Most Languages & Frameworks
• Organizer for the Java and AWS User groups
• Not related to Tyrion Lannister
• Don’t do kids parties
@rorypreddy
- 5. State Of the Docker Nation
•Docker CE and EE
•Compose 3
•EKS and AKS
•Docker 18
- 8. Spring Boot: Docker image
• Install Java
• Install application JAR file
• Configure image to run Java on start-up
• Handle externalized configuration
- 15. Angular
quotes: Quote[] = new Array();
url: string = 'http://localhost:8080/quotes-reactive';
getQuoteStream(page?: number, size?: number): Observable<Array<Quote>> {
this.quotes = new Array();
return Observable.create((observer) => {
let url = this.url;
let eventSource = new EventSource(url);
eventSource.onmessage = (event) => {
console.debug('Received event: ', event);
let json = JSON.parse(event.data);
this.quotes.push(new Quote(json['id'], json['book'], json['content']));
observer.next(this.quotes);
};
eventSource.onerror = (error) => observer.error('EventSource error: ' + error);
});
}
- 17. Angular
quotes: Quote[] = new Array();
url: string = 'http://localhost:8080/quotes-reactive';
getQuoteStream(page?: number, size?: number): Observable<Array<Quote>> {
this.quotes = new Array();
return Observable.create((observer) => {
let url = this.url;
let eventSource = new EventSource(url);
eventSource.onmessage = (event) => {
console.debug('Received event: ', event);
let json = JSON.parse(event.data);
this.quotes.push(new Quote(json['id'], json['book'],
json['content']));
observer.next(this.quotes);
};
eventSource.onerror = (error) => observer.error('EventSource error: ' + error);
});
- 19. What is Docker Compose?
• Define and run multi-container applications
• Specify images and configuration in a simple
YAML file:
docker-compose.yml
• One command to get it all running:
$ docker-compose up
- 20. What is Docker Compose?
docker-compose up:
• Builds images from Dockerfiles
• Pulls images from registries
• Creates and starts containers
• Streams their logs
- 22. What is Docker Compose?
Make your development environments:
• Repeatable
• Isolated
• Fast
- 33. Finally
• Reactive Project - https://github.com/roryp/full-reactive-stack
• Swarm & K8 - https://github.com/dockersamples/k8s-wordsmith-demo