Skip to content

Commit 5e9c6a1

Browse files
committed
Run update.sh --doc
1 parent 0abb7f5 commit 5e9c6a1

File tree

140 files changed

+852
-794
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+852
-794
lines changed

.automation/generated/flavors-stats.json

+24-24
Original file line numberDiff line numberDiff line change
@@ -1369,8 +1369,8 @@
13691369
2861902
13701370
],
13711371
[
1372-
"2023-03-26T18:35:58",
1373-
2862794
1372+
"2023-03-26T19:04:57",
1373+
2862832
13741374
]
13751375
],
13761376
"ci_light": [
@@ -2743,7 +2743,7 @@
27432743
54546
27442744
],
27452745
[
2746-
"2023-03-26T18:35:58",
2746+
"2023-03-26T19:04:57",
27472747
54606
27482748
]
27492749
],
@@ -3097,8 +3097,8 @@
30973097
6045
30983098
],
30993099
[
3100-
"2023-03-26T18:35:58",
3101-
6079
3100+
"2023-03-26T19:04:57",
3101+
6081
31023102
]
31033103
],
31043104
"dart": [
@@ -5381,8 +5381,8 @@
53815381
131898
53825382
],
53835383
[
5384-
"2023-03-26T18:35:58",
5385-
132144
5384+
"2023-03-26T19:04:57",
5385+
132148
53865386
]
53875387
],
53885388
"dotnet": [
@@ -6755,8 +6755,8 @@
67556755
364426
67566756
],
67576757
[
6758-
"2023-03-26T18:35:58",
6759-
364559
6758+
"2023-03-26T19:04:57",
6759+
364571
67606760
]
67616761
],
67626762
"go": [
@@ -8129,8 +8129,8 @@
81298129
18059
81308130
],
81318131
[
8132-
"2023-03-26T18:35:58",
8133-
18083
8132+
"2023-03-26T19:04:57",
8133+
18087
81348134
]
81358135
],
81368136
"java": [
@@ -9503,7 +9503,7 @@
95039503
113754
95049504
],
95059505
[
9506-
"2023-03-26T18:35:58",
9506+
"2023-03-26T19:04:57",
95079507
113830
95089508
]
95099509
],
@@ -10877,8 +10877,8 @@
1087710877
229178
1087810878
],
1087910879
[
10880-
"2023-03-26T18:35:58",
10881-
229676
10880+
"2023-03-26T19:04:57",
10881+
229702
1088210882
]
1088310883
],
1088410884
"php": [
@@ -12251,7 +12251,7 @@
1225112251
47693
1225212252
],
1225312253
[
12254-
"2023-03-26T18:35:58",
12254+
"2023-03-26T19:04:57",
1225512255
47711
1225612256
]
1225712257
],
@@ -13625,8 +13625,8 @@
1362513625
179705
1362613626
],
1362713627
[
13628-
"2023-03-26T18:35:58",
13629-
179894
13628+
"2023-03-26T19:04:57",
13629+
179902
1363013630
]
1363113631
],
1363213632
"ruby": [
@@ -14995,7 +14995,7 @@
1499514995
3225
1499614996
],
1499714997
[
14998-
"2023-03-26T18:35:58",
14998+
"2023-03-26T19:04:57",
1499914999
3243
1500015000
]
1500115001
],
@@ -16365,7 +16365,7 @@
1636516365
4959
1636616366
],
1636716367
[
16368-
"2023-03-26T18:35:58",
16368+
"2023-03-26T19:04:57",
1636916369
4977
1637016370
]
1637116371
],
@@ -17739,7 +17739,7 @@
1773917739
17724
1774017740
],
1774117741
[
17742-
"2023-03-26T18:35:58",
17742+
"2023-03-26T19:04:57",
1774317743
17746
1774417744
]
1774517745
],
@@ -19111,7 +19111,7 @@
1911119111
6141
1911219112
],
1911319113
[
19114-
"2023-03-26T18:35:58",
19114+
"2023-03-26T19:04:57",
1911519115
6163
1911619116
]
1911719117
],
@@ -20481,7 +20481,7 @@
2048120481
3366
2048220482
],
2048320483
[
20484-
"2023-03-26T18:35:58",
20484+
"2023-03-26T19:04:57",
2048520485
3384
2048620486
]
2048720487
],
@@ -21855,8 +21855,8 @@
2185521855
204232
2185621856
],
2185721857
[
21858-
"2023-03-26T18:35:58",
21859-
204442
21858+
"2023-03-26T19:04:57",
21859+
204445
2186021860
]
2186121861
]
2186221862
}

docs/all_linters.md

+104-104
Large diffs are not rendered by default.

docs/descriptors/arm.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,20 @@ description: arm-ttk is available to analyze ARM files in MegaLinter
3535

