Skip to content

Commit 40ff888

Browse files
committed
Lint yaml en md files, fix errors in these files
1 parent 1e85e47 commit 40ff888

10 files changed

Lines changed: 117 additions & 35 deletions

‎.github/dependabot.yml‎

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
---
12
version: 2
23
updates:
34
- package-ecosystem: "github-actions"
45
directory: "/"
56
groups:
67
gha:
7-
update-types: [ "major", "minor", "patch" ]
8+
update-types: ["major", "minor", "patch"]
89
schedule:
910
interval: "weekly"
1011
labels:
@@ -17,7 +18,7 @@ updates:
1718
interval: weekly
1819
groups:
1920
docker-patch:
20-
update-types: [ "version-update:semver-patch" ] # ← only patch PRs
21+
update-types: ["version-update:semver-patch"] # only patch PRs
2122
open-pull-requests-limit: 5
2223
labels:
2324
- docker-base-update
@@ -28,7 +29,7 @@ updates:
2829
interval: weekly
2930
groups:
3031
docker-patch:
31-
update-types: [ "version-update:semver-patch" ]
32+
update-types: ["version-update:semver-patch"]
3233
open-pull-requests-limit: 5
3334
labels:
3435
- docker-base-update
@@ -39,7 +40,7 @@ updates:
3940
interval: weekly
4041
groups:
4142
docker-patch:
42-
update-types: [ "version-update:semver-patch" ]
43+
update-types: ["version-update:semver-patch"]
4344
open-pull-requests-limit: 5
4445
labels:
4546
- docker-base-update
@@ -50,7 +51,7 @@ updates:
5051
interval: weekly
5152
groups:
5253
docker-patch:
53-
update-types: [ "version-update:semver-patch" ]
54+
update-types: ["version-update:semver-patch"]
5455
open-pull-requests-limit: 5
5556
labels:
5657
- docker-base-update
@@ -61,7 +62,7 @@ updates:
6162
interval: weekly
6263
groups:
6364
docker-patch:
64-
update-types: [ "version-update:semver-patch" ]
65+
update-types: ["version-update:semver-patch"]
6566
open-pull-requests-limit: 5
6667
labels:
6768
- docker-base-update
@@ -72,7 +73,7 @@ updates:
7273
interval: weekly
7374
groups:
7475
docker-patch:
75-
update-types: [ "version-update:semver-patch" ]
76+
update-types: ["version-update:semver-patch"]
7677
open-pull-requests-limit: 5
7778
labels:
7879
- docker-base-update
@@ -83,7 +84,7 @@ updates:
8384
interval: weekly
8485
groups:
8586
docker-patch:
86-
update-types: [ "version-update:semver-patch" ]
87+
update-types: ["version-update:semver-patch"]
8788
open-pull-requests-limit: 5
8889
labels:
8990
- docker-base-update
@@ -94,7 +95,7 @@ updates:
9495
interval: weekly
9596
groups:
9697
docker-patch:
97-
update-types: [ "version-update:semver-patch" ]
98+
update-types: ["version-update:semver-patch"]
9899
open-pull-requests-limit: 5
99100
labels:
100101
- docker-base-update
@@ -105,7 +106,7 @@ updates:
105106
interval: weekly
106107
groups:
107108
docker-patch:
108-
update-types: [ "version-update:semver-patch" ]
109+
update-types: ["version-update:semver-patch"]
109110
open-pull-requests-limit: 5
110111
labels:
111112
- docker-base-update
@@ -116,7 +117,7 @@ updates:
116117
interval: weekly
117118
groups:
118119
docker-patch:
119-
update-types: [ "version-update:semver-patch" ]
120+
update-types: ["version-update:semver-patch"]
120121
open-pull-requests-limit: 5
121122
labels:
122123
- docker-base-update
@@ -127,7 +128,7 @@ updates:
127128
interval: weekly
128129
groups:
129130
docker-patch:
130-
update-types: [ "version-update:semver-patch" ]
131+
update-types: ["version-update:semver-patch"]
131132
open-pull-requests-limit: 5
132133
labels:
133134
- docker-base-update
@@ -138,7 +139,7 @@ updates:
138139
interval: weekly
139140
groups:
140141
docker-patch:
141-
update-types: [ "version-update:semver-patch" ]
142+
update-types: ["version-update:semver-patch"]
142143
open-pull-requests-limit: 5
143144
labels:
144145
- docker-base-update

