Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://aws.amazon.com/amazon-linux-ami/2017.03-release-notes/
- [ec2-user@ip-10-0-1-250 ~]$
- [ec2-user@ip-10-0-1-250 ~]$
- [ec2-user@ip-10-0-1-250 ~]$
- [ec2-user@ip-10-0-1-250 ~]$
- [ec2-user@ip-10-0-1-250 ~]$
- [ec2-user@ip-10-0-1-250 ~]$
- [ec2-user@ip-10-0-1-250 ~]$ ls
- AWSsummit
- [ec2-user@ip-10-0-1-250 ~]$ cd AWSsummit/
- [ec2-user@ip-10-0-1-250 AWSsummit]$ ls
- AWSsummit lab-2-pipeline
- [ec2-user@ip-10-0-1-250 AWSsummit]$ mv lab-2-pipeline/ ../
- [ec2-user@ip-10-0-1-250 AWSsummit]$ ls
- AWSsummit
- [ec2-user@ip-10-0-1-250 AWSsummit]$ cd ..
- [ec2-user@ip-10-0-1-250 ~]$ ls
- AWSsummit lab-2-pipeline
- [ec2-user@ip-10-0-1-250 ~]$ cd /home/ec2-user/lab-2-pipeline/src/jenkins
- [ec2-user@ip-10-0-1-250 jenkins]$ ls
- Dockerfile groovy-scripts
- [ec2-user@ip-10-0-1-250 jenkins]$ cat Dockerfile
- FROM awsbootcamp/jenkins
- # Setup the Jenkins Plugins and copy groovy scripts
- COPY groovy-scripts/*.groovy /usr/share/jenkins/ref/init.groovy.d/
- RUN /usr/local/bin/install-plugins.sh aws-codepipeline:0.27 matrix-auth:1.4 junit:1.18 matrix-project:1.7.1
- [ec2-user@ip-10-0-1-250 jenkins]$ aws ecr create-repository --repository-name jenkins
- {
- "repository": {
- "registryId": "909652153136",
- "repositoryName": "jenkins",
- "repositoryArn": "arn:aws:ecr:us-east-1:909652153136:repository/jenkins",
- "createdAt": 1497317738.0,
- "repositoryUri": "909652153136.dkr.ecr.us-east-1.amazonaws.com/jenkins"
- }
- }
- [ec2-user@ip-10-0-1-250 jenkins]$ export JENKINS_REPO_URI=$(aws ecr describe-repositories \
- > --repository-names jenkins \
- > --query 'repositories[].repositoryUri' --output text)
- [ec2-user@ip-10-0-1-250 jenkins]$ env | grep JENKINS
- JENKINS_REPO_URI=909652153136.dkr.ecr.us-east-1.amazonaws.com/jenkins
- [ec2-user@ip-10-0-1-250 jenkins]$ docker build -t ${JENKINS_REPO_URI}:lab-2-pipeline /home/ec2-user/lab-2-pipeline/src/jenkins
- Sending build context to Docker daemon 4.096 kB
- Step 1/3 : FROM awsbootcamp/jenkins
- ---> 6d9bb3cd79b5
- Step 2/3 : COPY groovy-scripts/*.groovy /usr/share/jenkins/ref/init.groovy.d/
- ---> 142013ea7b06
- Removing intermediate container 3674247389ed
- Step 3/3 : RUN /usr/local/bin/install-plugins.sh aws-codepipeline:0.27 matrix-auth:1.4 junit:1.18 matrix-project:1.7.1
- ---> Running in 72ededce695c
- Creating initial locks...
- Analyzing war...
- Downloading plugins...
- Downloading plugin: aws-codepipeline from https://updates.jenkins.io/download/plugins/aws-codepipeline/0.27/aws-codepipeline.hpi
- Downloading plugin: matrix-auth from https://updates.jenkins.io/download/plugins/matrix-auth/1.4/matrix-auth.hpi
- Downloading plugin: junit from https://updates.jenkins.io/download/plugins/junit/1.18/junit.hpi
- Downloading plugin: matrix-project from https://updates.jenkins.io/download/plugins/matrix-project/1.7.1/matrix-project.hpi
- > junit depends on structs:1.2
- Downloading plugin: structs from https://updates.jenkins.io/download/plugins/structs/latest/structs.hpi
- > matrix-auth depends on icon-shim:2.0.3,cloudbees-folder:5.2.2;resolution:=optional
- > matrix-project depends on junit:1.2,script-security:1.13
- Skipping optional dependency cloudbees-folder
- Downloading plugin: icon-shim from https://updates.jenkins.io/download/plugins/icon-shim/latest/icon-shim.hpi
- Downloading plugin: script-security from https://updates.jenkins.io/download/plugins/script-security/latest/script-security.hpi
- WAR bundled plugins:
- Installed plugins:
- aws-codepipeline:0.27
- icon-shim:2.0.3
- junit:1.18
- matrix-auth:1.4
- matrix-project:1.7.1
- script-security:1.28
- structs:1.7
- Cleaning up locks
- ---> 71ca5f6b8566
- Removing intermediate container 72ededce695c
- Successfully built 71ca5f6b8566
- [ec2-user@ip-10-0-1-250 jenkins]$ docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- 909652153136.dkr.ecr.us-east-1.amazonaws.com/jenkins lab-2-pipeline 71ca5f6b8566 10 seconds ago 1.02 GB
- <none> <none> 4592c52b4146 21 minutes ago 750 MB
- golang 1.6 63330314bb46 4 months ago 749 MB
- awsbootcamp/mustachemebase latest d66168c8f79d 9 months ago 881 MB
- awsbootcamp/jenkins latest 6d9bb3cd79b5 9 months ago 970 MB
- [ec2-user@ip-10-0-1-250 jenkins]$ docker push ${JENKINS_REPO_URI}:lab-2-pipeline
- The push refers to a repository [909652153136.dkr.ecr.us-east-1.amazonaws.com/jenkins]
- 85611960fcc0: Pushed
- 0a70bccbd2ee: Pushed
- 973224b25ff1: Pushed
- 426a6c7b9d40: Pushed
- f603b71cf56c: Pushed
- 70a307058c4f: Pushed
- 5c47f9f790c8: Pushed
- 29f98222ec61: Pushed
- fd754b5fc160: Pushed
- 592d78eb59fc: Pushed
- 140240618703: Pushed
- 0ba4f8b515e7: Pushed
- c02a0aff7977: Pushed
- e75f9dd268ba: Pushed
- 7f94c34f2e76: Pushed
- f9297671100e: Pushed
- 692485f0cd71: Pushed
- e7f30faf37db: Pushed
- 6eeff1cea9fa: Pushed
- adaee1fb0269: Pushed
- 751f5d9ad6db: Pushed
- 17587239b3df: Pushed
- 9e63c5bce458: Pushed
- lab-2-pipeline: digest: sha256:656485728654f80b80dea6fda28c6b636e3932f86dd5a35b67268198f67f54f4 size: 5131
- [ec2-user@ip-10-0-1-250 jenkins]$
- [ec2-user@ip-10-0-1-250 jenkins]$
- [ec2-user@ip-10-0-1-250 jenkins]$
- [ec2-user@ip-10-0-1-250 jenkins]$ cat /home/ec2-user/lab-2-pipeline/scripts/jenkins-ecs-service.yaml
- Description: "Running Container-Enabled Microservices on AWS Bootcamp: Lab 2 - Jenkins ECS Service CloudFormation Template"
- Resources:
- JenkinsService:
- Type: "AWS::ECS::Service"
- Properties:
- Cluster: !ImportValue JenkinsCluster
- DesiredCount: "1"
- Role: !ImportValue ECSServiceRoleArn
- TaskDefinition: !ImportValue JenkinsTaskDefinition
- DeploymentConfiguration:
- MaximumPercent: 100
- MinimumHealthyPercent: 0
- LoadBalancers:
- -
- ContainerName: "jenkins"
- ContainerPort: "8080"
- TargetGroupArn: !ImportValue JenkinsALBTargetGroup
- [ec2-user@ip-10-0-1-250 jenkins]$ aws cloudformation create-stack --stack-name JenkinsService \
- > --template-body file:///home/ec2-user/lab-2-pipeline/scripts/jenkins-ecs-service.yaml
- {
- "StackId": "arn:aws:cloudformation:us-east-1:909652153136:stack/JenkinsService/8541d0b0-4fd9-11e7-9378-500c28637435"
- }
- [ec2-user@ip-10-0-1-250 jenkins]$ less /home/ec2-user/lab-2-pipeline/scripts/microservice-pipeline.yaml
- [ec2-user@ip-10-0-1-250 jenkins]$ cat less /home/ec2-user/lab-2-pipeline/scripts/microservice-pipeline.yaml
- cat: less: No such file or directory
- Description: "Running Container-Enabled Microservices on AWS Bootcamp: Lab 2 - Microservice Pipeline CloudFormation Template"
- Parameters:
- MicroserviceName:
- Type: "String"
- Description: "The CamelCase name of the microservice"
- MinLength: 2
- MaxLength: 32
- ConstraintDescription: "must be between 2 and 32 characters."
- RepoName:
- Type: "String"
- Description: "The lower case name of the microservice"
- MinLength: 2
- MaxLength: 32
- ConstraintDescription: "must be between 2 and 32 characters."
- PortNumber:
- Type: Number
- Description: "The port number on the Application Load Balancer for the microservice"
- MinValue: 8000
- MaxValue: 9000
- ConstraintDescription: "must be a number between 8000 and 9000."
- JenkinsPassword:
- Type: "String"
- NoEcho: "true"
- AllowedPattern: "[a-zA-Z0-9]*"
- Default: ""
- S3BucketName:
- Type: "String"
- Description: "Name of the S3 bucket where the source code is stored."
- Default: ""
- S3PathPrefix:
- Type: "String"
- Description: "S3 Path where source and scripts are found for the lab."
- Default: ""
- LabName:
- Type: "String"
- Description: "The name of the lab"
- ConstraintDescription: "must be a valid lab name."
- Default: "lab-2-pipeline"
- AllowedValues:
- - lab-1-microservices
- - lab-2-pipeline
- - lab-3-scale
- - lab-4-security
- ExtendedFlag:
- Type: "String"
- Description: "Set to true if you want to build and extended pipeline"
- AllowedValues:
- - "true"
- - "false"
- Default: "false"
- ConstraintDescription: "must be a boolean value"
- UseGlobalVars:
- Type: "String"
- Description: "Set to true if you want to use global variables"
- AllowedValues:
- - "true"
- - "false"
- Default: "true"
- ConstraintDescription: "must be a boolean value"
- Conditions:
- ExtendedPipeline: !Equals [!Ref ExtendedFlag, "true"]
- SimplePipeline: !Equals [!Ref ExtendedFlag, "false"]
- GlobalVars: !Equals [!Ref UseGlobalVars, "true"]
- Resources:
- ALBListener:
- Type: "AWS::ElasticLoadBalancingV2::Listener"
- Properties:
- LoadBalancerArn: !ImportValue ApplicationLoadBalancer
- Port: !Ref PortNumber
- Protocol: "HTTP"
- DefaultActions:
- -
- Type: "forward"
- TargetGroupArn: !Ref ALBTargetGroup
- ALBTargetGroup:
- Type: "AWS::ElasticLoadBalancingV2::TargetGroup"
- Properties:
- HealthyThresholdCount: 3
- UnhealthyThresholdCount: 3
- Port: !Ref PortNumber
- Protocol: "HTTP"
- VpcId: !ImportValue VPC
- Tags:
- -
- Key: "Name"
- Value : !Sub ${MicroserviceName}ALBTargetGroup
- CodeCommitResource:
- Type: "AWS::CodeCommit::Repository"
- Properties:
- RepositoryDescription: !Sub ${MicroserviceName} microservice repository for Container-Enabled Microservices on AWS Bootcamp
- RepositoryName: !Ref MicroserviceName
- SimpleCodePipeline:
- Type: "AWS::CodePipeline::Pipeline"
- DependsOn: CodeCommitResource
- Condition: SimplePipeline
- Properties:
- RoleArn: !ImportValue CodePipelineServiceRoleArn
- Name: !Sub ${MicroserviceName}Pipeline
- Stages:
- -
- Name: "Source"
- Actions:
- -
- Name: "SourceAction"
- ActionTypeId:
- Category: "Source"
- Owner: "AWS"
- Version: "1"
- Provider: "CodeCommit"
- OutputArtifacts:
- - Name: "SourceOutput"
- Configuration:
- RepositoryName: !Ref MicroserviceName
- BranchName: master
- RunOrder: 1
- -
- Name: "Build"
- Actions:
- -
- Name: "BuildAction"
- ActionTypeId:
- Category: "Build"
- Owner: "Custom"
- Version: "1"
- Provider: !ImportValue JenkinsProvider
- InputArtifacts:
- - Name: "SourceOutput"
- OutputArtifacts:
- - Name: "BuildOutput"
- Configuration:
- ProjectName: !Sub ${MicroserviceName}B
- RunOrder: 1
- -
- Name: "Deploy"
- Actions:
- -
- Name: "DeployAction"
- ActionTypeId:
- Category: "Invoke"
- Owner: "AWS"
- Version: "1"
- Provider: "Lambda"
- InputArtifacts:
- - Name: "BuildOutput"
- Configuration:
- FunctionName: !ImportValue CreateUpdateCfnStackFunctionName
- UserParameters: !Sub |
- {
- "stack": "${MicroserviceName}Stack",
- "template_file": "microservice.yaml",
- "input_artifact": "BuildOutput",
- "params_file": "cfn_stack_params.json"
- }
- RunOrder: 1
- ArtifactStore:
- Type: "S3"
- Location: !ImportValue CodePipelineBucket
- ExtendedCodePipeline:
- Type: "AWS::CodePipeline::Pipeline"
- DependsOn: CodeCommitResource
- Condition: ExtendedPipeline
- Properties:
- RoleArn: !ImportValue CodePipelineServiceRoleArn
- Name: !Sub ${MicroserviceName}PipelineExt
- Stages:
- -
- Name: "Source"
- Actions:
- -
- Name: "SourceAction"
- ActionTypeId:
- Category: "Source"
- Owner: "AWS"
- Version: "1"
- Provider: "CodeCommit"
- OutputArtifacts:
- - Name: "SourceOutput"
- Configuration:
- RepositoryName: !Ref MicroserviceName
- BranchName: master
- RunOrder: 1
- -
- Name: "Build"
- Actions:
- -
- Name: "BuildAction"
- ActionTypeId:
- Category: "Build"
- Owner: "Custom"
- Version: "1"
- Provider: !ImportValue JenkinsProvider
- InputArtifacts:
- - Name: "SourceOutput"
- OutputArtifacts:
- - Name: "BuildOutput"
- Configuration:
- ProjectName: !Sub ${MicroserviceName}B
- RunOrder: 1
- -
- Name: "Deploy"
- Actions:
- -
- Name: "DeployAction"
- ActionTypeId:
- Category: "Invoke"
- Owner: "AWS"
- Version: "1"
- Provider: "Lambda"
- InputArtifacts:
- - Name: "BuildOutput"
- OutputArtifacts:
- - Name: "DeployOutput"
- Configuration:
- FunctionName: !ImportValue CreateUpdateCfnStackFunctionName
- UserParameters: !Sub |
- {
- "stack": "${MicroserviceName}Stack",
- "template_file": "microservice.yaml",
- "input_artifact": "BuildOutput",
- "output_artifact": "DeployOutput",
- "params_file": "cfn_stack_params.json",
- "output_file": "postman-collection.json"
- }
- RunOrder: 1
- -
- Name: "Test"
- Actions:
- -
- Name: "TestAction"
- ActionTypeId:
- Category: "Test"
- Owner: "Custom"
- Version: "1"
- Provider: !ImportValue JenkinsProvider
- InputArtifacts:
- - Name: "DeployOutput"
- Configuration:
- ProjectName: !Sub ${MicroserviceName}T
- RunOrder: 1
- ArtifactStore:
- Type: "S3"
- Location: !ImportValue CodePipelineBucket
- JenkinsBuildJobResource:
- Type: "Custom::JenkinsBuildJobResource"
- Properties:
- ServiceToken: !ImportValue ManageJenkinsJobFunctionArn
- JenkinsHostname: !Sub
- - ${DnsName}/jenkins
- - DnsName: !ImportValue ALBDnsName
- JenkinsUsername: "admin"
- JenkinsPassword: !If [ GlobalVars, !ImportValue JenkinsPassword, !Ref JenkinsPassword]
- JenkinsJobTemplate: {"Fn::If": [ GlobalVars, {"Fn::Sub": ["https://${S3BucketName}.s3.amazonaws.com/${S3PathPrefix}${LabName}/scripts/jenkins-build-job-config.xml", { S3BucketName: { "Fn::ImportValue": S3BucketName}, S3PathPrefix: { "Fn::ImportValue": S3PathPrefix }, LabName: { "Fn::ImportValue": LabName }}]}, {"Fn::Sub": "https://${S3BucketName}.s3.amazonaws.com/${S3PathPrefix}${LabName}/scripts/jenkins-build-job-config.xml"}]}
- JenkinsJobName: !Sub ${MicroserviceName}B
- ConfigParameters:
- -
- ParameterKey: "{{REPO_NAME}}"
- ParameterValue: !Ref RepoName
- -
- ParameterKey: "{{ACTION_TYPE_PROVIDER}}"
- ParameterValue: !ImportValue JenkinsProvider
- -
- ParameterKey: "{{PROJECT_NAME}}"
- ParameterValue: !Sub ${MicroserviceName}B
- -
- ParameterKey: "{{AWS_REGION}}"
- ParameterValue: !Ref "AWS::Region"
- -
- ParameterKey: "{{AWS_ACCOUNT_ID}}"
- ParameterValue: !Ref "AWS::AccountId"
- -
- ParameterKey: "{{CFN_STACK_PARAMS}}"
- ParameterValue: !Sub "[{ \"ParameterKey\": \"TargetGroupArn\", \"ParameterValue\": \"${ALBTargetGroup}\" }, { \"ParameterKey\": \"ImageTag\", \"ParameterValue\": \"{{IMAGE_TAG}}\" }]"
- JenkinsTestJobResource:
- Type: "Custom::JenkinsTestJobResource"
- Condition: ExtendedPipeline
- Properties:
- ServiceToken: !ImportValue ManageJenkinsJobFunctionArn
- JenkinsHostname: !Sub
- - ${DnsName}/jenkins
- - DnsName: !ImportValue ALBDnsName
- JenkinsUsername: "admin"
- JenkinsPassword: !If [ GlobalVars, !ImportValue JenkinsPassword, !Ref JenkinsPassword]
- JenkinsJobTemplate: {"Fn::If": [ GlobalVars, {"Fn::Sub": ["https://${S3BucketName}.s3.amazonaws.com/${S3PathPrefix}${LabName}/scripts/jenkins-test-job-config.xml", { S3BucketName: { "Fn::ImportValue": S3BucketName}, S3PathPrefix: { "Fn::ImportValue": S3PathPrefix }, LabName: { "Fn::ImportValue": LabName }}]}, {"Fn::Sub": "https://${S3BucketName}.s3.amazonaws.com/${S3PathPrefix}${LabName}/scripts/jenkins-test-job-config.xml"}]}
- JenkinsJobName: !Sub ${MicroserviceName}T
- ConfigParameters:
- -
- ParameterKey: "{{ACTION_TYPE_PROVIDER}}"
- ParameterValue: !ImportValue JenkinsProvider
- -
- ParameterKey: "{{PROJECT_NAME}}"
- ParameterValue: !Sub ${MicroserviceName}T
- -
- ParameterKey: "{{AWS_REGION}}"
- ParameterValue: !Ref "AWS::Region"
- -
- ParameterKey: "{{POSTMAN_COLLECTION_FILE}}"
- ParameterValue: "postman-collection.json"
- -
- ParameterKey: "{{TEST_URL}}"
- ParameterValue: !Sub
- - http://${DnsName}:${PortNumber}
- - DnsName: !ImportValue ALBDnsName
- [ec2-user@ip-10-0-1-250 jenkins]$ cd /home/ec2-user/lab-2-pipeline
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$ aws cloudformation create-stack \
- > --stack-name MustacheMeWebServerPipeline \
- > --parameters \
- > ParameterKey=MicroserviceName,ParameterValue=MustacheMeWebServer \
- > ParameterKey=RepoName,ParameterValue=mustachemewebserver \
- > ParameterKey=PortNumber,ParameterValue=8000 \
- > --template-body file://scripts/microservice-pipeline.yaml
- {
- "StackId": "arn:aws:cloudformation:us-east-1:909652153136:stack/MustacheMeWebServerPipeline/26d249f0-4fda-11e7-8d6f-503aca26168d"
- }
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$ aws cloudformation wait stack-create-complete \
- > --stack-name MustacheMeWebServerPipeline
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$ export AWS_REGION=$(aws configure get region)
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$ git clone \
- > https://git-codecommit.${AWS_REGION}.amazonaws.com/v1/repos/MustacheMeWebServer \
- > /home/ec2-user/repos/MustacheMeWebServer
- Cloning into '/home/ec2-user/repos/MustacheMeWebServer'...
- warning: You appear to have cloned an empty repository.
- Checking connectivity... done.
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$ mv /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeWebServer/* \
- > /home/ec2-user/repos/MustacheMeWebServer/
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$ cd /home/ec2-user/repos/MustacheMeWebServer
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$ git add -A
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$ git commit -m "Initial commit"
- [master (root-commit) 0475482] Initial commit
- 45 files changed, 2722 insertions(+)
- create mode 100644 Dockerfile
- create mode 100644 api-static/nginx/nginx.conf
- create mode 100644 api-static/nginx/nginx.conf.template
- create mode 100644 api-static/static/css/bootstrap-theme.min.css
- create mode 100644 api-static/static/css/bootstrap-theme.min.css.map
- create mode 100644 api-static/static/css/bootstrap.min.css
- create mode 100644 api-static/static/css/bootstrap.min.css.map
- create mode 100644 api-static/static/css/custom.css
- create mode 100644 api-static/static/css/edition-font.css
- create mode 100644 api-static/static/css/font-awesome.min.css
- create mode 100644 api-static/static/css/social-share-kit.css
- create mode 100644 api-static/static/fonts/FontAwesome.otf
- create mode 100644 api-static/static/fonts/fontawesome-webfont.eot
- create mode 100644 api-static/static/fonts/fontawesome-webfont.svg
- create mode 100644 api-static/static/fonts/fontawesome-webfont.ttf
- create mode 100644 api-static/static/fonts/fontawesome-webfont.woff
- create mode 100644 api-static/static/fonts/fontawesome-webfont.woff2
- create mode 100644 api-static/static/fonts/glyphicons-halflings-regular.eot
- create mode 100644 api-static/static/fonts/glyphicons-halflings-regular.svg
- create mode 100644 api-static/static/fonts/glyphicons-halflings-regular.ttf
- create mode 100644 api-static/static/fonts/glyphicons-halflings-regular.woff
- create mode 100644 api-static/static/fonts/glyphicons-halflings-regular.woff2
- create mode 100644 api-static/static/fonts/icomoon.eot
- create mode 100644 api-static/static/fonts/icomoon.svg
- create mode 100644 api-static/static/fonts/icomoon.ttf
- create mode 100644 api-static/static/fonts/icomoon.woff
- create mode 100644 api-static/static/fonts/social-share-kit.eot
- create mode 100644 api-static/static/fonts/social-share-kit.svg
- create mode 100644 api-static/static/fonts/social-share-kit.ttf
- create mode 100644 api-static/static/fonts/social-share-kit.woff
- create mode 100644 api-static/static/img/drop.png
- create mode 100644 api-static/static/img/favicon.ico
- create mode 100644 api-static/static/img/loader.gif
- create mode 100644 api-static/static/img/sms-logo.png
- create mode 100644 api-static/static/img/touch.png
- create mode 100644 api-static/static/index.html
- create mode 100644 api-static/static/js/bootstrap.min.js
- create mode 100644 api-static/static/js/frontend.js
- create mode 100644 api-static/static/js/infos.js
- create mode 100644 api-static/static/js/jquery.min.js
- create mode 100644 api-static/static/js/social-share-kit.min.js
- create mode 100644 microservice.template
- create mode 100644 microservice.yaml
- create mode 100644 postman-collection.json
- create mode 100644 readme.txt
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$ git push -u origin master
- Counting objects: 54, done.
- Compressing objects: 100% (54/54), done.
- Writing objects: 100% (54/54), 766.89 KiB | 0 bytes/s, done.
- Total 54 (delta 2), reused 0 (delta 0)
- To https://git-codecommit.us-east-1.amazonaws.com/v1/repos/MustacheMeWebServer
- * [new branch] master -> master
- Branch master set up to track remote branch master from origin.
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$ cat /home/ec2-user/lab-2-pipeline/scripts/deploy-microservice.sh
- #!/bin/bash -ex
- LAB_NAME="lab-2-pipeline"
- AWS_REGION=$(aws configure get region)
- if [ -z "$1" ]; then
- echo "No microservice name provided"
- exit 1
- else
- MICROSERVICE_NAME="$1"
- REPO_NAME=$(echo "${MICROSERVICE_NAME}" | awk '{print tolower($0)}')
- fi
- if [ -z "$2" ]; then
- echo "No port number provided"
- exit 1
- elif ! [[ "$2" =~ ^[0-9]+$ ]]; then
- echo "Port number invalid"
- exit 1
- else
- MICROSERVICE_PORT="$2"
- fi
- echo "MICROSERVICE_NAME=${MICROSERVICE_NAME}"
- echo "REPO_NAME=${REPO_NAME}"
- echo "MICROSERVICE_PORT=${MICROSERVICE_PORT}"
- echo "LAB_NAME=${LAB_NAME}"
- echo "REGION=${AWS_REGION}"
- cd /home/ec2-user/${LAB_NAME}
- echo "Creating the Microservice pipeline"
- aws cloudformation create-stack --stack-name "${MICROSERVICE_NAME}Pipeline" --parameters ParameterKey=MicroserviceName,ParameterValue=${MICROSERVICE_NAME} ParameterKey=RepoName,ParameterValue=${REPO_NAME} ParameterKey=PortNumber,ParameterValue=${MICROSERVICE_PORT} --template-body file://scripts/microservice-pipeline.yaml
- echo "Waiting for CFN stack to be created....."
- aws cloudformation wait stack-create-complete --stack-name "${MICROSERVICE_NAME}Pipeline"
- echo "Stack created!!"
- echo "Cloning git repo"
- git clone https://git-codecommit.${AWS_REGION}.amazonaws.com/v1/repos/${MICROSERVICE_NAME} /home/ec2-user/repos/${MICROSERVICE_NAME}
- mv /home/ec2-user/${LAB_NAME}/src/MustacheMe/${MICROSERVICE_NAME}/* /home/ec2-user/repos/${MICROSERVICE_NAME}/
- cd /home/ec2-user/repos/${MICROSERVICE_NAME}
- git add -A
- git commit -m "Initial commit"
- git push -u origin master
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$ deploy-microservice.sh <MICROSESRVICE_NAME> <PORT>
- -bash: syntax error near unexpected token `<'
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$ Run the following commands to build the pipeline for the other
- -bash: Run: command not found
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$ remaining two microservices:
- -bash: remaining: command not found
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$ Copy Code Block
- -bash: Copy: command not found
- [ec2-user@ip-10-0-1-250 MustacheMeWebServer]$ cd /home/ec2-user/lab-2-pipeline/scripts/
- [ec2-user@ip-10-0-1-250 scripts]$ ./deploy-microservice.sh MustacheMeProcessor 8082
- + LAB_NAME=lab-2-pipeline
- ++ aws configure get region
- + AWS_REGION=us-east-1
- + '[' -z MustacheMeProcessor ']'
- + MICROSERVICE_NAME=MustacheMeProcessor
- ++ awk '{print tolower($0)}'
- ++ echo MustacheMeProcessor
- + REPO_NAME=mustachemeprocessor
- + '[' -z 8082 ']'
- + [[ 8082 =~ ^[0-9]+$ ]]
- + MICROSERVICE_PORT=8082
- + echo MICROSERVICE_NAME=MustacheMeProcessor
- MICROSERVICE_NAME=MustacheMeProcessor
- + echo REPO_NAME=mustachemeprocessor
- REPO_NAME=mustachemeprocessor
- + echo MICROSERVICE_PORT=8082
- MICROSERVICE_PORT=8082
- + echo LAB_NAME=lab-2-pipeline
- LAB_NAME=lab-2-pipeline
- + echo REGION=us-east-1
- REGION=us-east-1
- + cd /home/ec2-user/lab-2-pipeline
- + echo 'Creating the Microservice pipeline'
- Creating the Microservice pipeline
- + aws cloudformation create-stack --stack-name MustacheMeProcessorPipeline --parameters ParameterKey=MicroserviceName,ParameterValue=MustacheMeProcessor ParameterKey=RepoName,ParameterValue=mustachemeprocessor ParameterKey=PortNumber,ParameterValue=8082 --template-body file://scripts/microservice-pipeline.yaml
- {
- "StackId": "arn:aws:cloudformation:us-east-1:909652153136:stack/MustacheMeProcessorPipeline/5b0c3bd0-4fdb-11e7-968f-50d5ca6326ba"
- }
- + echo 'Waiting for CFN stack to be created.....'
- Waiting for CFN stack to be created.....
- + aws cloudformation wait stack-create-complete --stack-name MustacheMeProcessorPipeline
- + echo 'Stack created!!'
- Stack created!!
- + echo 'Cloning git repo'
- Cloning git repo
- + git clone https://git-codecommit.us-east-1.amazonaws.com/v1/repos/MustacheMeProcessor /home/ec2-user/repos/MustacheMeProcessor
- Cloning into '/home/ec2-user/repos/MustacheMeProcessor'...
- warning: You appear to have cloned an empty repository.
- Checking connectivity... done.
- + mv /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeProcessor/api-static /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeProcessor/Dockerfile /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeProcessor/Dockerfile.v2 /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeProcessor/microservice.template /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeProcessor/microservice.yaml /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeProcessor/postman-collection.json /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeProcessor/readme.txt /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeProcessor/supervisord.conf /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeProcessor/supervisord.conf.v2 /home/ec2-user/repos/MustacheMeProcessor/
- + cd /home/ec2-user/repos/MustacheMeProcessor
- + git add -A
- + git commit -m 'Initial commit'
- [master (root-commit) 15f8b64] Initial commit
- 44 files changed, 82416 insertions(+)
- create mode 100644 Dockerfile
- create mode 100644 Dockerfile.v2
- create mode 100644 api-static/cv2/__init__.py
- create mode 100644 api-static/cv2/__init__.so
- create mode 100644 api-static/cv2/libopencv_calib3d.so.3.1
- create mode 100644 api-static/cv2/libopencv_core.so.3.1
- create mode 100644 api-static/cv2/libopencv_features2d.so.3.1
- create mode 100644 api-static/cv2/libopencv_flann.so.3.1
- create mode 100644 api-static/cv2/libopencv_highgui.so.3.1
- create mode 100644 api-static/cv2/libopencv_imgcodecs.so.3.1
- create mode 100644 api-static/cv2/libopencv_imgproc.so.3.1
- create mode 100644 api-static/cv2/libopencv_ml.so.3.1
- create mode 100644 api-static/cv2/libopencv_objdetect.so.3.1
- create mode 100644 api-static/cv2/libopencv_photo.so.3.1
- create mode 100644 api-static/cv2/libopencv_shape.so.3.1
- create mode 100644 api-static/cv2/libopencv_stitching.so.3.1
- create mode 100644 api-static/cv2/libopencv_superres.so.3.1
- create mode 100644 api-static/cv2/libopencv_video.so.3.1
- create mode 100644 api-static/cv2/libopencv_videoio.so.3.1
- create mode 100644 api-static/cv2/libopencv_videostab.so.3.1
- create mode 100644 api-static/haarcascades/frontalface_default.xml
- create mode 100644 api-static/haarcascades/mcs_nose.xml
- create mode 100644 api-static/nginx/nginx.conf
- create mode 100644 api-static/nginx/uwsgi
- create mode 100644 api-static/nginx/uwsgi.ini
- create mode 100644 api-static/process_img/assets/logo.jpg
- create mode 100644 api-static/process_img/assets/mustaches/1.png
- create mode 100644 api-static/process_img/assets/mustaches/10.png
- create mode 100644 api-static/process_img/assets/mustaches/11.png
- create mode 100644 api-static/process_img/assets/mustaches/2.png
- create mode 100644 api-static/process_img/assets/mustaches/3.png
- create mode 100644 api-static/process_img/assets/mustaches/4.png
- create mode 100644 api-static/process_img/assets/mustaches/5.png
- create mode 100644 api-static/process_img/assets/mustaches/6.png
- create mode 100644 api-static/process_img/assets/mustaches/7.png
- create mode 100644 api-static/process_img/assets/mustaches/8.png
- create mode 100644 api-static/process_img/assets/mustaches/9.png
- create mode 100644 api-static/serv.py
- create mode 100644 microservice.template
- create mode 100644 microservice.yaml
- create mode 100644 postman-collection.json
- create mode 100644 readme.txt
- create mode 100644 supervisord.conf
- create mode 100644 supervisord.conf.v2
- + git push -u origin master
- Counting objects: 53, done.
- Compressing objects: 100% (51/51), done.
- Writing objects: 100% (53/53), 17.22 MiB | 1.35 MiB/s, done.
- Total 53 (delta 2), reused 0 (delta 0)
- remote: processing To https://git-codecommit.us-east-1.amazonaws.com/v1/repos/MustacheMeProcessor
- * [new branch] master -> master
- Branch master set up to track remote branch master from origin.
- [ec2-user@ip-10-0-1-250 scripts]$
- [ec2-user@ip-10-0-1-250 scripts]$ ./deploy-microservice.sh MustacheMeInfo 8092
- + LAB_NAME=lab-2-pipeline
- ++ aws configure get region
- + AWS_REGION=us-east-1
- + '[' -z MustacheMeInfo ']'
- + MICROSERVICE_NAME=MustacheMeInfo
- ++ awk '{print tolower($0)}'
- ++ echo MustacheMeInfo
- + REPO_NAME=mustachemeinfo
- + '[' -z 8092 ']'
- + [[ 8092 =~ ^[0-9]+$ ]]
- + MICROSERVICE_PORT=8092
- + echo MICROSERVICE_NAME=MustacheMeInfo
- MICROSERVICE_NAME=MustacheMeInfo
- + echo REPO_NAME=mustachemeinfo
- REPO_NAME=mustachemeinfo
- + echo MICROSERVICE_PORT=8092
- MICROSERVICE_PORT=8092
- + echo LAB_NAME=lab-2-pipeline
- LAB_NAME=lab-2-pipeline
- + echo REGION=us-east-1
- REGION=us-east-1
- + cd /home/ec2-user/lab-2-pipeline
- + echo 'Creating the Microservice pipeline'
- Creating the Microservice pipeline
- + aws cloudformation create-stack --stack-name MustacheMeInfoPipeline --parameters ParameterKey=MicroserviceName,ParameterValue=MustacheMeInfo ParameterKey=RepoName,ParameterValue=mustachemeinfo ParameterKey=PortNumber,ParameterValue=8092 --template-body file://scripts/microservice-pipeline.yaml
- {
- "StackId": "arn:aws:cloudformation:us-east-1:909652153136:stack/MustacheMeInfoPipeline/975b3aa0-4fdb-11e7-a2b7-500c2854b699"
- }
- + echo 'Waiting for CFN stack to be created.....'
- Waiting for CFN stack to be created.....
- + aws cloudformation wait stack-create-complete --stack-name MustacheMeInfoPipeline
- + echo 'Stack created!!'
- Stack created!!
- + echo 'Cloning git repo'
- Cloning git repo
- + git clone https://git-codecommit.us-east-1.amazonaws.com/v1/repos/MustacheMeInfo /home/ec2-user/repos/MustacheMeInfo
- Cloning into '/home/ec2-user/repos/MustacheMeInfo'...
- warning: You appear to have cloned an empty repository.
- Checking connectivity... done.
- + mv /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeInfo/api-static /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeInfo/Dockerfile /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeInfo/microservice.template /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeInfo/microservice.yaml /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeInfo/postman-collection.json /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeInfo/readme.txt /home/ec2-user/lab-2-pipeline/src/MustacheMe/MustacheMeInfo/supervisord.conf /home/ec2-user/repos/MustacheMeInfo/
- + cd /home/ec2-user/repos/MustacheMeInfo
- + git add -A
- + git commit -m 'Initial commit'
- [master (root-commit) b1245a3] Initial commit
- 30 files changed, 82380 insertions(+)
- create mode 100644 Dockerfile
- create mode 100644 api-static/cv2/__init__.py
- create mode 100644 api-static/cv2/__init__.so
- create mode 100644 api-static/cv2/libopencv_calib3d.so.3.1
- create mode 100644 api-static/cv2/libopencv_core.so.3.1
- create mode 100644 api-static/cv2/libopencv_features2d.so.3.1
- create mode 100644 api-static/cv2/libopencv_flann.so.3.1
- create mode 100644 api-static/cv2/libopencv_highgui.so.3.1
- create mode 100644 api-static/cv2/libopencv_imgcodecs.so.3.1
- create mode 100644 api-static/cv2/libopencv_imgproc.so.3.1
- create mode 100644 api-static/cv2/libopencv_ml.so.3.1
- create mode 100644 api-static/cv2/libopencv_objdetect.so.3.1
- create mode 100644 api-static/cv2/libopencv_photo.so.3.1
- create mode 100644 api-static/cv2/libopencv_shape.so.3.1
- create mode 100644 api-static/cv2/libopencv_stitching.so.3.1
- create mode 100644 api-static/cv2/libopencv_superres.so.3.1
- create mode 100644 api-static/cv2/libopencv_video.so.3.1
- create mode 100644 api-static/cv2/libopencv_videoio.so.3.1
- create mode 100644 api-static/cv2/libopencv_videostab.so.3.1
- create mode 100644 api-static/haarcascades/frontalface_default.xml
- create mode 100644 api-static/haarcascades/mcs_nose.xml
- create mode 100644 api-static/nginx/nginx.conf
- create mode 100644 api-static/nginx/uwsgi
- create mode 100644 api-static/nginx/uwsgi.ini
- create mode 100644 api-static/serv.py
- create mode 100644 microservice.template
- create mode 100644 microservice.yaml
- create mode 100644 postman-collection.json
- create mode 100644 readme.txt
- create mode 100644 supervisord.conf
- + git push -u origin master
- Counting objects: 36, done.
- Compressing objects: 100% (35/35), done.
- Writing objects: 100% (36/36), 17.08 MiB | 1.23 MiB/s, done.
- Total 36 (delta 0), reused 0 (delta 0)
- remote: processing To https://git-codecommit.us-east-1.amazonaws.com/v1/repos/MustacheMeInfo
- * [new branch] master -> master
- Branch master set up to track remote branch master from origin.
- [ec2-user@ip-10-0-1-250 scripts]$
- [ec2-user@ip-10-0-1-250 scripts]$
- [ec2-user@ip-10-0-1-250 scripts]$
- [ec2-user@ip-10-0-1-250 scripts]$
- [ec2-user@ip-10-0-1-250 scripts]$
- [ec2-user@ip-10-0-1-250 scripts]$
- [ec2-user@ip-10-0-1-250 scripts]$
- [ec2-user@ip-10-0-1-250 scripts]$
- [ec2-user@ip-10-0-1-250 scripts]$ cd ..
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$ ll
- total 32
- -rw-rw-r-- 1 ec2-user ec2-user 5693 Feb 28 21:52 base-cloudformation.template
- drwxrwxr-x 2 ec2-user ec2-user 4096 Apr 18 00:04 instructions
- -rw-rw-r-- 1 ec2-user ec2-user 4991 Oct 16 2016 lab2_student.policy
- drwxrwxr-x 2 ec2-user ec2-user 4096 Apr 18 00:04 required_services
- drwxrwxr-x 4 ec2-user ec2-user 4096 Apr 18 00:04 scripts
- drwxrwxr-x 4 ec2-user ec2-user 4096 Apr 18 00:04 src
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$ cat /home/ec2-user/repos/MustacheMeWebServer/postman-collection.json
- {
- "id": "7739bb54-b5af-9e9a-946a-8cf37a65caa9",
- "name": "MustacheMe",
- "description": "Collection for the MustacheMeWebServer microservice",
- "order": [
- "08bdeab6-7d1f-9e80-fac1-cf0a559af259"
- ],
- "folders": [],
- "timestamp": 1475853871805,
- "owner": 0,
- "public": false,
- "published": false,
- "requests": [
- {
- "id": "08bdeab6-7d1f-9e80-fac1-cf0a559af259",
- "headers": "",
- "url": "{{TEST_URL}}",
- "pathVariables": {},
- "preRequestScript": null,
- "method": "GET",
- "collectionId": "7739bb54-b5af-9e9a-946a-8cf37a65caa9",
- "data": null,
- "dataMode": "params",
- "name": "MustacheMeWebServer",
- "description": "Test of the MustacheMeWebServer microservice",
- "descriptionFormat": "html",
- "time": 1475853987555,
- "version": 2,
- "responses": [],
- "tests": "tests[\"Status code is 200\"] = responseCode.code === 200;\n\ntests[\"Body matches string\"] = responseBody.has(\"Simple Mustache Service\");",
- "currentHelper": "normal",
- "helperAttributes": {}
- }
- ]
- }
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$
- [ec2-user@ip-10-0-1-250 lab-2-pipeline]$ cd ..
- [ec2-user@ip-10-0-1-250 ~]$
- [ec2-user@ip-10-0-1-250 ~]$
- [ec2-user@ip-10-0-1-250 ~]$
- [ec2-user@ip-10-0-1-250 ~]$
- [ec2-user@ip-10-0-1-250 ~]$ ls
- AWSsummit lab-2-pipeline repos
- [ec2-user@ip-10-0-1-250 ~]$ git commit -m "first commit"
- On branch master
- Initial commit
- Untracked files:
- .aws/
- .bash_history
- .bash_logout
- .bash_profile
- .bashrc
- .docker/
- .ecr/
- .gitconfig
- .ssh/
- AWSsummit/
- lab-2-pipeline/
- repos/
- nothing added to commit but untracked files present
- [ec2-user@ip-10-0-1-250 ~]$ git add lab-2-pipeline
- [ec2-user@ip-10-0-1-250 ~]$ git commit -m ""
- Aborting commit due to empty commit message.
- [ec2-user@ip-10-0-1-250 ~]$ git commit -m "hh"
- [master (root-commit) dba3428] hh
- 41 files changed, 4447 insertions(+)
- create mode 100644 lab-2-pipeline/.gitignore
- create mode 100644 lab-2-pipeline/base-cloudformation.template
- create mode 100644 lab-2-pipeline/instructions/02-lab-2-pipeline.md
- create mode 100644 lab-2-pipeline/lab2_student.policy
- create mode 100644 lab-2-pipeline/required_services/required_services.txt
- create mode 100755 lab-2-pipeline/scripts/build_push_image.sh
- create mode 100644 lab-2-pipeline/scripts/cli-instance.yaml
- create mode 100644 lab-2-pipeline/scripts/delivery-pipeline-main.yaml
- create mode 100755 lab-2-pipeline/scripts/deploy-microservice.sh
- create mode 100644 lab-2-pipeline/scripts/ecs-cluster.yaml
- create mode 100644 lab-2-pipeline/scripts/images/Picture1.png
- create mode 100644 lab-2-pipeline/scripts/images/Picture10.png
- create mode 100644 lab-2-pipeline/scripts/images/Picture11.png
- create mode 100644 lab-2-pipeline/scripts/images/Picture2.png
- create mode 100644 lab-2-pipeline/scripts/images/Picture3.png
- create mode 100644 lab-2-pipeline/scripts/images/Picture4.png
- create mode 100644 lab-2-pipeline/scripts/images/Picture5.png
- create mode 100644 lab-2-pipeline/scripts/images/Picture6.png
- create mode 100644 lab-2-pipeline/scripts/images/Picture7.png
- create mode 100644 lab-2-pipeline/scripts/images/Picture8.png
- create mode 100644 lab-2-pipeline/scripts/images/Picture9.png
- create mode 100644 lab-2-pipeline/scripts/jenkins-build-job-config.xml
- create mode 100644 lab-2-pipeline/scripts/jenkins-ecs-service.yaml
- create mode 100644 lab-2-pipeline/scripts/jenkins-full-stack.yaml
- create mode 100644 lab-2-pipeline/scripts/jenkins-test-job-config.xml
- create mode 100644 lab-2-pipeline/scripts/ko_LG/02-lab-2-pipeline.md
- create mode 100644 lab-2-pipeline/scripts/lab2-simulation-sree.template
- create mode 100644 lab-2-pipeline/scripts/lab2-simulation.yaml
- create mode 100644 lab-2-pipeline/scripts/lambda-functions.yaml
- create mode 100644 lab-2-pipeline/scripts/microservice-pipeline.yaml
- create mode 100644 lab-2-pipeline/scripts/network.yaml
- create mode 100644 lab-2-pipeline/scripts/ssm-commands.yaml
- create mode 100755 lab-2-pipeline/scripts/update-microservice-pipeline.sh
- create mode 100644 lab-2-pipeline/src/MustacheMe/MustacheMeBase/Dockerfile
- create mode 100644 lab-2-pipeline/src/MustacheMe/MustacheMeBase/readme.txt
- create mode 100644 lab-2-pipeline/src/MustacheMe/docker-compose.yml
- create mode 100644 lab-2-pipeline/src/MustacheMe/ecs-cli/docker-compose.yml
- create mode 100644 lab-2-pipeline/src/MustacheMe/faces.zip
- create mode 100644 lab-2-pipeline/src/MustacheMe/readme.txt
- create mode 100644 lab-2-pipeline/src/jenkins/Dockerfile
- create mode 100644 lab-2-pipeline/src/jenkins/groovy-scripts/admin.groovy
- [ec2-user@ip-10-0-1-250 ~]$ git remote add origin https://github.com/dshamanthreddy/testsam.git
- fatal: remote origin already exists.
- [ec2-user@ip-10-0-1-250 ~]$ git push
- warning: push.default is unset; its implicit value has changed in
- Git 2.0 from 'matching' to 'simple'. To squelch this message
- and maintain the traditional behavior, use:
- git config --global push.default matching
- To squelch this message and adopt the new behavior now, use:
- git config --global push.default simple
- When push.default is set to 'matching', git will push local branches
- to the remote branches that already exist with the same name.
- Since Git 2.0, Git defaults to the more conservative 'simple'
- behavior, which only pushes the current branch to the corresponding
- remote branch that 'git pull' uses to update the current branch.
- See 'git help config' and search for 'push.default' for further information.
- (the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
- 'current' instead of 'simple' if you sometimes use older versions of Git)
- fatal: The current branch master has no upstream branch.
- To push the current branch and set the remote as upstream, use
- git push --set-upstream origin master
- [ec2-user@ip-10-0-1-250 ~]$ git push -u origin master
- Username for 'https://github.com/dshamanthreddy/AWSsummit.git': devagarishamanth@gmail.com
- Password for 'https://devagarishamanth@gmail.com@github.com/dshamanthreddy/AWSsummit.git':
- To https://github.com/dshamanthreddy/AWSsummit.git
- ! [rejected] master -> master (fetch first)
- error: failed to push some refs to 'https://github.com/dshamanthreddy/AWSsummit.git'
- hint: Updates were rejected because the remote contains work that you do
- hint: not have locally. This is usually caused by another repository pushing
- hint: to the same ref. You may want to first integrate the remote changes
- hint: (e.g., 'git pull ...') before pushing again.
- hint: See the 'Note about fast-forwards' in 'git push --help' for details.
- [ec2-user@ip-10-0-1-250 ~]$ git remote add origin https://github.com/dshamanthreddy/testsam.git
- fatal: remote origin already exists.
- [ec2-user@ip-10-0-1-250 ~]$ ls
- AWSsummit lab-2-pipeline repos
- [ec2-user@ip-10-0-1-250 ~]$ rm -rf AWSsummit/
- [ec2-user@ip-10-0-1-250 ~]$ git add lab-2-pipeline
- [ec2-user@ip-10-0-1-250 ~]$ git commit -m "iii"
- On branch master
- Untracked files:
- .aws/
- .bash_history
- .bash_logout
- .bash_profile
- .bashrc
- .docker/
- .ecr/
- .gitconfig
- .ssh/
- repos/
- nothing added to commit but untracked files present
- [ec2-user@ip-10-0-1-250 ~]$ set -o vi
- [ec2-user@ip-10-0-1-250 ~]$ git add lab-2-pipeline
- [ec2-user@ip-10-0-1-250 ~]$ git commit -m "test"
- On branch master
- Untracked files:
- .aws/
- .bash_history
- .bash_logout
- .bash_profile
- .bashrc
- .docker/
- .ecr/
- .gitconfig
- .ssh/
- repos/
- nothing added to commit but untracked files present
- [ec2-user@ip-10-0-1-250 ~]$ git push
- warning: push.default is unset; its implicit value has changed in
- Git 2.0 from 'matching' to 'simple'. To squelch this message
- and maintain the traditional behavior, use:
- git config --global push.default matching
- To squelch this message and adopt the new behavior now, use:
- git config --global push.default simple
- When push.default is set to 'matching', git will push local branches
- to the remote branches that already exist with the same name.
- Since Git 2.0, Git defaults to the more conservative 'simple'
- behavior, which only pushes the current branch to the corresponding
- remote branch that 'git pull' uses to update the current branch.
- See 'git help config' and search for 'push.default' for further information.
- (the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
- 'current' instead of 'simple' if you sometimes use older versions of Git)
- fatal: The current branch master has no upstream branch.
- To push the current branch and set the remote as upstream, use
- git push --set-upstream origin master
- [ec2-user@ip-10-0-1-250 ~]$ git push --set-upstream origin master
- Username for 'https://github.com/dshamanthreddy/AWSsummit.git': devagarishamanth@gmail.com
- Password for 'https://devagarishamanth@gmail.com@github.com/dshamanthreddy/AWSsummit.git':
- To https://github.com/dshamanthreddy/AWSsummit.git
- ! [rejected] master -> master (fetch first)
- error: failed to push some refs to 'https://github.com/dshamanthreddy/AWSsummit.git'
- hint: Updates were rejected because the remote contains work that you do
- hint: not have locally. This is usually caused by another repository pushing
- hint: to the same ref. You may want to first integrate the remote changes
- hint: (e.g., 'git pull ...') before pushing again.
- hint: See the 'Note about fast-forwards' in 'git push --help' for details.
- [ec2-user@ip-10-0-1-250 ~]$ git fetch
- warning: no common commits
- remote: Counting objects: 170, done.
- remote: Compressing objects: 100% (140/140), done.
- remote: Total 170 (delta 19), reused 170 (delta 19), pack-reused 0
- Receiving objects: 100% (170/170), 19.05 MiB | 22.28 MiB/s, done.
- Resolving deltas: 100% (19/19), done.
- From https://github.com/dshamanthreddy/AWSsummit
- * [new branch] master -> origin/master
- [ec2-user@ip-10-0-1-250 ~]$ git push
- warning: push.default is unset; its implicit value has changed in
- Git 2.0 from 'matching' to 'simple'. To squelch this message
- and maintain the traditional behavior, use:
- git config --global push.default matching
- To squelch this message and adopt the new behavior now, use:
- git config --global push.default simple
- When push.default is set to 'matching', git will push local branches
- to the remote branches that already exist with the same name.
- Since Git 2.0, Git defaults to the more conservative 'simple'
- behavior, which only pushes the current branch to the corresponding
- remote branch that 'git pull' uses to update the current branch.
- See 'git help config' and search for 'push.default' for further information.
- (the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
- 'current' instead of 'simple' if you sometimes use older versions of Git)
- fatal: The current branch master has no upstream branch.
- To push the current branch and set the remote as upstream, use
- git push --set-upstream origin master
- [ec2-user@ip-10-0-1-250 ~]$ git push --set-upstream origin master
- Username for 'https://github.com/dshamanthreddy/AWSsummit.git': devagarishamanth@gmail.com
- Password for 'https://devagarishamanth@gmail.com@github.com/dshamanthreddy/AWSsummit.git':
- To https://github.com/dshamanthreddy/AWSsummit.git
- ! [rejected] master -> master (non-fast-forward)
- error: failed to push some refs to 'https://github.com/dshamanthreddy/AWSsummit.git'
- hint: Updates were rejected because the tip of your current branch is behind
- hint: its remote counterpart. Integrate the remote changes (e.g.
- hint: 'git pull ...') before pushing again.
- hint: See the 'Note about fast-forwards' in 'git push --help' for details.
- [ec2-user@ip-10-0-1-250 ~]$ git remote add origin https://github.com/dshamanthreddy/testsam.git
- fatal: remote origin already exists.
- [ec2-user@ip-10-0-1-250 ~]$
- Broadcast message from root@ip-10-0-1-250
- (unknown) at 2:41 ...
- The system is going down for power off NOW!
- Connection to ec2-54-205-54-2.compute-1.amazonaws.com closed by remote host.
- Connection to ec2-54-205-54-2.compute-1.amazonaws.com closed.
- Shamanthreddys-MacBook-Pro:Downloads shamanthreddy$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement