Dockerizing your first app
Definition
Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud.
How to
While we’ll define concepts along the way, it is good for you to understand what Docker is and why you would use Docker before we begin.We also need to assume you are familiar with a few concepts before we continue:- IP Addresses and Ports
- Virtual Machines
- Editing configuration files
- Basic familiarity with the ideas of code dependencies and building
- Machine resource usage terms, like CPU percentages, RAM use in bytes, etc.
Definition
Run containers through a simple, yet powerful graphical user interface.
How to
Now part of the Docker Toolbox (windows, mac)
Needs to be downloaded for linux through github release
Definition
A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image
How to
- Create a Dockerfile file
- Define all the commands that you need for your container to run
Definition
Compose is a tool for defining and running multi-container Docker applications.
How to
- Define your app’s environment with a Dockerfile so it can be reproduced anywhere.
- Define the services that make up your app in docker-compose.yml so they can be run together in an isolated environment.
- Run docker-compose up and Compose starts and runs your entire app.
Referências
https://www.docker.com/
https://docs.docker.com/engine/reference/builder/
https://docs.docker.com/compose/
https://github.com/Qualy-org/qualy-presenter
Dúvidas?
Obrigado ♥