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
def GIT_URL = 'https://tahoorali@bitbucket.org/talhaprojectteam/auction-teams.git' | |
pipeline{ | |
agent { | |
node('master') | |
}//end agent | |
stages{ | |
stage('checkout') { | |
steps{ | |
git branch: 'feature/initial-setup', credentialsId: 'bitbucket', url: GIT_URL |
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
#/bin/bash | |
echo "Running yum update" | |
sudo yum update | |
# https://computingforgeeks.com/how-to-install-java-11-openjdk-11-on-rhel-8/ | |
echo "Install java 11 SDK" | |
sudo yum install java-11-openjdk-devel |
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
Tutorial: https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-docker.html#sample-docker-install | |
on following as is the tutorial, got mongodb GPG error while `apt update`. | |
Solved by adding commands from this url- | |
https://askubuntu.com/questions/842592/apt-get-fails-on-16-04-or-18-04-installing-mongodb/842599 |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Metadata": { | |
"AWS::CloudFormation::Designer": { | |
"63dae6c8-ebdb-459b-88db-02ad5dae294a": { | |
"size": { | |
"width": 60, | |
"height": 60 | |
}, | |
"position": { |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Resources": { | |
"SQS1": { | |
"Type": "AWS::SQS::Queue", | |
"Properties": { | |
"VisibilityTimeout": 40, | |
"MessageRetentionPeriod": 1209600, | |
"RedrivePolicy": { | |
"deadLetterTargetArn": { |
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
aws cloudformation describe-stacks | |
aws cloudformation create-stack --stack-name cli-V5 --template-body file://V5.json --parameters ParameterKey=ENV,ParameterValue=dev | |
aws cloudformation list-stacks |
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
${fileToUpload} |
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
${fileToUpload} |
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
String file contents |
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
148 grep -E monday day.txt --color | |
149 grep -E "[mM]onday" day.txt --color | |
matches both smal and big M | |
150 grep -E "[a-z]onday" day.txt --color | |
151 grep -E "[a-zA-Z]onday" day.txt --color | |
matches any charater followed by string 'onday' | |