AZURE CLOUD 101

Azure DevOps — Azure Container Registry

Photo by Jonatan Pie on Unsplash
#### Example how to push image in ACR> sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
flask-sample v 51c3779414dd 4 hours ago 459MB
> sudo docker tag flask-sample:v1 xyz.azurecr.io/flask-sample:v1> sudo docker login xyz.azurecr.io
** password can be fetched from ACR details page in Azure cloud
> sudo docker push xyz.azurecr.io/flask-sample:v1
#file to support
trigger:
- master

resources:
- repo: self

variables:
tags: $(Build.BuildId)

stages:
- stage: Build
displayName: Build image for flask website

jobs:
- job: Build
displayName: Build Job for Flask Website
pool:
vmImage: 'ubuntu-latest'
steps:
- task: Docker@2
inputs:
containerRegistry: 'regcontainer'
command: 'login'
- task: Docker@2
inputs:
containerRegistry: 'regcontainer'
repository: 'flask-sample'
command: 'buildAndPush'
Dockerfile: '**/Dockerfile'
Images in ACR repository

In quest of understanding How Systems Work !

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store