‎.github/workflows/build-php72-apache2.yaml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ on:
1111
workflow_dispatch:
1212

1313
jobs:
14-
1514
build-php72:
1615
permissions:
1716
packages: write
1817
strategy:
1918
matrix:
20-
arch: [ 'amd64', 'arm64' ]
19+
arch: ['amd64', 'arm64']
2120
runs-on: "ubuntu-24.04${{ matrix.arch == 'arm64' && '-arm' || '' }}"
2221
steps:
2322
- name: Checkout

‎.github/workflows/build-php82-apache2.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
packages: write
2626
strategy:
2727
matrix:
28-
arch: [ 'amd64', 'arm64' ]
28+
arch: ['amd64', 'arm64']
2929
runs-on: "ubuntu-24.04${{ matrix.arch == 'arm64' && '-arm' || '' }}"
3030
steps:
3131
- name: Checkout

‎.github/workflows/build-php85-apache2-node24.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
packages: write
2626
strategy:
2727
matrix:
28-
arch: [ 'amd64', 'arm64' ]
28+
arch: ['amd64', 'arm64']
2929
runs-on: "ubuntu-24.04${{ matrix.arch == 'arm64' && '-arm' || '' }}"
3030
steps:
3131
- name: Checkout

‎.github/workflows/build-php85-apache2.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
packages: write
2626
strategy:
2727
matrix:
28-
arch: [ 'amd64', 'arm64' ]
28+
arch: ['amd64', 'arm64']
2929
runs-on: "ubuntu-24.04${{ matrix.arch == 'arm64' && '-arm' || '' }}"
3030
steps:
3131
- name: Checkout

‎.github/workflows/delete-old-container-images.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Delete old container images
23

34
on:

‎.github/workflows/validate.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Validate YAML and Markdown
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
workflow_dispatch:
10+
11+
jobs:
12+
validate:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v6
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.12"
22+
23+
- name: Set up Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: "20"
27+
28+
- name: Install yamllint and markdownlint
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install yamllint
32+
npm install -g markdownlint-cli
33+
34+
- name: Lint YAML
35+
run: yamllint $(git ls-files '*.yml' '*.yaml')
36+
37+
- name: Lint Markdown
38+
run: markdownlint $(git ls-files '*.md')

‎.markdownlint.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
MD013: false

‎.yamllint.yaml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
3+
yaml-files:
4+
- '*.yaml'
5+
- '*.yml'
6+
- '.yamllint'
7+
8+
rules:
9+
anchors: enable
10+
braces: enable
11+
brackets: enable
12+
colons: enable
13+
commas: enable
14+
comments:
15+
level: warning
16+
comments-indentation:
17+
level: warning
18+
document-end: disable
19+
document-start:
20+
level: warning
21+
empty-lines: enable
22+
empty-values: disable
23+
float-values: disable
24+
hyphens: enable
25+
indentation: enable
26+
key-duplicates: enable
27+
key-ordering: disable
28+
line-length: disable
29+
new-line-at-end-of-file: enable
30+
new-lines: enable
31+
octal-values: disable
32+
quoted-strings: disable
33+
trailing-spaces: enable
34+
truthy: disable

‎README.md‎

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,57 @@
33
We provide the following base containers which can be used in downstream projects:
44

