Skip to content

Commit

Permalink
Run update.sh --doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bdovaz committed Mar 26, 2023
1 parent 983cd25 commit 9b31731
Show file tree
Hide file tree
Showing 141 changed files with 861 additions and 803 deletions.
64 changes: 32 additions & 32 deletions .automation/generated/flavors-stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -1369,8 +1369,8 @@
2861902
],
[
"2023-03-26T13:38:15",
2862677
"2023-03-26T19:04:57",
2862832
]
],
"ci_light": [
Expand Down Expand Up @@ -2743,8 +2743,8 @@
54546
],
[
"2023-03-26T13:38:15",
54590
"2023-03-26T19:04:57",
54606
]
],
"cupcake": [
Expand Down Expand Up @@ -3097,8 +3097,8 @@
6045
],
[
"2023-03-26T13:38:15",
6058
"2023-03-26T19:04:57",
6081
]
],
"dart": [
Expand Down Expand Up @@ -5381,8 +5381,8 @@
131898
],
[
"2023-03-26T13:38:15",
132103
"2023-03-26T19:04:57",
132148
]
],
"dotnet": [
Expand Down Expand Up @@ -6755,8 +6755,8 @@
364426
],
[
"2023-03-26T13:38:15",
364543
"2023-03-26T19:04:57",
364571
]
],
"go": [
Expand Down Expand Up @@ -8129,8 +8129,8 @@
18059
],
[
"2023-03-26T13:38:15",
18073
"2023-03-26T19:04:57",
18087
]
],
"java": [
Expand Down Expand Up @@ -9503,8 +9503,8 @@
113754
],
[
"2023-03-26T13:38:15",
113812
"2023-03-26T19:04:57",
113830
]
],
"javascript": [
Expand Down Expand Up @@ -10877,8 +10877,8 @@
229178
],
[
"2023-03-26T13:38:15",
229608
"2023-03-26T19:04:57",
229702
]
],
"php": [
Expand Down Expand Up @@ -12251,8 +12251,8 @@
47693
],
[
"2023-03-26T13:38:15",
47701
"2023-03-26T19:04:57",
47711
]
],
"python": [
Expand Down Expand Up @@ -13625,8 +13625,8 @@
179705
],
[
"2023-03-26T13:38:15",
179859
"2023-03-26T19:04:57",
179902
]
],
"ruby": [
Expand Down Expand Up @@ -14995,8 +14995,8 @@
3225
],
[
"2023-03-26T13:38:15",
3233
"2023-03-26T19:04:57",
3243
]
],
"rust": [
Expand Down Expand Up @@ -16365,8 +16365,8 @@
4959
],
[
"2023-03-26T13:38:15",
4967
"2023-03-26T19:04:57",
4977
]
],
"salesforce": [
Expand Down Expand Up @@ -17739,8 +17739,8 @@
17724
],
[
"2023-03-26T13:38:15",
17736
"2023-03-26T19:04:57",
17746
]
],
"scala": [
Expand Down Expand Up @@ -19111,8 +19111,8 @@
6141
],
[
"2023-03-26T13:38:15",
6153
"2023-03-26T19:04:57",
6163
]
],
"swift": [
Expand Down Expand Up @@ -20481,8 +20481,8 @@
3366
],
[
"2023-03-26T13:38:15",
3374
"2023-03-26T19:04:57",
3384
]
],
"terraform": [
Expand Down Expand Up @@ -21855,8 +21855,8 @@
204232
],
[
"2023-03-26T13:38:15",
204407
"2023-03-26T19:04:57",
204445
]
]
}
208 changes: 104 additions & 104 deletions docs/all_linters.md

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions docs/descriptors/arm.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,20 @@ description: arm-ttk is available to analyze ARM files in MegaLinter

