Slide 1

Slide 1 text

Playing with Docker and Docker Compose

Slide 2

Slide 2 text

Who Am I? I'm this guy https://creativecommons.org/licenses/by-sa/4.0/ Playing with Docker and Docker Compose https://redrat.com.br

Slide 3

Slide 3 text

Before talk about beautiful things about Docker... Let’s return to the past of software management Playing with Docker and Docker Compose

Slide 4

Slide 4 text

The past was so much… bare metal servers Playing with Docker and Docker Compose

Slide 5

Slide 5 text

Playing with Docker and Docker Compose

Slide 6

Slide 6 text

Playing with Docker and Docker Compose

Slide 7

Slide 7 text

But, and virtualization? This is subject for other talk :) Playing with Docker and Docker Compose

Slide 8

Slide 8 text

The problem Playing with Docker and Docker Compose How to make an Ultimate chocolate cake?

Slide 9

Slide 9 text

The solution Playing with Docker and Docker Compose Ultimate chocolate cake STEP 1: Heat the oven to 160C/fan 140C/gas 3. Butter and line a 20cm round cake tin (7.5cm deep). STEP 2: Put 200g chopped dark chocolate in a medium pan with 200g butter. STEP 3: Mix 1 tbsp instant coffee granules into 125ml cold water and pour into the pan. STEP 4: Warm through over a low heat just until everything is melted – don’t overheat. Or melt in the microwave for about 5 minutes, stirring halfway through. STEP 5: Mix 85g self-raising flour, 85g plain flour, ¼ tsp bicarbonate of soda, 200g light muscovado sugar, 200g golden caster sugar and 25g cocoa powder, and squash out any lumps. STEP 6: Beat 3 medium eggs with 75ml buttermilk. STEP 7: Pour the melted chocolate mixture and the egg mixture into the flour mixture and stir everything to a smooth, quite runny consistency. STEP 8: Pour this into the tin and bake for 1hr 25 – 1hr 30 mins. If you push a skewer into the centre it should come out clean and the top should feel firm (don’t worry if it cracks a bit). STEP 9: Leave to cool in the tin (don’t worry if it dips slightly), then turn out onto a wire rack to cool completely. Cut the cold cake horizontally into three. STEP 10: To make the ganache, put 200g chopped dark chocolate in a bowl. Pour 300ml double cream into a pan, add 2 tbsp golden caster sugar and heat until it is about to boil. STEP 11: Take off the heat and pour it over the chocolate. Stir until the chocolate has melted and the mixture is smooth. Cool until it is a little thicker but still pourable. STEP 12: Sandwich the layers together with just a little of the ganache. Pour the rest over the cake letting it fall down the sides and smooth over any gaps with a palette knife. STEP 13: Decorate with 50g grated chocolate or 100g chocolate curls. The cake keeps moist and gooey for 3-4 days. Ingredients For the chocolate cake 200g dark chocolate (about 60% cocoa solids), chopped 200g butter, cubed 1 tbsp instant coffee granules 85g self-raising flour 85g plain flour ¼ tsp bicarbonate of soda 200g light muscovado sugar 200g golden caster sugar 25g cocoa powder 3 medium eggs 75ml buttermilk 50g grated chocolate or 100g curls, to decorate For the ganache 200g dark chocolate (about 60% cocoa solids), chopped 300ml double cream 2 tbsp golden caster sugar Font: https://www.bbcgoodfood.com/recipes/ultimate-chocolate-cake

Slide 10

Slide 10 text

Docker is our recipe book Playing with Docker and Docker Compose

Slide 11

Slide 11 text

Docker is our recipe book Playing with Docker and Docker Compose

Slide 12

Slide 12 text

Docker Playing with Docker and Docker Compose “Docker is a software platform that allows you to build, test, and deploy applications quickly. Docker packages software into standardized units called containers that have everything the software needs to run including libraries, system tools, code, and runtime. Using Docker, you can quickly deploy and scale applications into any environment and know your code will run.” Amazon Web Services. “Docker is an open source platform that enables developers to build, deploy, run, update and manage containers—standardized, executable components that combine application source code with the operating system (OS) libraries and dependencies required to run that code in any environment.” IBM. “Docker is an open-source project for automating the deployment of applications as portable, self-sufficient containers that can run on the cloud or on-premises.” Microsoft. “Docker is an open platform for developing, shipping, and running applications. With Docker, you can separate your applications from your infrastructure and treat your infrastructure like a managed application. Docker helps you ship code faster, test faster, deploy faster, and shorten the cycle between writing code and running code.” Google Cloud Platform.

Slide 13

Slide 13 text

Playing with Docker and Docker Compose

Slide 14

Slide 14 text

Playing with Docker and Docker Compose https://github.com/joubertredrat/playing-with-docker-and-compose

Slide 15

Slide 15 text

Okay Joubert, now I know about Docker... But and Docker Compose? Playing with Docker and Docker Compose

Slide 16

Slide 16 text

The problem Playing with Docker and Docker Compose How to play a music with violin?

Slide 17

Slide 17 text

The solution Playing with Docker and Docker Compose Plays using music sheet (recipe)

Slide 18

Slide 18 text

But... Playing with Docker and Docker Compose If you have a lot of musicians and instruments?

Slide 19

Slide 19 text

The solution Playing with Docker and Docker Compose

Slide 20

Slide 20 text

Docker Compose is our orchestrator Playing with Docker and Docker Compose

Slide 21

Slide 21 text

Playing with Docker and Docker Compose

Slide 22

Slide 22 text

Playing with Docker and Docker Compose https://github.com/joubertredrat/playing-with-docker-and-compose

Slide 23

Slide 23 text

Questions? Playing with Docker and Docker Compose

Slide 24

Slide 24 text

This and other talks Playing with Docker and Docker Compose https://bit.ly/joubertredrat-palestras

Slide 25

Slide 25 text

Thanks Playing with Docker and Docker Compose