/peak-it-2020_1

Resources for "Use Docker Compose when running integration tests with Azure Pipelines" presentation given at Peak IT conference in October 17th 2020.

Primary LanguageC#MIT LicenseMIT

Peak IT - Brașov - 2020

Table of Contents

Build Status Quality Gate Status

This repo contains the resources used during the "Use Docker Compose when running integration tests with Azure Pipelines" presentation at the 3rd edition of the Peak IT conference, which took place in Brașov between October 17th and 18th 2020 (online event due to COVID-19).

This presentation is based on this article: Use Docker Compose when running integration tests with Azure Pipelines.

https://www.slideshare.net/satrapu/use-docker-compose-when-running-integration-tests-with-azure-pipelines

In order to have a clear image of the CI pipeline used to build the source code from this repo, please visit: https://github.com/satrapu/aspnet-core-logging.

  • Start compose services
# Start compose services founder under a specific project
docker-compose --file="docker-compose.yml" --project-name="peak-it-2020" up --detach
  • List running Docker containers found under a specific compose project
docker container ls -a --filter "label=com.docker.compose.project=peak-it-2020" --format "{{ .ID }}"
  • Display details of a particular Docker container
docker container inspect --format "{{ json .Config.Labels }}" peak-it-2020-db-dev
  • Check the health state of a particular Docker container
docker container inspect --format "{{.State.Health.Status}}" peak-it-2020-db-dev
  • List all ports exposed by a particular Docker container
docker container port peak-it-2020-db-dev