- Dockerfile commands :
```dockerfile
ARG TARGETPLATFORM
ARG PWSH_VERSION='latest'
ARG PWSH_DIRECTORY='/opt/microsoft/powershell'
RUN mkdir -p ${PWSH_DIRECTORY} \
RUN case ${TARGETPLATFORM} in \
"linux/amd64") POWERSHELL_ARCH=alpine-x64 ;; \
"linux/arm64") POWERSHELL_ARCH=arm64 ;; \
esac \
&& mkdir -p ${PWSH_DIRECTORY} \
&& curl --retry 5 --retry-delay 5 -s \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
https://api.github.com/repos/powershell/powershell/releases/${PWSH_VERSION} \
| grep browser_download_url \
| grep linux-alpine-x64 \
| grep linux-${POWERSHELL_ARCH} \
| cut -d '"' -f 4 \
| xargs -n 1 wget -O - \
| tar -xzC ${PWSH_DIRECTORY} \
Expand Down
9 changes: 7 additions & 2 deletions docs/descriptors/arm_arm_ttk.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,20 @@ pwsh -NoProfile -NoLogo -Command "
- Dockerfile commands :
```dockerfile
# Parent descriptor install
ARG TARGETPLATFORM
ARG PWSH_VERSION='latest'
ARG PWSH_DIRECTORY='/opt/microsoft/powershell'
RUN mkdir -p ${PWSH_DIRECTORY} \
RUN case ${TARGETPLATFORM} in \
"linux/amd64") POWERSHELL_ARCH=alpine-x64 ;; \
"linux/arm64") POWERSHELL_ARCH=arm64 ;; \
esac \
&& mkdir -p ${PWSH_DIRECTORY} \
&& curl --retry 5 --retry-delay 5 -s \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
https://api.github.com/repos/powershell/powershell/releases/${PWSH_VERSION} \
| grep browser_download_url \
| grep linux-alpine-x64 \
| grep linux-${POWERSHELL_ARCH} \
| cut -d '"' -f 4 \
| xargs -n 1 wget -O - \
| tar -xzC ${PWSH_DIRECTORY} \
Expand Down
12 changes: 8 additions & 4 deletions docs/descriptors/bicep_bicep_linter.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,16 @@ Usage:
- Dockerfile commands :
```dockerfile
ARG TARGETPLATFORM
ARG BICEP_EXE='bicep'
ARG BICEP_URI='https://github.com/Azure/bicep/releases/latest/download/bicep-linux-musl-x64'
ARG BICEP_DIR='/usr/local/bin'
RUN curl --retry 5 --retry-delay 5 -sLo ${BICEP_EXE} "${BICEP_URI}" \
&& chmod +x "${BICEP_EXE}" \
&& mv "${BICEP_EXE}" "${BICEP_DIR}"
RUN case ${TARGETPLATFORM} in \
"linux/amd64") POWERSHELL_ARCH=musl-x64 ;; \
"linux/arm64") POWERSHELL_ARCH=arm64 ;; \
esac \
&& curl --retry 5 --retry-delay 5 -sLo ${BICEP_EXE} "https://github.com/Azure/bicep/releases/latest/download/bicep-linux-${POWERSHELL_ARCH}" \
&& chmod +x "${BICEP_EXE}" \
&& mv "${BICEP_EXE}" "${BICEP_DIR}"

```
11 changes: 8 additions & 3 deletions docs/descriptors/dart_dartanalyzer.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,17 @@ For more information, see https://www.dartlang.org/tools/analyzer.