55
## Apache2 containers
6-
**Plain Apache**</br>
6+
7+
### Plain Apache
8+
79
![Build status for plain apache2 production image](https://github.com/OpenConext/OpenConext-BaseContainers/actions/workflows/build-apache2.yaml/badge.svg)
810

9-
**Apache 2 with shibboleth**</br>
10-
![Build status for apache2 shibboleth production image](https://github.com/OpenConext/OpenConext-BaseContainers/actions/workflows/build-apache2-shibboleth.yaml/badge.svg)
11+
### Apache 2 with shibboleth
1112

13+
![Build status for apache2 shibboleth production image](https://github.com/OpenConext/OpenConext-BaseContainers/actions/workflows/build-apache2-shibboleth.yaml/badge.svg)
1214

1315
## PHP 72 images
1416

15-
**PROD image:**</br>
17+
**PROD image:**
18+
1619
![Build status for php72 apache2 production image](https://github.com/OpenConext/OpenConext-BaseContainers/actions/workflows/build-php72-apache2.yaml/badge.svg)
1720

18-
**Dev images:**</br>
19-
![Build status for php72 apache2 node14 image](https://github.com/OpenConext/OpenConext-BaseContainers/actions/workflows/build-php72-apache2-node14-composer2.yaml/badge.svg)</br>
20-
![Build status for php72 apache2 node16 image](https://github.com/OpenConext/OpenConext-BaseContainers/actions/workflows/build-php72-apache2-node16-composer2.yaml/badge.svg)
21+
**Dev images:**
2122

23+
![Build status for php72 apache2 node14 image](https://github.com/OpenConext/OpenConext-BaseContainers/actions/workflows/build-php72-apache2-node14-composer2.yaml/badge.svg)
24+
![Build status for php72 apache2 node16 image](https://github.com/OpenConext/OpenConext-BaseContainers/actions/workflows/build-php72-apache2-node16-composer2.yaml/badge.svg)
2225

2326
## PHP 8.2 images
2427

25-
**PROD image:**<br>
28+
**PROD image:**
2629

2730
![Build status for php82 apache2 production image](https://github.com/OpenConext/OpenConext-BaseContainers/actions/workflows/build-php82-apache2.yaml/badge.svg)
2831

29-
**Dev images:** </br>
32+
**Dev images:**
33+
3034
![Build status for php82 apache2 node20 image](https://github.com/OpenConext/OpenConext-BaseContainers/actions/workflows/build-php82-apache2-node20-composer2.yaml/badge.svg)
3135

3236
## Features
3337

34-
- At every start, the php containers will recreate the symfony cache dir. </br>
35-
- You can supply the environment variable APACHE_UID. It creates the user "openconext", and starts Apache with that the supplied uid.
36-
This allows for strict permissions on mounted files.
37-
You need to prefix the uid with a # like so:
38-
```
38+
- At every start, the php containers will recreate the symfony cache dir.
39+
- You can supply the environment variable APACHE_UID. It creates the user "openconext", and starts Apache with that the supplied uid.
40+
This allows for strict permissions on mounted files.
41+
You need to prefix the uid with a # like so:
42+
43+
```sh
3944
docker run -e APACHE_UID=#1337 ghcr.io/openconext/openconext-basecontainers/php72-apache2:latest
4045
```
46+
4147
- You can supply the environment variable "HTTPD_CSP" which will set the CSP header on responses.
4248
- You can supply the environment variable TZ to set the timezone on the php82 containers
4349
- You can add PHP_MEMORY_LIMIT to override the default setting of 128M php memory limit on the php82 containers
4450

4551
### satosa container
4652

47-
- At every start, the satosa container will create a new satosa user and group.</br>
48-
- You can supply the environment variables RUNAS_UID and RUNAS_GID to configure the chosen uid and gid inside the container.</br>
53+
- At every start, the satosa container will create a new satosa user and group.
54+
- You can supply the environment variables RUNAS_UID and RUNAS_GID to configure the chosen uid and gid inside the container.
4955
- Without RUNAS_UID and RUNAS_GID the container will fall back to uid=1000 and gid=1000
50-
```
56+
57+
```sh
5158
docker run -e RUNAS_UID=1234 -e RUNAS_GID=1234 --rm ghcr.io/openconext/openconext-basecontainers/satosa:latest
5259
```

0 commit comments

Comments
 (0)