Skip to content

Commit 625ed62

Browse files
committed
Template clean up
1 parent 02e34b4 commit 625ed62

File tree

9 files changed

+68
-19
lines changed

9 files changed

+68
-19
lines changed

.github/workflows/trivy-analysis.yml

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- cron: "0 8 * * 6"
1010

1111
jobs:
12-
ubuntu-php:
12+
ubuntu:
1313
name: PHP images vulnerability scanner
1414
runs-on: "ubuntu-18.04"
1515
strategy:
@@ -33,3 +33,50 @@ jobs:
3333
uses: github/codeql-action/upload-sarif@v1
3434
with:
3535
sarif_file: 'trivy-results.sarif'
36+
37+
alpine:
38+
name: PHP images vulnerability scanner
39+
runs-on: "ubuntu-18.04"
40+
strategy:
41+
matrix:
42+
php: ["5.6", "7.0", "7.2", "7.3", "7.4", "8.0"]
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v2
46+
47+
- name: Run Trivy vulnerability scanner
48+
uses: aquasecurity/trivy-action@master
49+
with:
50+
image-ref: 'docker.io/itkdev/php${{ matrix.php }}-fpm:alpine'
51+
format: 'template'
52+
template: '@/contrib/sarif.tpl'
53+
output: 'trivy-results.sarif'
54+
severity: 'MEDIUM,CRITICAL,HIGH'
55+
ignore-unfixed: true
56+
57+
- name: Upload Trivy scan results to GitHub Security tab
58+
uses: github/codeql-action/upload-sarif@v1
59+
with:
60+
sarif_file: 'trivy-results.sarif'
61+
62+
mariadb:
63+
name: MariaDB images vulnerability scanner
64+
runs-on: "ubuntu-18.04"
65+
steps:
66+
- name: Checkout
67+
uses: actions/checkout@v2
68+
69+
- name: Run Trivy vulnerability scanner
70+
uses: aquasecurity/trivy-action@master
71+
with:
72+
image-ref: 'docker.io/itkdev/mariadb:alpine'
73+
format: 'template'
74+
template: '@/contrib/sarif.tpl'
75+
output: 'trivy-results.sarif'
76+
severity: 'MEDIUM,CRITICAL,HIGH'
77+
ignore-unfixed: true
78+
79+
- name: Upload Trivy scan results to GitHub Security tab
80+
uses: github/codeql-action/upload-sarif@v1
81+
with:
82+
sarif_file: 'trivy-results.sarif'

templates/aakbcms/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# itk-version: 1.0.0
1+
# itk-version: 1.0.1
22
version: "3"
33

44
networks:

templates/ddbcms/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# itk-version: 1.0.0
1+
# itk-version: 1.0.1
22
version: "3"
33

44
networks:

templates/drupal-7/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# itk-version: 1.0.0
1+
# itk-version: 1.0.1
22
version: "3"
33

44
networks:

templates/drupal-8/docker-compose.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# itk-version: 1.0.0
1+
# itk-version: 1.0.1
22
version: "3"
33

44
networks:
@@ -80,7 +80,3 @@ services:
8080
- "traefik.docker.network=frontend"
8181
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}Mailhog.rule=Host(`mailhog-${COMPOSE_DOMAIN}`)"
8282
- "traefik.http.services.${COMPOSE_PROJECT_NAME}Mailhog.loadbalancer.server.port=8025"
83-
84-
# Drush cache volume to persist cache between runs.
85-
volumes:
86-
drush-cache:

templates/drupal-9/docker-compose.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# itk-version: 1.0.1
12
version: "3"
23

34
networks:
@@ -20,9 +21,6 @@ services:
2021
- MYSQL_PASSWORD=db
2122
- MYSQL_DATABASE=db
2223
#- ENCRYPT=1 # Uncomment to enable database encryption.
23-
# @see https://symfony.com/doc/current/setup/symfony_server.html#docker-integration
24-
labels:
25-
com.symfony.server.service-prefix: 'DATABASE'
2624

2725
phpfpm:
2826
image: itkdev/php7.4-fpm:latest
@@ -73,10 +71,12 @@ services:
7371
image: mailhog/mailhog
7472
networks:
7573
- app
74+
- frontend
7675
ports:
7776
- "1025"
7877
- "8025"
79-
80-
# Drush cache volume to persist cache between runs.
81-
volumes:
82-
drush-cache:
78+
labels:
79+
- "traefik.enable=true"
80+
- "traefik.docker.network=frontend"
81+
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}Mailhog.rule=Host(`mailhog-${COMPOSE_DOMAIN}`)"
82+
- "traefik.http.services.${COMPOSE_PROJECT_NAME}Mailhog.loadbalancer.server.port=8025"

templates/ereolen/docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# itk-version: 1.0.0
1+
# itk-version: 1.0.1
22
version: "3"
33

44
networks:
@@ -85,9 +85,15 @@ services:
8585
image: mailhog/mailhog
8686
networks:
8787
- app
88+
- frontend
8889
ports:
8990
- "1025"
9091
- "8025"
92+
labels:
93+
- "traefik.enable=true"
94+
- "traefik.docker.network=frontend"
95+
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}Mailhog.rule=Host(`mailhog-${COMPOSE_DOMAIN}`)"
96+
- "traefik.http.services.${COMPOSE_PROJECT_NAME}Mailhog.loadbalancer.server.port=8025"
9197

9298
drush:
9399
image: itkdev/drush6:latest

templates/symfony-3/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# itk-version: 1.0.0
1+
# itk-version: 1.0.1
22
version: "3"
33

44
networks:

templates/symfony-4/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# itk-version: 1.0.0
1+
# itk-version: 1.0.1
22
version: "3"
33

44
networks:

0 commit comments

Comments
 (0)