DevOps Classroomnotes 10/Feb/2023

Manual Steps

  • Clone the code from here Refer Here
  • Softwares needed
docker:

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
sudo usermod -aG docker qtdevops
# exit
# relogin
docker info
  • Build Steps:
git clone https://github.com/DevProjectsForDevOps/StudentCoursesRestAPI.git
cd StudentCoursesRestAPI
docker image build -t studentcourses:v1.0 .

Pipeline requirements

  • Build docker image with BuildNumber as Tag and version from parameter (v1.0-)
docker image build -t studentcourses:<version>-<build-id> .
  • Pipeline is as follows
---
pool:
  vmImage: ubuntu-latest
  name: "Azure Pipelines"

triggers:
  - master

parameters:
  - name: version
    displayName: version
    type: string
    default: v1.0    

steps:
  - task: Docker@2
    inputs:
      command: build
      buildContext: .
      repository: 'StudentCourses'
      tags: $(Build.BuildId)
  • Next steps:
    • Expressions
    • Service Connections
    • Templates
    • Deploy/Release pipelines
    • Artifacts

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube