Container technology, Microservices, and DevOps

Slides:



Advertisements
Similar presentations
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 04. Other.
Advertisements

Installing and Setting up mongoDB replica set PREPARED BY SUDHEER KONDLA SOLUTIONS ARCHITECT.
Partner Practice Enablement - Overview This session will focus on integration strategies for applications deployed using Microsoft Azure Websites and Microsoft.
MongoDB First Light. Mongo DB Basics Mongo is a document based NoSQL. –A document is just a JSON object. –A collection is just a (large) set of documents.
Replication Store it in multiple places.... Literature Colouris, Dollimore, Kindberg, 2000 –Gets deep into the details of reliable communication, byzantine.
1 CMPT 471 Networking II DNS © Janice Regan,
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
#msitconf. Damien Caro Technical Evangelist Manager, Что будет, если приложение поместить в контейнер? What happens if the application.
Alfresco deployment with Docker Andrea Agili Software Engineer – Dr Wolf srl Tommaso Visconti DevOps – Dr Wolf srl.
Computing in High Energy and Nuclear Physics 2012 May 21-25, 2012 New York United States The version control service for ATLAS data acquisition configuration.
Docker Practice in Alibaba Cloud Yi Li Alibaba Cloud Architect (NOTE: PASTE IN PORTRAIT AND SEND BEHIND FOREGROUND GRAPHIC FOR CROP)
DevNet API Scavenger Hunt
Intro to Docker Containers
Microsoft Build /9/2017 5:00 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
INTRO TO Presenter: PhuongNQK.
Collectd 101.
Fundamentals Sunny Sharma Microsoft
Build /26/2018 6:17 AM Building Resilient, Scalable Services with Microsoft Azure Service Fabric Érsek © 2015 Microsoft Corporation.
Software Architecture in Practice
IT Services Katarzyna Dziedziniewicz-Wojcik IT-DB.
Dockerize OpenEdge Srinivasa Rao Nalla.
Develop, debug and deploy containerized applications with Docker
Scalability: Load Balancing
Docker and Azure Container Service
6/11/2018 8:14 AM THR2175 Building and deploying existing ASP.NET applications using VSTS and Docker on Windows Marcel de Vries CTO, Xpirit © Microsoft.
Open Source distributed document DB for an enterprise
Web Hosting with OpenShift
Software Architecture in Practice
SQL Server Containers: End-to-End
In-Depth Introduction to Docker
Ops Manager API, Puppet and OpenStack – Fully automated orchestration from scratch! MongoDB World 2016.
Deploying Dockerized Apps to the Azure Container Service
Microservices, Docker, .NET, Windows, Linux, Azure. Oh, My!
CDT Build/Run/Debug in Container
Kubernetes Container Orchestration
Introduction to Docker
Using docker containers
Azure Container Instances
Oracle DB and Docker Get Your Dockerized Oracle Sandbox Running in the Cloud or On- Premises Martin Knazovicky Dbvisit Software.
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Monitoring for large infrastructure
Intro to Docker Containers and Orchestration in the Cloud
11/27/2018 4:20 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Developing for the cloud with Visual Studio
Single Container Workloads in Azure
Learn. Imagine. Build. .NET Conf
Openstack-alapú privát felhő üzemeltetés
* Introduction to Cloud computing * Introduction to OpenStack * OpenStack Design & Architecture * Demonstration of OpenStack Cloud.
CloudOpting - Hackathon
Introduction to Docker
Container technology, Microservices, and DevOps
Container technology, Microservices, and DevOps
Azure Container Service
Abel Sanchez, John Williams
Software Engineering and Architecture
Container technology, Microservices, and DevOps
IBM Cloud Private Diagram Template
Software Engineering and Architecture
Container technology, Microservices, and DevOps
Software Engineering and Architecture
Software Engineering and Architecture
Container technology, Microservices, and DevOps
Software Engineering and Architecture
Software Engineering and Architecture
Software Engineering and Architecture
Containers and DevOps.
Docker for DBAs SQL Saturday 8/17/2019.
SQL Server Devops with production data
Containers on Azure Peter Lasne Sr. Software Development Engineer
Software Engineering and Architecture
Presentation transcript:

Container technology, Microservices, and DevOps Digital Innovation Workshop April 2019 Henrik Bærbak Christensen

Henrik Bærbak Christensen Goal Deploy a SkyCave horizontally scaled server system using a database as storage/session cache. By writing a ‘docker stack’ file (compose file) Architecture: Docker swarm orchestration (just in your M51 vm) One dedicated network Two ‘daemon’ instances, exposed on port 4567 One database storage (memcached) Optional: docker visualizer CS@AU Henrik Bærbak Christensen

Henrik Bærbak Christensen Initialization But I have no swarm??? Dispair not... Just docker swarm init in your M51 And now you have a swarm of ... one node! And it should work perfectly ok... CS@AU Henrik Bærbak Christensen

Henrik Bærbak Christensen Hints Docker compose file version ‘3’ Remember that nodes are named on the network ! Thus a node in the compose file defined by name ‘db’ will have that name on the network – you may ‘ping db’ if on that network Remember that ‘localhost’ means just that Ie. Never use localhost in a container’s connection string! Remember that services cannot connect over port mapping You need to have named images in your compose file Bug in the daemon image? You will have to build it again! You will need to modify the CPF file ‘localhost’ is not the nodename of the storage CS@AU Henrik Bærbak Christensen

Henrik Bærbak Christensen Hints You need to issue another command than the default one in the docker file Because your CPF of the daemon is different Take small steps Build the compose file incrementally, test, and iterate CS@AU Henrik Bærbak Christensen

Anatomy of compose file Override CMD in dockerfile State dependency on other service CS@AU Henrik Bærbak Christensen

More microservice like... Exercise 2 More microservice like...

Henrik Bærbak Christensen Add Subscription A fully containerized subscription service is available on docker hub henrikbaerbak/subscription:1 Exposes the port ‘7654’ which is the service entry point. It has a hard coupling to its database service: mongo:3.2.5 Must be named ‘mongodb’ in the network. CS@AU Henrik Bærbak Christensen

Henrik Bærbak Christensen Hints You need to change the CPF for the skycave daemon to something similar to: As... Your daemon must use an implementation of the subscription interface that contacts a real serviceI Copy the above _IMPLEMENTATION verbatim! And it must contact it on the proper node on the network Use whatever name you give your container/service... CS@AU Henrik Bærbak Christensen

Henrik Bærbak Christensen Additional Of course the database must be persisted between deployments. Have a look at ‘volumes’ Mongodb stores all database files in ‘/data/db’ so you have to mount a named volume in this path in the container. And you have to deploy the DB container on the same node in the swarm... CS@AU Henrik Bærbak Christensen

Henrik Bærbak Christensen More Additional Have a look at portainer.io https://www.portainer.io/overview/ Use it to get a ‘dashboard’ of your swarm… CS@AU Henrik Bærbak Christensen