3636
- Dockerfile commands :
3737
```dockerfile
38+
ARG TARGETPLATFORM
3839
ARG PWSH_VERSION='latest'
3940
ARG PWSH_DIRECTORY='/opt/microsoft/powershell'
40-
RUN mkdir -p ${PWSH_DIRECTORY} \
41+
RUN case ${TARGETPLATFORM} in \
42+
"linux/amd64") POWERSHELL_ARCH=alpine-x64 ;; \
43+
"linux/arm64") POWERSHELL_ARCH=arm64 ;; \
44+
esac \
45+
&& mkdir -p ${PWSH_DIRECTORY} \
4146
&& curl --retry 5 --retry-delay 5 -s \
4247
-H "Accept: application/vnd.github+json" \
4348
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
4449
https://api.github.com/repos/powershell/powershell/releases/${PWSH_VERSION} \
4550
| grep browser_download_url \
46-
| grep linux-alpine-x64 \
51+
| grep linux-${POWERSHELL_ARCH} \
4752
| cut -d '"' -f 4 \
4853
| xargs -n 1 wget -O - \
4954
| tar -xzC ${PWSH_DIRECTORY} \

docs/descriptors/arm_arm_ttk.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,20 @@ pwsh -NoProfile -NoLogo -Command "
102102
- Dockerfile commands :
103103
```dockerfile
104104
# Parent descriptor install
105+
ARG TARGETPLATFORM
105106
ARG PWSH_VERSION='latest'
106107
ARG PWSH_DIRECTORY='/opt/microsoft/powershell'
107-
RUN mkdir -p ${PWSH_DIRECTORY} \
108+
RUN case ${TARGETPLATFORM} in \
109+
"linux/amd64") POWERSHELL_ARCH=alpine-x64 ;; \
110+
"linux/arm64") POWERSHELL_ARCH=arm64 ;; \
111+
esac \
112+
&& mkdir -p ${PWSH_DIRECTORY} \
108113
&& curl --retry 5 --retry-delay 5 -s \
109114
-H "Accept: application/vnd.github+json" \
110115
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
111116
https://api.github.com/repos/powershell/powershell/releases/${PWSH_VERSION} \
112117
| grep browser_download_url \
113-
| grep linux-alpine-x64 \
118+
| grep linux-${POWERSHELL_ARCH} \
114119
| cut -d '"' -f 4 \
115120
| xargs -n 1 wget -O - \
116121
| tar -xzC ${PWSH_DIRECTORY} \

docs/descriptors/bicep_bicep_linter.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,16 @@ Usage:
220220
221221
- Dockerfile commands :
222222
```dockerfile
223+
ARG TARGETPLATFORM
223224
ARG BICEP_EXE='bicep'
224-
ARG BICEP_URI='https://github.com/Azure/bicep/releases/latest/download/bicep-linux-musl-x64'
225225
ARG BICEP_DIR='/usr/local/bin'
226-
RUN curl --retry 5 --retry-delay 5 -sLo ${BICEP_EXE} "${BICEP_URI}" \
227-
&& chmod +x "${BICEP_EXE}" \
228-
&& mv "${BICEP_EXE}" "${BICEP_DIR}"
226+
RUN case ${TARGETPLATFORM} in \
227+
"linux/amd64") POWERSHELL_ARCH=musl-x64 ;; \
228+
"linux/arm64") POWERSHELL_ARCH=arm64 ;; \
229+
esac \
230+
&& curl --retry 5 --retry-delay 5 -sLo ${BICEP_EXE} "https://github.com/Azure/bicep/releases/latest/download/bicep-linux-${POWERSHELL_ARCH}" \
231+
&& chmod +x "${BICEP_EXE}" \
232+
&& mv "${BICEP_EXE}" "${BICEP_DIR}"
229233

230234
```
231235

docs/descriptors/dart_dartanalyzer.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,17 @@ For more information, see https://www.dartlang.org/tools/analyzer.
116116

