Posts

Showing posts from September, 2019

How to setup the Docker Private Registry on Ubuntu 19.04 with Docker 19.03.2?

What is Docker registry? There are various situations where a team could work on the microservices. Every time you connect to the internet and pull the images will be cost & time-consuming process. In an organization level if we set up the docker registry, where we can pull the images and all team members will reuse it by using the internal network. Docker  public registry A central place to store all organizational required docker images were distributed. There are several implementations of docker registries where it is build up with the following: A simple webserver to make access to docker images available A complete web application with user access Docker builds are available in two services: DockerHub, Docker Trusted Registry DockerHub is a public repository where you publish your contribution to any image that you made with tag [versions] which can be downloaded by anyone from the internet. It should be searchable.  It all depends on the stars , the num...

Docker EE installation on Windows 2019 on AWS instance

Image
Learning Docker for Certification preparation it is must to understand various types of platforms Windows Server later versions of 2016 will be suitable to run the docker enterprise engine. and also remember that the latest Docker will run on 64bit platforms only. If you like to test this on AWS AMI then it is a must that you must allocate 30G disk space for the instance. So better stop all other instances first when you run the AWS Windows instance starts. Choose your Cloud wisely! Note : Windows instance on AWS is going to consume more disk space, they are fat like elephants! Docker installation on Windows 2019 AWS AMI Step1: Login to the AWS console, navigate to your Services-> EC2 instances click on the 'Launch Instance'. The AWS instance Windows 2019 AMI Selection Step 2: Choose the instance type from the list:t2micro free-tier aws instance type selection Step 3: Go with the default options no changes required. Step 4: Select the disk storage ...

Jenkins Configure build-server environment on AWS AMI

Image
In this post, I would like to share my experiment with AWS instances using IAM role for authenticating from the remote machine that is Jenkins Master instance. make sure that Jenkins Master should not have any executors on the master so that no job run on the master server, that will be making the Jenkins run in a distributed environment. Jenkins Master-Slave implementation within the AWS instances, and to do this. We need to follow a flow. Jenkins Master -> key pair -> Build server ->IAM->ec2 or EBS or S3 instance Create IAM role for the build server Login to your AWS console, search for IAM on the AWS console In the left pane select 'Roles' menu item. In the right side, click on the "Create role " blue button. select the type of trusted entity as "AWS service" that is default one. Now choose the service that will use this role: click on "EC2" Link. Click on the 'Permissions' bottom right side button, proceed furthe...

Continuous Integration Automation: Webhook on GitHub notify Jenkins

Image
Hello Guys, Jenkins CI/CD enthusiast, In this post, I would like to discuss the implementation of Jenkins Continuous Integration automatic build triggers. Where Jenkins master will be stay connected with the GitHub server with an API token based authentication. To connect with GitHub server we need a personal access token. Webhook for GitHub and Jenkins integration Create token credentials GitHub server configuration Webhook is a wonderful solution that will keep track of changes that made to the GitHub repo and notify the Jenkins Master. If we create the item or freestyle project will be triggered automatically. Create token credentials  Login into the Jenkins console, Click on the left pane - "Manage jenkins" link. Select the "System Configure" navigates to the new page where you need scroll down till you found the GitHub section. First we will create the token, look for the "Advanced" button on the rightside. Additional actions: 'C...

Jenkins Master setup on AWS Instance Ubuntu 18.04

Image
Hello, dear DevOps Enthusiast! The Jenkins master setup on AWS Cloud instance - Ubuntu 18.04 detailed execution steps that performed are collected and posted in this post. Jenkins install on Ubuntu instance of AWS Login to your AWS console, go to EC2 Dashboard and perform the following steps Create a Security Group Key pair for instance Create Ubuntu AMI instance Elastic IPs Configure and associate Install Java, Nginx, and Jenkins Configure Nginx proxy 1. Create a security group Security Group which will allow the protocol: SSH, TCP ICMP, HTTP, HTTPS Using security group we can specify the network allow to access. Go to the EC2 dashboard. "Create a security group" button. The Security Group name it as 'my_sg01'. Outbound tab keeps as it is, goto the inbound tab and define for incoming traffic. Secure Shell ->22-> My IP HTTP web traffic ->80 -> anywhere HTTPS web secure traffic -> 443 -> anywhere Tag it "my_sg01",...