Skip to content

Commit

Permalink
examples: added Lagoon service type check
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufhm committed Aug 1, 2024
1 parent 0ee4280 commit 251f98d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ collect:
yaml:key:
input: compose-services-nodes
path: image
# Extract the Lagoon service type for each service.
lagoon-type:
yaml:key:
input: compose-services-nodes
path: labels['lagoon.type']
# Extract the Dockerfile for each service.
dockerfile-paths:
yaml:key:
Expand Down Expand Up @@ -81,6 +86,26 @@ analyse:
- cli
- mariadb
- chrome

disallowed-lagoon-service:
allowed:list:
description: Disallowed Lagoon service type found in Docker Compose file.
input: lagoon-type
allowed:
- none
- cli
- cli-persistent
- mariadb
- mariadb-dbaas
- nginx
- nginx-php
- nginx-php-persistent
- redis
- redis-persistent
- solr
- varnish
- varnish-persistent

disallowed-base-image:
allowed:list:
description: Disallowed base image found in services' Dockerfiles.
Expand Down

0 comments on commit 251f98d

Please sign in to comment.