Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated backport of #1226: Pin markdownlint-cli version #1228: Pin gitlint version #1499: Fix linting image build failure due to PEP 668 #1513

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions package/Dockerfile.shipyard-linting
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH} \
# yamllint | YAML linting
# yq | YAML processing

ENV MARKDOWNLINT_VERSION=0.33.0 \
GITLINT_VERSION=0.19.1

RUN apk add --no-cache bash findutils git grep make nodejs py3-six shellcheck upx yamllint yq && \
apk add --no-cache --virtual installers npm py3-pip && \
npm install -g markdownlint-cli && \
pip install gitlint && \
npm install -g markdownlint-cli@${MARKDOWNLINT_VERSION} && \
pip install --break-system-packages gitlint==${GITLINT_VERSION} && \
find /usr/bin/ -type f -executable -newercc /proc -size +1M \( -execdir upx {} \; -o -true \) && \
find /usr/lib/ -name __pycache__ -type d -exec rm -rf {} + && \
apk del installers
Expand Down
Loading