- Dockerfile commands :
```dockerfile
ARG TARGETPLATFORM
ARG DART_VERSION='2.8.4'
ARG GLIBC_VERSION='2.34-r0'
RUN wget --tries=50 -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
RUN case ${TARGETPLATFORM} in \
"linux/amd64") DART_ARCH=x64 ;; \
"linux/arm64") DART_ARCH=arm64 ;; \
esac \
&& wget --tries=5 -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
&& wget --tries=5 -q https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk \
&& apk add --force-overwrite --no-cache glibc-${GLIBC_VERSION}.apk && rm glibc-${GLIBC_VERSION}.apk \
&& wget --tries=5 https://storage.googleapis.com/dart-archive/channels/stable/release/${DART_VERSION}/sdk/dartsdk-linux-x64-release.zip -O - -q | unzip -q - \
&& apk add --no-cache glibc-${GLIBC_VERSION}.apk && rm glibc-${GLIBC_VERSION}.apk \
&& 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 - \
&& chmod +x dart-sdk/bin/dart* \
&& mv dart-sdk/bin/* /usr/bin/ && mv dart-sdk/lib/* /usr/lib/ && mv dart-sdk/include/* /usr/include/ \
&& rm -r dart-sdk/
Expand Down
13 changes: 9 additions & 4 deletions docs/descriptors/kubernetes_kubeconform.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,18 @@ Usage: kubeconform [OPTION]... [FILE OR FOLDER]...
- Dockerfile commands :
```dockerfile
RUN ML_THIRD_PARTY_DIR="/third-party/kubeconform" \
ARG TARGETPLATFORM
RUN case ${TARGETPLATFORM} in \
"linux/amd64") KUBECONFORM_ARCH=linux-amd64 ;; \
"linux/arm64") KUBECONFORM_ARCH=linux-arm64 ;; \
esac \
&& ML_THIRD_PARTY_DIR="/third-party/kubeconform" \
&& KUBECONFORM_VERSION=v0.5.0 \
&& mkdir -p ${ML_THIRD_PARTY_DIR} \
&& wget -P ${ML_THIRD_PARTY_DIR} -q https://github.com/yannh/kubeconform/releases/download/$KUBECONFORM_VERSION/kubeconform-linux-amd64.tar.gz \
&& tar xf ${ML_THIRD_PARTY_DIR}/kubeconform-linux-amd64.tar.gz --directory ${ML_THIRD_PARTY_DIR} \
&& wget -P ${ML_THIRD_PARTY_DIR} -q https://github.com/yannh/kubeconform/releases/download/$KUBECONFORM_VERSION/kubeconform-${KUBECONFORM_ARCH}.tar.gz \
&& tar xf ${ML_THIRD_PARTY_DIR}/kubeconform-${KUBECONFORM_ARCH}.tar.gz --directory ${ML_THIRD_PARTY_DIR} \
&& mv ${ML_THIRD_PARTY_DIR}/kubeconform /usr/local/bin \
&& rm ${ML_THIRD_PARTY_DIR}/kubeconform-linux-amd64.tar.gz \
&& rm ${ML_THIRD_PARTY_DIR}/kubeconform-${KUBECONFORM_ARCH}.tar.gz \
&& find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete
```
Expand Down
12 changes: 8 additions & 4 deletions docs/descriptors/kubernetes_kubeval.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,16 @@ Flags:
- Dockerfile commands :
```dockerfile
RUN ML_THIRD_PARTY_DIR="/third-party/kubeval" \
ARG TARGETPLATFORM
RUN case ${TARGETPLATFORM} in \
"linux/amd64") KUBEVAL_ARCH=linux-amd64 ;; \
esac \
&& ML_THIRD_PARTY_DIR="/third-party/kubeval" \
&& mkdir -p ${ML_THIRD_PARTY_DIR} \
&& wget -P ${ML_THIRD_PARTY_DIR} -q https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz \
&& tar xf ${ML_THIRD_PARTY_DIR}/kubeval-linux-amd64.tar.gz --directory ${ML_THIRD_PARTY_DIR} \
&& wget -P ${ML_THIRD_PARTY_DIR} -q https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-${KUBEVAL_ARCH}.tar.gz \
&& tar xf ${ML_THIRD_PARTY_DIR}/kubeval-${KUBEVAL_ARCH}.tar.gz --directory ${ML_THIRD_PARTY_DIR} \
&& mv ${ML_THIRD_PARTY_DIR}/kubeval /usr/local/bin \
&& rm ${ML_THIRD_PARTY_DIR}/kubeval-linux-amd64.tar.gz \
&& rm ${ML_THIRD_PARTY_DIR}/kubeval-${KUBEVAL_ARCH}.tar.gz \
&& find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete
```
Expand Down
9 changes: 7 additions & 2 deletions docs/descriptors/powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,20 @@ description: powershell, powershell_formatter are available to analyze POWERSHEL

- Dockerfile commands :
```dockerfile
ARG TARGETPLATFORM
ARG PWSH_VERSION='latest'
ARG PWSH_DIRECTORY='/opt/microsoft/powershell'
RUN mkdir -p ${PWSH_DIRECTORY} \
RUN case ${TARGETPLATFORM} in \
"linux/amd64") POWERSHELL_ARCH=alpine-x64 ;; \
"linux/arm64") POWERSHELL_ARCH=arm64 ;; \
esac \
&& mkdir -p ${PWSH_DIRECTORY} \
&& curl --retry 5 --retry-delay 5 -s \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
https://api.github.com/repos/powershell/powershell/releases/${PWSH_VERSION} \
| grep browser_download_url \
| grep linux-alpine-x64 \
| grep linux-${POWERSHELL_ARCH} \
| cut -d '"' -f 4 \
| xargs -n 1 wget -O - \
| tar -xzC ${PWSH_DIRECTORY} \
Expand Down
9 changes: 7 additions & 2 deletions docs/descriptors/powershell_powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,15 +404,20 @@ All parameters are case-insensitive.
- Dockerfile commands :
```dockerfile
# Parent descriptor install
ARG TARGETPLATFORM
ARG PWSH_VERSION='latest'
ARG PWSH_DIRECTORY='/opt/microsoft/powershell'
RUN mkdir -p ${PWSH_DIRECTORY} \
RUN case ${TARGETPLATFORM} in \
"linux/amd64") POWERSHELL_ARCH=alpine-x64 ;; \
"linux/arm64") POWERSHELL_ARCH=arm64 ;; \
esac \
&& mkdir -p ${PWSH_DIRECTORY} \
&& curl --retry 5 --retry-delay 5 -s \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
https://api.github.com/repos/powershell/powershell/releases/${PWSH_VERSION} \
| grep browser_download_url \
| grep linux-alpine-x64 \
| grep linux-${POWERSHELL_ARCH} \
| cut -d '"' -f 4 \
| xargs -n 1 wget -O - \
| tar -xzC ${PWSH_DIRECTORY} \
Expand Down
9 changes: 7 additions & 2 deletions docs/descriptors/powershell_powershell_formatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,15 +405,20 @@ All parameters are case-insensitive.
- Dockerfile commands :
```dockerfile
# Parent descriptor install
ARG TARGETPLATFORM
ARG PWSH_VERSION='latest'
ARG PWSH_DIRECTORY='/opt/microsoft/powershell'
RUN mkdir -p ${PWSH_DIRECTORY} \
RUN case ${TARGETPLATFORM} in \
"linux/amd64") POWERSHELL_ARCH=alpine-x64 ;; \
"linux/arm64") POWERSHELL_ARCH=arm64 ;; \
esac \
&& mkdir -p ${PWSH_DIRECTORY} \
&& curl --retry 5 --retry-delay 5 -s \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
https://api.github.com/repos/powershell/powershell/releases/${PWSH_VERSION} \
| grep browser_download_url \
| grep linux-alpine-x64 \
| grep linux-${POWERSHELL_ARCH} \
| cut -d '"' -f 4 \
| xargs -n 1 wget -O - \
| tar -xzC ${PWSH_DIRECTORY} \
Expand Down
15 changes: 9 additions & 6 deletions docs/descriptors/spell_misspell.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,15 @@ Usage of misspell:
- Dockerfile commands :
```dockerfile
RUN ML_THIRD_PARTY_DIR="/third-party/misspell" \
&& mkdir -p ${ML_THIRD_PARTY_DIR} \
&& curl -L -o ${ML_THIRD_PARTY_DIR}/install-misspell.sh https://git.io/misspell \
&& sh .${ML_THIRD_PARTY_DIR}/install-misspell.sh \
&& find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete \
&& find /tmp -path '/tmp/tmp.*' -type f -name 'misspell*' -delete -o -type d -empty -delete
ARG TARGETPLATFORM
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
ML_THIRD_PARTY_DIR="/third-party/misspell" \
&& mkdir -p ${ML_THIRD_PARTY_DIR} \
&& curl -L -o ${ML_THIRD_PARTY_DIR}/install-misspell.sh https://git.io/misspell \
&& sh .${ML_THIRD_PARTY_DIR}/install-misspell.sh \
&& find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete \
&& find /tmp -path '/tmp/tmp.*' -type f -name 'misspell*' -delete -o -type d -empty -delete; \
fi

```
Loading

0 comments on commit 9b31731

Please sign in to comment.