117117
- Dockerfile commands :
118118
```dockerfile
119+
ARG TARGETPLATFORM
119120
ARG DART_VERSION='2.8.4'
120121
ARG GLIBC_VERSION='2.34-r0'
121-
RUN wget --tries=50 -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
122+
RUN case ${TARGETPLATFORM} in \
123+
"linux/amd64") DART_ARCH=x64 ;; \
124+
"linux/arm64") DART_ARCH=arm64 ;; \
125+
esac \
126+
&& wget --tries=5 -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
122127
&& wget --tries=5 -q https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk \
123-
&& apk add --force-overwrite --no-cache glibc-${GLIBC_VERSION}.apk && rm glibc-${GLIBC_VERSION}.apk \
124-
&& wget --tries=5 https://storage.googleapis.com/dart-archive/channels/stable/release/${DART_VERSION}/sdk/dartsdk-linux-x64-release.zip -O - -q | unzip -q - \
128+
&& apk add --no-cache glibc-${GLIBC_VERSION}.apk && rm glibc-${GLIBC_VERSION}.apk \
129+
&& wget --tries=5 https://storage.googleapis.com/dart-archive/channels/stable/release/${DART_VERSION}/sdk/dartsdk-linux-${DART_ARCH}-release.zip -O - -q | unzip -q - \
125130
&& chmod +x dart-sdk/bin/dart* \
126131
&& mv dart-sdk/bin/* /usr/bin/ && mv dart-sdk/lib/* /usr/lib/ && mv dart-sdk/include/* /usr/include/ \
127132
&& rm -r dart-sdk/

docs/descriptors/kubernetes_kubeconform.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,18 @@ Usage: kubeconform [OPTION]... [FILE OR FOLDER]...
131131
132132
- Dockerfile commands :
133133
```dockerfile
134-
RUN ML_THIRD_PARTY_DIR="/third-party/kubeconform" \
134+
ARG TARGETPLATFORM
135+
RUN case ${TARGETPLATFORM} in \
136+
"linux/amd64") KUBECONFORM_ARCH=linux-amd64 ;; \
137+
"linux/arm64") KUBECONFORM_ARCH=linux-arm64 ;; \
138+
esac \
139+
&& ML_THIRD_PARTY_DIR="/third-party/kubeconform" \
135140
&& KUBECONFORM_VERSION=v0.5.0 \
136141
&& mkdir -p ${ML_THIRD_PARTY_DIR} \
137-
&& wget -P ${ML_THIRD_PARTY_DIR} -q https://github.com/yannh/kubeconform/releases/download/$KUBECONFORM_VERSION/kubeconform-linux-amd64.tar.gz \
138-
&& tar xf ${ML_THIRD_PARTY_DIR}/kubeconform-linux-amd64.tar.gz --directory ${ML_THIRD_PARTY_DIR} \
142+
&& wget -P ${ML_THIRD_PARTY_DIR} -q https://github.com/yannh/kubeconform/releases/download/$KUBECONFORM_VERSION/kubeconform-${KUBECONFORM_ARCH}.tar.gz \
143+
&& tar xf ${ML_THIRD_PARTY_DIR}/kubeconform-${KUBECONFORM_ARCH}.tar.gz --directory ${ML_THIRD_PARTY_DIR} \
139144
&& mv ${ML_THIRD_PARTY_DIR}/kubeconform /usr/local/bin \
140-
&& rm ${ML_THIRD_PARTY_DIR}/kubeconform-linux-amd64.tar.gz \
145+
&& rm ${ML_THIRD_PARTY_DIR}/kubeconform-${KUBECONFORM_ARCH}.tar.gz \
141146
&& find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete
142147
143148
```

docs/descriptors/kubernetes_kubeval.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,16 @@ Flags:
119119
120120
- Dockerfile commands :
121121
```dockerfile
122-
RUN ML_THIRD_PARTY_DIR="/third-party/kubeval" \
122+
ARG TARGETPLATFORM
123+
RUN case ${TARGETPLATFORM} in \
124+
"linux/amd64") KUBEVAL_ARCH=linux-amd64 ;; \
125+
esac \
126+
&& ML_THIRD_PARTY_DIR="/third-party/kubeval" \
123127
&& mkdir -p ${ML_THIRD_PARTY_DIR} \
124-
&& wget -P ${ML_THIRD_PARTY_DIR} -q https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz \
125-
&& tar xf ${ML_THIRD_PARTY_DIR}/kubeval-linux-amd64.tar.gz --directory ${ML_THIRD_PARTY_DIR} \
128+
&& wget -P ${ML_THIRD_PARTY_DIR} -q https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-${KUBEVAL_ARCH}.tar.gz \
129+
&& tar xf ${ML_THIRD_PARTY_DIR}/kubeval-${KUBEVAL_ARCH}.tar.gz --directory ${ML_THIRD_PARTY_DIR} \
126130
&& mv ${ML_THIRD_PARTY_DIR}/kubeval /usr/local/bin \
127-
&& rm ${ML_THIRD_PARTY_DIR}/kubeval-linux-amd64.tar.gz \
131+
&& rm ${ML_THIRD_PARTY_DIR}/kubeval-${KUBEVAL_ARCH}.tar.gz \
128132
&& find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete
129133
130134
```

docs/descriptors/powershell.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,20 @@ description: powershell, powershell_formatter are available to analyze POWERSHEL
3939

4040
- Dockerfile commands :
4141
```dockerfile
42+
ARG TARGETPLATFORM
4243
ARG PWSH_VERSION='latest'
4344
ARG PWSH_DIRECTORY='/opt/microsoft/powershell'
44-
RUN mkdir -p ${PWSH_DIRECTORY} \
45+
RUN case ${TARGETPLATFORM} in \
46+
"linux/amd64") POWERSHELL_ARCH=alpine-x64 ;; \
47+
"linux/arm64") POWERSHELL_ARCH=arm64 ;; \
48+
esac \
49+
&& mkdir -p ${PWSH_DIRECTORY} \
4550
&& curl --retry 5 --retry-delay 5 -s \
4651
-H "Accept: application/vnd.github+json" \
4752
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
4853
https://api.github.com/repos/powershell/powershell/releases/${PWSH_VERSION} \
4954
| grep browser_download_url \
50-
| grep linux-alpine-x64 \
55+
| grep linux-${POWERSHELL_ARCH} \
5156
| cut -d '"' -f 4 \
5257
| xargs -n 1 wget -O - \
5358
| tar -xzC ${PWSH_DIRECTORY} \

