This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:7 | |
MAINTAINER AuthorName <[email protected]> | |
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 && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/dotnet:1.1.1-sdk | |
MAINTAINER Author<[email protected]> | |
RUN mkdir /app | |
WORKDIR /app | |
COPY dotnetapp.csproj . | |
RUN dotnet restore | |
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
OlderNewer