Skip to content

Instantly share code, notes, and snippets.

View j-mprabhakaran's full-sized avatar

Prabhakaran Jayaraman Masani j-mprabhakaran

  • Chennai, Tamil Nadu, India
View GitHub Profile
@j-mprabhakaran
j-mprabhakaran / Dockerfile-JavaWebApp
Created August 31, 2017 07:25
Dockerize Java Application
FROM centos:7
MAINTAINER AuthorName <author-email@xxx.com>
ENV JAVA_HOME /opt/jdk1.8.0_144
ENV M2_HOME /opt/apache-maven-3.3.9
ENV CATALINA_HOME /opt/tomcat
ENV PATH $CATALINA_HOME/bin:$PATH
RUN yum install -y wget && \
FROM microsoft/dotnet:1.1.1-sdk
MAINTAINER Author<author-name@abc.com>
RUN mkdir /app
WORKDIR /app
COPY dotnetapp.csproj .
RUN dotnet restore
COPY . .
@j-mprabhakaran
j-mprabhakaran / wp-ansible-terraform-initial-setup
Created February 17, 2018 12:26
Initial setup required on the local machine for deploying wordpress site using ansible and terraform
# Ubuntu:
===================
sudo su
python --version
apt-get update
apt install -y python-pip
pip install --upgrade pip
apt-get install curl -y
curl -O https://releases.hashicorp.com/terraform/0.11.2/terraform_0.11.2_linux_amd64.zip
mkdir /bin/terraform
@j-mprabhakaran
j-mprabhakaran / AWSDevOpsStudyNotes
Last active May 28, 2022 01:25
AWS DevOps Engineer Professional Study Notes
CI & CD:
========
2 core software development processes
CI process of automating regular code commits followed by an automated build and test process designed to highlight intergration issues early.
Additional tooling and functionality provided by Bamboo, CruiseControl, Jenkins, Go and TeamCity etc.
workflow based
CD takes the form of a workflow based process which accepts a tested software build payload from a CI server. Automates the deployment into a working QA, Pre-prod or Prod environment.
AWS CodeDeploy and CodePipeline provide CI/CD services
Elasticbeanstalk and CFN provide functionality which can be utilized by CI/CD servers.
@j-mprabhakaran
j-mprabhakaran / AWSPointsToRemember
Created April 15, 2018 11:53
AWSPointsToRemember
1. In AWS batch, you are able to specify minimum, maximum and desired number of CPU's.
2. Amazon EBS-backed EC2 instances boot faster than instance store-backed instances.
3. The operating system offered in Amazon Light sail are Amazon Linux and Ubuntu.
4. AWS Elastic beanstalk is used to spin up infrastructure that is both externally facing and internally facing.
5. SSD-backed Amazon EBS gives you low latency.
6. AWS can only create latency record sets in the AWS region, not in customer location.
7. The only routing protocol that AWS Direct Connect supports is BGP.
8. A private VIF is the logical interface between your on-premises network and AWS resource located in VPC.
9. Cloud front will forward a file to a user as soon as it get it's first bytes. It does no error checking.
10. Origin access identity (OAI) is used to restrict access to your Amazon S3 content.
@j-mprabhakaran
j-mprabhakaran / AWSDevOpsExamTips
Last active May 28, 2022 01:25
AWSDevOpsExamTips
Autoscaling.
◾Understand autoscaling inside and out.
◾Make sure you know the differences between deploying with and without Cloudformation (as there are some deployment methods you can do with Cloudformation that you can’t without) and the command or JSON syntax to perform them.
◾Understand lifecycle hooks and the autoscaling stages they run in
◾Understand launch configurations and how they work and are updated (hint: You must replace them)
◾Understand why you may need to place an instance into STANDBY state
•Elastic Beanstalk.
◾You’ll need to know this to an advanced level.
◾Understand what stacks Beanstalk supports natively and how you would deploy a stack it doesn’t (hint: Use Docker).
@j-mprabhakaran
j-mprabhakaran / Java8-Installation
Last active April 19, 2018 14:42
Java8-Installation
# Install Java 8u172
#####################
cd /opt/
sudo wget -c -O "jdk-8u172-linux-x64.tar.gz" --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u172-b11/a58eab1ec242421181065cdc37240b08/jdk-8u172-linux-x64.tar.gz"
sudo tar xzf jdk-8u172-linux-x64.tar.gz
cd /opt/jdk1.8.0_172/
sudo alternatives --install /usr/bin/java java /opt/jdk1.8.0_172/bin/java 2
sudo alternatives --config java
sudo alternatives --install /usr/bin/jar jar /opt/jdk1.8.0_172/bin/jar 2
sudo alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_172/bin/javac 2
@j-mprabhakaran
j-mprabhakaran / Jenkins-Installation
Created April 19, 2018 15:12
Jenkins-Installation
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
sudo yum install -y jenkins
sudo systemctl start jenkins.service
sudo systemctl enable jenkins.service
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
@j-mprabhakaran
j-mprabhakaran / Docker-Installation
Last active April 19, 2018 15:34
Docker-Installation
sudo yum install -y docker
sudo systemctl start docker.service
sudo systemctl enable docker.service
sudo usermod -a -G docker ec2-user
sudo usermod -a -G docker jenkins
@j-mprabhakaran
j-mprabhakaran / GCP Architect Part-1
Created January 16, 2019 12:50
Google Certified Cloud Architect Part 1 Notes from Linux Academy
Google Certified Professional Cloud Architect - Part 1
======================================================
GCP Overview
Google's suite of cloud computing services; run on same infra and network as google
Compute -> App Engine, Container Engine, Compute Engine
Storage -> Bigtable, Cloud Storage, Cloud SQL, Cloud Datastore
Big Data -> BigQuery, Pub/Sub, Dataflow, Dataproc, Datalab
Machine Learning -> Vision API, Machine Learning, Speech API, Translation API
https://cloud.google.com/pricing
Per second pricing for instances;Private Global Fiber network;Live migration of VMs;Better performance;Industry leading security;access to innovative resources(Big data,ML)