docs/descriptors/powershell_powershell.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -404,15 +404,20 @@ All parameters are case-insensitive.
404404
- Dockerfile commands :
405405
```dockerfile
406406
# Parent descriptor install
407+
ARG TARGETPLATFORM
407408
ARG PWSH_VERSION='latest'
408409
ARG PWSH_DIRECTORY='/opt/microsoft/powershell'
409-
RUN mkdir -p ${PWSH_DIRECTORY} \
410+
RUN case ${TARGETPLATFORM} in \
411+
"linux/amd64") POWERSHELL_ARCH=alpine-x64 ;; \
412+
"linux/arm64") POWERSHELL_ARCH=arm64 ;; \
413+
esac \
414+
&& mkdir -p ${PWSH_DIRECTORY} \
410415
&& curl --retry 5 --retry-delay 5 -s \
411416
-H "Accept: application/vnd.github+json" \
412417
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
413418
https://api.github.com/repos/powershell/powershell/releases/${PWSH_VERSION} \
414419
| grep browser_download_url \
415-
| grep linux-alpine-x64 \
420+
| grep linux-${POWERSHELL_ARCH} \
416421
| cut -d '"' -f 4 \
417422
| xargs -n 1 wget -O - \
418423
| tar -xzC ${PWSH_DIRECTORY} \

docs/descriptors/powershell_powershell_formatter.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -405,15 +405,20 @@ All parameters are case-insensitive.
405405
- Dockerfile commands :
406406
```dockerfile
407407
# Parent descriptor install
408+
ARG TARGETPLATFORM
408409
ARG PWSH_VERSION='latest'
409410
ARG PWSH_DIRECTORY='/opt/microsoft/powershell'
410-
RUN mkdir -p ${PWSH_DIRECTORY} \
411+
RUN case ${TARGETPLATFORM} in \
412+
"linux/amd64") POWERSHELL_ARCH=alpine-x64 ;; \
413+
"linux/arm64") POWERSHELL_ARCH=arm64 ;; \
414+
esac \
415+
&& mkdir -p ${PWSH_DIRECTORY} \
411416
&& curl --retry 5 --retry-delay 5 -s \
412417
-H "Accept: application/vnd.github+json" \
413418
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
414419
https://api.github.com/repos/powershell/powershell/releases/${PWSH_VERSION} \
415420
| grep browser_download_url \
416-
| grep linux-alpine-x64 \
421+
| grep linux-${POWERSHELL_ARCH} \
417422
| cut -d '"' -f 4 \
418423
| xargs -n 1 wget -O - \
419424
| tar -xzC ${PWSH_DIRECTORY} \

docs/descriptors/spell_misspell.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,15 @@ Usage of misspell:
107107
108108
- Dockerfile commands :
109109
```dockerfile
110-
RUN ML_THIRD_PARTY_DIR="/third-party/misspell" \
111-
&& mkdir -p ${ML_THIRD_PARTY_DIR} \
112-
&& curl -L -o ${ML_THIRD_PARTY_DIR}/install-misspell.sh https://git.io/misspell \
113-
&& sh .${ML_THIRD_PARTY_DIR}/install-misspell.sh \
114-
&& find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete \
115-
&& find /tmp -path '/tmp/tmp.*' -type f -name 'misspell*' -delete -o -type d -empty -delete
110+
ARG TARGETPLATFORM
111+
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
112+
ML_THIRD_PARTY_DIR="/third-party/misspell" \
113+
&& mkdir -p ${ML_THIRD_PARTY_DIR} \
114+
&& curl -L -o ${ML_THIRD_PARTY_DIR}/install-misspell.sh https://git.io/misspell \
115+
&& sh .${ML_THIRD_PARTY_DIR}/install-misspell.sh \
116+
&& find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete \
117+
&& find /tmp -path '/tmp/tmp.*' -type f -name 'misspell*' -delete -o -type d -empty -delete; \
118+
fi
116119

117120
```
118121

0 commit comments

Comments
 (0)