Posts

Showing posts from March, 2017

how to upgrade Jenkins if you don't have internet connectivity on VM?

Image
·         Prerequisites:      Take backup of all the jobs available in Virtual machine or take a snapshot of VM.      For taking Backup manually go to the path: C:\Program Files (x86)\Jenkins      Stop the running jenkins service on local. ·         Copy all the Files and save it in another folder named Backup.    Steps to Upgrade Jenkins: 1.      Identify Current Jenkins Version on https://jenkins.io/ 2.      Make sure the version must be LTS (Long term Support). Recently we have Jenkins 2.32.1 (LTS). 3.      Download the Version and keep it in Download folder. For Windows we are using .msi installer for Jenkins upgrade. 4.      Here is the link for windows installer: http://mirrors.jenkins.io/windows/ 5.      Download the Zip file and Extract it. 6...

Consider a monolithic java application stack. Apache Web Server, Apache Tomcat application server with Active MQ and Oracle and MongoDB backend. Propose a solution to migrate this application stack to AWS. Mention all the AWS services you would use and how you would maintain HA and Load Balancing (consider app to be stateless). Mention rationale for each design decision.

Image
Given Scenario: For monolithic java application stack. Apache Web Server, Apache Tomcat application server with Active MQ and Oracle and MongoDB backend. Propose a solution to migrate this application stack to AWS. Mention all the AWS services you would use and how you would maintain HA and Load Balancing (consider app to be stateless). Mention rationale for each design decision. Solution: AWS services used for Migration:  Route 53 : Amazon Route 53 is a highly available and scalable cloud Domain Name System (DNS) web service. It is designed to give developers and businesses an extremely reliable and cost effective way to route end users to Internet applications by translating names like www.CompanyACloud.com  ELB (Elastic Load Balancing) : Elastic Load Balancing offers two types of load balancers that both feature high availability, automatic scaling, and robust security. Here we are implementing ELB for High availability.  EC2 (Elastic Cloud Compute) : It provides you wi...

Write a Dockerfile (CentOS 6) to install the following in a Docker continer: Python 2.7 MongoDB - any version Apache tomcat 7 - running on port 8080

#The base image to use in the build FROM centos:centos6 MAINTAINER The Sagar Pimparkar <sagar.pimparkar27@gmail.com> ###Installing MongoDB server using epel release Repo RUN yum -y update; yum clean all RUN yum -y install epel-release; yum clean all RUN yum -y install mongodb-server; yum clean all RUN mkdir -p /data/db #Opens a port for linked containers EXPOSE 27017 ENTRYPOINT ["/usr/bin/mongod"] ###Installing python # Install yum dependencies RUN yum -y update && \ yum groupinstall -y development && \ yum install -y \ bzip2-devel \ git \ hostname \ openssl \ openssl-devel \ sqlite-devel \ sudo \ tar \ wget \ zlib-dev # Install python2.7 RUN cd /tmp && \ wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz && \ tar xvfz Python-2.7.8.tgz && \ cd Python-2.7.8 && \ ./configure --prefix=/usr/local && \ ...