Posts

Docker - Containerizing an App

Image
Containerizing an App: CODE - DOCKERFILE - BUILD -IMAGE To get our code into Container we need something called Dockerfile Dockerfile - List of instructions on how to build an image with an app inside.  The above Dockerfile contains 4 layers and some metadata Now build an image docker image build -t apiembark .  Now run a container from that image docker container run -d --name test_app -p 8080:8080  apiembark Code ->Dockerfile -> Docker Image Build Build Context - Location of our code (My Dockerfile is located in the build context) But when you type docker image build whatever is in there is get sent to the daemon and processes part of the build. Now for us, the client and daemon are on the same host but it is totally possible to have clients talking to remote Daemons over the network In that  case , our build context can absolutely be a remote  gihub  rep...

Docker Deep Dive

Image
Containers are white hot at the moment especially Docker and Kubernetes. Reckon: to think or believe i,e..  I reckon you will love it. waffle: to talk or write a lot without giving any useful information or any clear answers modular: consisting of separate parts that, when combined, form a complete whole. primitive:  are the simplest elements available in a programming language. A primitive is the smallest 'unit of processing' available to a programmer Refactoring: is the process of altering an application's source code without changing it's external behaviour. The purpose code Refactoring is to improve some of the nonfunctional properties of the code, such as readability, complexity, maintainability, extensibility Swapping: the act of swapping two variables refers to mutually exchanging the values of the variables. Usually, this done with the data in memory ex: in a program data_item x := 1 data_item y := 0 swap (x, y); After swap x become...

Integrating Docker with DevOps Automated Workflow

Image

Getting Started with Docker

Image
Working with Containers: What is a Container? So, you know how a virtual machine manager or a hypervisor, how it grabs physical resources like CPU, RAM, storage, networks, then, it slices them into virtual versions, so virtual CPU, virtual RAM, virtual NICs, all that goodness, and then it builds virtual machines out of them, virtual machines that look, smell, and feel like normal physical servers. Well not so with containers. Now, keeping this somewhat high-level here, instead of slicing and dicing physical server resources , Docker and other container engines slice and dice operating system resources . So, they slice up the process namespace, the network stack, the storage stack, the file system hierarchy actually. In effect, every container gets its own PID1 , process ID 1, every container gets its own root file system, that's obviously / on Linux and c on Windows. So, hypervisor virtualization virtualizes physical server resources and builds virtual machines . Container e...

Docker and Containers: The Big Picture

Image
What are containers? Hypervisor: A Hypervisor is a Hardware Virtualization technique that allows multiple guest operating system to run on a single host system at the same time. What is Docker? We can say Docker is to containers what VMware is to Hypervisors Core Docker components are written in Go or golang   the mordern programming language   that came out of Google. Registry: a place where official records are kept Docker Hub the public docker Registry , a place where you can store and retrieve Docker images, well there are 2.40 000 Repositories on there, 2.40 000 Docker Engine:  Core   technology that actually runs containers Clustering , in the context of databases, refers to the ability of several servers or instances to connect to a single database. An instance is the collection of memory and processes that interacts with a database, which is the set of physical files that act...

AWS Developer: Getting Started

fuss:     a show of  anger ,  worry , or  excitement  that is  unnecessary  or greater than the  situation   deserves : i.e: I don't know what all the fuss is about       It's all a fuss about nothing       I don't  see   what the   fuss  is about  - he  seems  like a  fairly  ordinary-looking  guy  to me. daunting: seems difficult to deal with in prospect; intimidating. i.e: AWS can seem daunting . You know one of the pain points which I experienced when first learning was difficulty in working through Amazon documentation, and overwhelming issue of where to start to learn. holistic:   dealing   with or   treating   the   whole   of something or someone and not just a   part : synonyms:  Complete and whole i.e: I have designed this course to guide developers through AWS ...

Amazon Web Service - Big Picture

Image
Paradigm  - a pattern or model Amazon grabbed on this new paradigm and developed a business to support and profit off of cloud computing in the form of Amazon web services Versatile - able to adapt or to be adapted to many different functions or                              activities Ec2 is an endlessly versatile resource that can be used for whatever you need it to use for. Virtual - not physically existing as such but made by software                to appear to do so Agnostic - relating to hardware or software that can be used with many                   different types of platform(= system) The basic building block in EC2 is an instance. An instance is essentially a virtual server which is operating system agnostic . Amazon Elastic Compute Cloud(EC2) - provides scalable computing capacity in...