Deployment Task

This is a Quick Start Guide for an Azure DevOps (Microsoft VSTS) Integration. This will set up a basic pipeline to build a Docker image that is scanned by Aqua's plugin. 


Deployment Steps

1. Create a new project on https://dev.azure.com/

2. Create a new Repo:
…chose or initialize2 with a REAME or gitignore

3. Create a new file called Dockerfile using the following example, or one of your own:

FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends mysql-client \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["mysql"]


4. Create a new pipeline

  1.  In "Where is your code?" Choose 'use the visual designer' option. 
  2. Continue on select source to accept defaults 
  3. Chose Docker container template 
    1. Remove Push an image (unless you are going to use it)   
    2. Save & queue - This will run the job to make sure the image builds. 

5. Add registery.aquasec login info (required for plugin to download the scanner). It's recommend to download and use a local registry.

        Project Settings  > Pipelines > Service Connections > New > Docker Registry

6. Pipelines > Builds > edit

  1. + to add tasks, search for Docker and add. 
    1. Change command to login 
    2. Change container registry type to container registry 
    3. Update Docker registry service connection to Aqua login

7. Next, follow  'Azure DevOps (Microsoft VSTS) Integration' steps to complete the integration with Aqua.