Dockerizing Symfony2 application. Why Docker is so cool And what is Docker? And what are Containers? How they works? What are the ecosystem of Docker? And how to dockerize your web application (can be based on Symfony2 framework)?
Dockerize your Symfony application - Symfony Live NYC 2014André Rømcke
With the advent of docker it is now easier then ever to make sure you develop, test and deploy using the same environment, resulting in no more issues caused by differences or missing libraries. Talk will go into the basics of containers, docker, and showcase how you might setup a basic php + mysql environment for your symfony app.
https://joind.in/12188
Getting instantly up and running with Docker and SymfonyAndré Rømcke
A look into how you can start to use Docker today with ready made setup with php7, nginx, redis, blackfire and so on. How you may extend it, and integrating it into your continuous integration workflow, and how you can setup a continuous deployment workflow using for instance Travis-CI.
Quicklink: https://legacy.joind.in/19070
Ansible overview, architecture and concepts.
What is deploy? And how to deploying Symfony2 app with Ansible.
Thanks for http://www.slideshare.net/ramondelafuente/ansible-projectdeploy/.
Алексей Петров "Dockerize Me: Distributed PHP applications with Symfony, Dock...Fwdays
В рамках доклада будут рассмотренные следующие аспекты распределённых приложений:
Сервис ориентированная архитектура, жизнь и структура распределённых приложений
Основные понятия Docker преимущества и недостатки
Service discovery и Failure detection при помощи Consul
Orchestration и provisioning Docker контейнеров с помощью Ansible
Схема доставки приложений на базе фремворка Symfony 2, организация масштабируемых решений
Dockerize your Symfony application - Symfony Live NYC 2014André Rømcke
With the advent of docker it is now easier then ever to make sure you develop, test and deploy using the same environment, resulting in no more issues caused by differences or missing libraries. Talk will go into the basics of containers, docker, and showcase how you might setup a basic php + mysql environment for your symfony app.
https://joind.in/12188
Getting instantly up and running with Docker and SymfonyAndré Rømcke
A look into how you can start to use Docker today with ready made setup with php7, nginx, redis, blackfire and so on. How you may extend it, and integrating it into your continuous integration workflow, and how you can setup a continuous deployment workflow using for instance Travis-CI.
Quicklink: https://legacy.joind.in/19070
Ansible overview, architecture and concepts.
What is deploy? And how to deploying Symfony2 app with Ansible.
Thanks for http://www.slideshare.net/ramondelafuente/ansible-projectdeploy/.
Алексей Петров "Dockerize Me: Distributed PHP applications with Symfony, Dock...Fwdays
В рамках доклада будут рассмотренные следующие аспекты распределённых приложений:
Сервис ориентированная архитектура, жизнь и структура распределённых приложений
Основные понятия Docker преимущества и недостатки
Service discovery и Failure detection при помощи Consul
Orchestration и provisioning Docker контейнеров с помощью Ansible
Схема доставки приложений на базе фремворка Symfony 2, организация масштабируемых решений
Docker orchestration using core os and ansible - Ansible IL 2015Leonid Mirsky
The last couple of years have seen an increasing interest in Docker and related technologies. One of these technologies is CoreOS, a new operating system built from the ground up for running Docker containers at scale.
In this talk we will learn about CoreOS main concepts and tools. We will get our hands dirty as we work together toward a goal of running a CoreOS cluster on AWS (using Ansible) and running docker containers on it.
The talk will conclude with a discussion on the place of Ansible (and configuration management tools in general) in the "next-generation" stack.
Docker All The Things - ASP.NET 4.x and Windows Server ContainersAnthony Chu
Docker is awesome and there's been a lot of excitement over .NET Core running in Linux containers. But why do older apps have to miss out on the fun? With Windows Server 2016 and Windows Server containers, there's finally a way to dockerize .NET 4.6 apps using the same Docker tools and commands as we're used to on Linux. In this intermediate level talk, I'll give an overview of Docker and Windows Server containers. Then I'll demonstrate different ways to run existing ASP.NET Web API, MVC, and even WebForms applications inside Docker containers.
Overview of Docker 1.11 features(Covers Docker release summary till 1.11, runc/containerd, dns load balancing ipv6 service discovery, labels, macvlan/ipvlan)
Infrastructure Deployment with Docker & AnsibleRobert Reiz
This is an introduction to Docker & Ansible. It shows how Ansible can be used as orchestration too for Docker. There are 2 real world examples included with code examples in a Gist.
Docker 101: an introduction to Docker. The presentation introduces the Docker fundamentals, including LXC Containers and other tools of the Docker ecosystem.
ExpoQA 2017 Using docker to build and test in your laptop and JenkinsElasTest Project
In this workshop the basics about container use in the development environment are presented. Then we go further by describing how to leverage containers in the CI server, using Jenkins and Pipelines.
Using Docker to build and test in your laptop and JenkinsMicael Gallego
Docker is changing the way we create and deploy software. This presentation is a hands-on introduction to how to use docker to build and test software, in your laptop and in your Jenkins CI server
Docker orchestration using core os and ansible - Ansible IL 2015Leonid Mirsky
The last couple of years have seen an increasing interest in Docker and related technologies. One of these technologies is CoreOS, a new operating system built from the ground up for running Docker containers at scale.
In this talk we will learn about CoreOS main concepts and tools. We will get our hands dirty as we work together toward a goal of running a CoreOS cluster on AWS (using Ansible) and running docker containers on it.
The talk will conclude with a discussion on the place of Ansible (and configuration management tools in general) in the "next-generation" stack.
Docker All The Things - ASP.NET 4.x and Windows Server ContainersAnthony Chu
Docker is awesome and there's been a lot of excitement over .NET Core running in Linux containers. But why do older apps have to miss out on the fun? With Windows Server 2016 and Windows Server containers, there's finally a way to dockerize .NET 4.6 apps using the same Docker tools and commands as we're used to on Linux. In this intermediate level talk, I'll give an overview of Docker and Windows Server containers. Then I'll demonstrate different ways to run existing ASP.NET Web API, MVC, and even WebForms applications inside Docker containers.
Overview of Docker 1.11 features(Covers Docker release summary till 1.11, runc/containerd, dns load balancing ipv6 service discovery, labels, macvlan/ipvlan)
Infrastructure Deployment with Docker & AnsibleRobert Reiz
This is an introduction to Docker & Ansible. It shows how Ansible can be used as orchestration too for Docker. There are 2 real world examples included with code examples in a Gist.
Docker 101: an introduction to Docker. The presentation introduces the Docker fundamentals, including LXC Containers and other tools of the Docker ecosystem.
ExpoQA 2017 Using docker to build and test in your laptop and JenkinsElasTest Project
In this workshop the basics about container use in the development environment are presented. Then we go further by describing how to leverage containers in the CI server, using Jenkins and Pipelines.
Using Docker to build and test in your laptop and JenkinsMicael Gallego
Docker is changing the way we create and deploy software. This presentation is a hands-on introduction to how to use docker to build and test software, in your laptop and in your Jenkins CI server
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...Codemotion
In less than two years Docker went from first line of code to major Open Source project with contributions from all the big names in IT. Everyone is excited, but what's in for me - as a Dev or Ops? In short, Docker makes creating Development, Test and even Production environments an order of magnitude simpler, faster and completely portable across both local and cloud infrastructure. We will start from Docker main concepts: how to create a Linux Container from base images, run your application in it, and version your runtimes as you would with source code, and finish with a concrete example.
Running the Oracle SOA Suite Environment in a Docker ContainerGuido Schmutz
Docker is all about making it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package. Docker helps creating, moving and duplicating environments.
This presentation will give an introduction to Docker, the ideas behind containerization and explain why there is so much hype around Docker and why you should be taking notice. I will show how Docker containers can be used to setup different environments, such as SOA Suite, Service Bus, Business Activity Monitoring and Event Processing and Stream Explorer. The talk will also include various short live demos.
Real-World Docker: 10 Things We've Learned RightScale
Docker has taken the world of software by storm, offering the promise of a portable way to build and ship software - including software running in the cloud. The RightScale development team has been diving into Docker for several projects, and we'll share our lessons learned on using Docker for our cloud-based applications.
Docker is the Open Source container engine. It lets you author, run, and manage software containers. Escape from dependency hell, and make deployment a breeze! This presentation includes the standard Docker intro (actualized for Docker 0.11) as well as some insights about how to perform orchestration and multi-host container linking.
Similar to Dockerizing a Symfony2 application (20)
Water scarcity is the lack of fresh water resources to meet the standard water demand. There are two type of water scarcity. One is physical. The other is economic water scarcity.
About
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
Technical Specifications
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
Key Features
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface
• Compatible with MAFI CCR system
• Copatiable with IDM8000 CCR
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
Application
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfKamal Acharya
The College Bus Management system is completely developed by Visual Basic .NET Version. The application is connect with most secured database language MS SQL Server. The application is develop by using best combination of front-end and back-end languages. The application is totally design like flat user interface. This flat user interface is more attractive user interface in 2017. The application is gives more important to the system functionality. The application is to manage the student’s details, driver’s details, bus details, bus route details, bus fees details and more. The application has only one unit for admin. The admin can manage the entire application. The admin can login into the application by using username and password of the admin. The application is develop for big and small colleges. It is more user friendly for non-computer person. Even they can easily learn how to manage the application within hours. The application is more secure by the admin. The system will give an effective output for the VB.Net and SQL Server given as input to the system. The compiled java program given as input to the system, after scanning the program will generate different reports. The application generates the report for users. The admin can view and download the report of the data. The application deliver the excel format reports. Because, excel formatted reports is very easy to understand the income and expense of the college bus. This application is mainly develop for windows operating system users. In 2017, 73% of people enterprises are using windows operating system. So the application will easily install for all the windows operating system users. The application-developed size is very low. The application consumes very low space in disk. Therefore, the user can allocate very minimum local disk space for this application.
Forklift Classes Overview by Intella PartsIntella Parts
Discover the different forklift classes and their specific applications. Learn how to choose the right forklift for your needs to ensure safety, efficiency, and compliance in your operations.
For more technical information, visit our website https://intellaparts.com
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)MdTanvirMahtab2
This presentation is about the working procedure of Shahjalal Fertilizer Company Limited (SFCL). A Govt. owned Company of Bangladesh Chemical Industries Corporation under Ministry of Industries.
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdffxintegritypublishin
Advancements in technology unveil a myriad of electrical and electronic breakthroughs geared towards efficiently harnessing limited resources to meet human energy demands. The optimization of hybrid solar PV panels and pumped hydro energy supply systems plays a pivotal role in utilizing natural resources effectively. This initiative not only benefits humanity but also fosters environmental sustainability. The study investigated the design optimization of these hybrid systems, focusing on understanding solar radiation patterns, identifying geographical influences on solar radiation, formulating a mathematical model for system optimization, and determining the optimal configuration of PV panels and pumped hydro storage. Through a comparative analysis approach and eight weeks of data collection, the study addressed key research questions related to solar radiation patterns and optimal system design. The findings highlighted regions with heightened solar radiation levels, showcasing substantial potential for power generation and emphasizing the system's efficiency. Optimizing system design significantly boosted power generation, promoted renewable energy utilization, and enhanced energy storage capacity. The study underscored the benefits of optimizing hybrid solar PV panels and pumped hydro energy supply systems for sustainable energy usage. Optimizing the design of solar PV panels and pumped hydro energy supply systems as examined across diverse climatic conditions in a developing country, not only enhances power generation but also improves the integration of renewable energy sources and boosts energy storage capacities, particularly beneficial for less economically prosperous regions. Additionally, the study provides valuable insights for advancing energy research in economically viable areas. Recommendations included conducting site-specific assessments, utilizing advanced modeling tools, implementing regular maintenance protocols, and enhancing communication among system components.
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
CFD analysis is incredibly effective at solving mysteries and improving the performance of complex systems!
Here's a great example: At a large natural gas-fired power plant, where they use waste heat to generate steam and energy, they were puzzled that their boiler wasn't producing as much steam as expected.
R&R and Tetra Engineering Group Inc. were asked to solve the issue with reduced steam production.
An inspection had shown that a significant amount of hot flue gas was bypassing the boiler tubes, where the heat was supposed to be transferred.
R&R Consult conducted a CFD analysis, which revealed that 6.3% of the flue gas was bypassing the boiler tubes without transferring heat. The analysis also showed that the flue gas was instead being directed along the sides of the boiler and between the modules that were supposed to capture the heat. This was the cause of the reduced performance.
Based on our results, Tetra Engineering installed covering plates to reduce the bypass flow. This improved the boiler's performance and increased electricity production.
It is always satisfying when we can help solve complex challenges like this. Do your systems also need a check-up or optimization? Give us a call!
Work done in cooperation with James Malloy and David Moelling from Tetra Engineering.
More examples of our work https://www.r-r-consult.dk/en/cases-en/
Explore the innovative world of trenchless pipe repair with our comprehensive guide, "The Benefits and Techniques of Trenchless Pipe Repair." This document delves into the modern methods of repairing underground pipes without the need for extensive excavation, highlighting the numerous advantages and the latest techniques used in the industry.
Learn about the cost savings, reduced environmental impact, and minimal disruption associated with trenchless technology. Discover detailed explanations of popular techniques such as pipe bursting, cured-in-place pipe (CIPP) lining, and directional drilling. Understand how these methods can be applied to various types of infrastructure, from residential plumbing to large-scale municipal systems.
Ideal for homeowners, contractors, engineers, and anyone interested in modern plumbing solutions, this guide provides valuable insights into why trenchless pipe repair is becoming the preferred choice for pipe rehabilitation. Stay informed about the latest advancements and best practices in the field.
Quality defects in TMT Bars, Possible causes and Potential Solutions.PrashantGoswami42
Maintaining high-quality standards in the production of TMT bars is crucial for ensuring structural integrity in construction. Addressing common defects through careful monitoring, standardized processes, and advanced technology can significantly improve the quality of TMT bars. Continuous training and adherence to quality control measures will also play a pivotal role in minimizing these defects.
Final project report on grocery store management system..pdfKamal Acharya
In today’s fast-changing business environment, it’s extremely important to be able to respond to client needs in the most effective and timely manner. If your customers wish to see your business online and have instant access to your products or services.
Online Grocery Store is an e-commerce website, which retails various grocery products. This project allows viewing various products available enables registered users to purchase desired products instantly using Paytm, UPI payment processor (Instant Pay) and also can place order by using Cash on Delivery (Pay Later) option. This project provides an easy access to Administrators and Managers to view orders placed using Pay Later and Instant Pay options.
In order to develop an e-commerce website, a number of Technologies must be studied and understood. These include multi-tiered architecture, server and client-side scripting techniques, implementation technologies, programming language (such as PHP, HTML, CSS, JavaScript) and MySQL relational databases. This is a project with the objective to develop a basic website where a consumer is provided with a shopping cart website and also to know about the technologies used to develop such a website.
This document will discuss each of the underlying technologies to create and implement an e- commerce website.
Democratizing Fuzzing at Scale by Abhishek Aryaabh.arya
Presented at NUS: Fuzzing and Software Security Summer School 2024
This keynote talks about the democratization of fuzzing at scale, highlighting the collaboration between open source communities, academia, and industry to advance the field of fuzzing. It delves into the history of fuzzing, the development of scalable fuzzing platforms, and the empowerment of community-driven research. The talk will further discuss recent advancements leveraging AI/ML and offer insights into the future evolution of the fuzzing landscape.
3. Who am I?
Roman Rodomansky
itspoma@gmail.com
- Software Engineer at EPAM (more Dev than Ops)
- @founder of 2enota, and of adbar
- @co-organizer Lviv GDG
github.com/itspoma
skype: roman.rodomanskyy
linkedin.com/in/rodomansky
4. Questions
- who has tried Vagrant?
- who has tried Docker? (online tutorial)
- who has tried the real Docker? (deployed remote VM)
- Installed Docker locally? (under the boot2docker, or Vagrant)
- Who has written a Dockerfile? (and built it)
- An published image on Docker Hub?
- Deployed Docker image for stage?
5. ● why Docker is so cool (container madness)
● what is Docker (and why it matters)
● what are Containers (w/ background)
● the Docker ecosystem (w/ tools)
● dockerizing Symfony2 application workflow
Agenda
13. The problems
- application deploy harder than could be
- application can’t run, by reason of differences in environments
- deploying machines separately from applications
- used entire operating systems to deploy (with all of the security footprint that they entail)
- heavy-weight virtualized servers without specifying CPU/memory/etc
- make a magic button to “publish app anywhere”
- container management
- different deployment mechanisms for custom nodes
16. vs VM
Speed:
VBox -> 1 min
docker -> 0.3 sec
Memory:
VBox -> 256 Mb
docker -> 1 Mb
Disk quota:
VBox: 1 Gb
docker: 100 kb
17. LinuX Containers
has been present in Linux kernels for 5+ years and now is considered fairly mature
others:
- lmctfy Let Me Contain That For You (Google)
- libcontainer (Docker)
Background: LXC
18. Background: namespaces
separate namespaces for containers
own mount
own net namespace (network interfaces)
own uts namespace (hostname)
own ipc namespace
own user namespace (mapping uid-s between inside/outside of)
19. Control Cgroups
is a Linux kernel feature
that limits and isolates the resource usage (CPU, memory, disk I/O, network, etc) of a collection of processes
Google engineers started work on this feature in 2006 under the name “process containers”
in 2007 changed name to “control groups”
the goal - to provide a unified interface to many different use cases
- memory
- cpu
- blkio
- devices
Background: cgroups
21. - Build: package your application in a container
- Ship: move that container from a machine to another
- Run: execute that container
- Any application: anything that runs on Linux
- Anywhere: local VM, cloud instance, raspberry pi, baremetal...
The Idea
22. Hello, Docker. Who are you?
tool for managing LXC containers
client / hub
23. What is a Docker Container?
- high level = is a small virtual machine
- with own process space, network interface
- can run staff as root
- low level = it is a chroot on a steroids
- isolation with namespaces
- limitation by cgroups (own mount, own
- A container is a single service in a larger application
- a web server (e.g., nginx)
- an application server (e.g., PHP-FPM)
- need a database server (e.g., MySQL)
- Each of these services can be separated into its own Docker container
24. What is a Docker Image?
Imagine a Docker image
as a PHP class
25. bash$ docker search centos
https://registry.hub.docker.com/
https://registry.hub.docker.com/_/centos/
bash$ docker push # image to the Hub
bash$ docker pull # this image from any machine
is a cloud for sharing container images and automating workflows
free for public
paid for private
metadata + archives
similar to Git commits structure
What is a Docker Hub?
26. $ docker run -ti ubuntu /bin/bash
$ docker run -ti debian /bin/bash
$ docker run -ti fedora bash
$ docker run -ti centos bash
Your First Container
$ docker search centos
$ docker run --rm -ti centos:7 bash
$ docker run --rm -ti centos:6 bash
$ docker run --rm -ti centos:5 bash
root@container:/# cat /etc/issue
27. Building a Server with Dockerfile
- receipe to build a container
- start FROM a base image
- RUN commands on top of it
- easy to learn, easy to use
28. Dockerfile example
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get install -y nginx
EXPOSE 80
bash$ docker build -t example/nginx .
bash$ docker run -d -P example/nginx
Stop!
Demo time
show “simple-container”
https://github.com/itspoma/docker-symfony2/tree/master/env/simple-container/
30. Finally, run the web server
docker run -p 80:80 -d nginx-example
docker ps
docker run -v /home/core/share:/var/www:rw -p 80:80 -d
nginx-example
docker inspect <Container ID>
31. Linking Containers
if containers need to communicate with eachother
if your application container needs to communiate with a database container
$ docker run -p 3306:3306 -name mysql -d some-mysql-image
$ docker run -p 80:80 -link mysql:db -d some-application-image
$ env | grep MYSQL
MYSQL_PORT_3306_TCP_ADDR=172.17.0.8
MYSQL_PORT_3306_TCP_PORT=3306
33. Docker ecosystem
Docker Engine
open-source tool, written in Go, runs as a daemon, comes with a CLI, has a REST API
Docker Hub
registry of services, public/private repos, automated builds
Docker community
> 600 contributors
~20 core mainainers
> 50k repos on Docker Hub
Docker Compose
Docker Machine
Docker Swarm
34. Docker Machine
Automatically setups up Docker
on your computer,
on cloud providers,
and inside your data center.
Can provisione any host.
bash$ docker-machine create -d virtualbox dev
bash$ docker-machine create -d digitalocean dev
35. Docker Swarm
Provides native clustering capabilities to turn a
group of Docker engines into a single, virtual Docker
Engine.
36. run your stack with one command: docker-compose up
describe your stack with one file: docker-compose.yml
# docker-compose.yml
web:
image: php:5.6-apache
links:
- db:db
volumes:
- .:/var/www/html
db:
image: postgres
Docker Compose
40. attach Attach to a running container
build Build an image from a Dockerfile
commit Create a new image from a container's changes
diff Inspect changes on a container's filesystem
events Get real time events from the server
exec Run a command in a running container
images List images
history Show the history of an image
images List images
inspect Return low-level information on a container or image
port Lookup the public-facing port that is NAT-ed to PRIVATE_PORT
ps List containers
...
Making Docker commands
41. 1) The Shared Base Container(s)
2) The Shared Volume Dev Container
3) The Dev Tools Container
4) The Test In A Different Environment containers
5) The Build Container
6) The Installation Container
7) The Default-Service-In-A-Box Containers
8) The Infrastructure / Glue Containers
Docker development patterns
42. ● docker stats (built-in)
● CAdvisor (available as container, free)
● Scout (SASS, paid)
● Data Dog (SASS, free)
● Sensu (container, free)
Containers Monitoring
43. $ docker stats 18ef566e1cba 61403b48f054 e1d1e09f0dc1
CONTAINER CPU % MEM USAGE/LIMIT MEM % NET I/O
18ef566e1cba 0.44% 264.7 MiB/1.957 GiB 13.21% 1.988 KiB/648 B
61403b48f054 0.00% 684 KiB/1.957 GiB 0.03% 2.32 KiB/648 B
e1d1e09f0dc1 0.01% 17.85 MiB/1.957 GiB 0.89% 5.158 KiB/40.1 KiB
Containers Monitoring: docker stats
44. docker run
--volume=/:/rootfs:ro
--volume=/var/run:/var/run:rw
--volume=/sys:/sys:ro
--volume=/var/lib/docker/:/var/lib/docker:ro
--publish=8080:8080
--detach=true
--name=cadvisor
google/cadvisor:latest
$ open http://$(boot2docker ip):8080/
Containers Monitoring: CAdvisor
46. Summary
With Docker, you can:
- you fairly easily can build servers
- put your software into container
- run those containers anywhere
- write receipes to automatically build containers
- automate testing, building, hosting using the Docker Hub
Everything in the environment is under your control
ship the entire environment instead of just code!
шоб понять сколько весит попугай..
якшо міряти в ангулярах - то докер це пів-ангуляра
наступна метрика - гібхаб
includes not only the application - which may be only 10s of MB - and the necessary binaries and libraries, but also an entire guest operating system - which may weigh 10s of GB
the Docker Engine container comprises just the application and its dependencies
it runs as an isolated process in userspace on the host operating system, sharing the kernel with other containers. Thus, it enjoys the resource isolation and allocation benefits of VMs but is much more portable and efficient.
Containers virtualize at the operating system level, Hypervisors virtualize at the hardware level.
Containers can boot and be application-ready in less than 500ms
Hypervisors boot according to the OS typically 20 seconds, depending on storage speed.
Containers have less overhead than VMs
there are many Linux container technologies
but they all operate using the same principles of isolating an application space within an operating system
Linux Containers rely on namespaces && cgroups (control groups)
The Idea
це не система віртуалізації
це не ноухау
любая случайность неизбежна -- если би кто пришел позже на 2-3 месяца, назвал бы по другому, и сделал бы то же самое
на базе LXC (плохой интерфейс), в докере это исправили
+ гарантированное состояние сервиса (если собрали сервис в образ, залили - мы можем к нему потом откатится)
+ получить и упростить деплой (быстрый и простой)
+ минимальный даунтайм (уменьшить время деградации сервиса при обновлении)
+ простаивает оборудование
+ genuine application portability
+ using lightweight packages instead of a full VMs
the idea that you starts from base container/image
Docker adds a wrapper around containers that makes them easy to consume
developers care about apps, operations cares about containers
a little demo how docker is looked like
docker is a cli thing
A Docker container only stays alive as long as there is an active process being run in it.
-t Allocate a (pseudo) tty, -i - Keep stdin open
extramelly fast
snapshots
The Dockerfile provides a set of instructions for Docker to run on a container
start run without learning a huge ton of documentation
snapshots
update and show build on updated RUN (reuse the s naptshot)
Kitematic
currently in beta
It creates servers, installs Docker on them, then configures the Docker client to talk to them.
you can scale out your application
is a simple tool which controls a cluster of Docker hosts and exposes it as a single “virtual” host.