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

Adds python tools: pylint and pycodestyle #193

Merged
merged 9 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- uses: ./.github/actions/build-and-push-image
with:
dockerfile-path: images/scanner-build.Dockerfile
image-flavor: "scanner-build"

build-and-push-scanner-test:
Expand Down
1 change: 1 addition & 0 deletions images/scanner-build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ ARG OSSLS_SHA256=afdec2fa63b27ced4aeb3297399d45b0f06861e6ebc8cb2431b9653b7f11332
RUN fetch --repo="https://github.com/stackrox/ossls" --tag="${OSSLS_VERSION}" --release-asset="ossls_linux_amd64" . && \
echo "${OSSLS_SHA256} *ossls_linux_amd64" | sha256sum -c - && \
install ossls_linux_amd64 /usr/bin/ossls && \
rm ossls_linux_amd64 && \
ossls version

WORKDIR /go/src/github.com/stackrox/scanner
8 changes: 8 additions & 0 deletions images/stackrox-test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN dnf update -y && \
lz4 \
openssl \
parallel \
python3-devel \
unzip \
xmlstarlet \
xz \
Expand Down Expand Up @@ -156,6 +157,13 @@ RUN set -ex \
&& rm "vault_${VAULT_VERSION}_linux_amd64.zip" \
&& vault --version

# Add python development tooling
gavin-stackrox marked this conversation as resolved.
Show resolved Hide resolved
ARG PYCODESTYLE_VERSION=2.10.0
ARG PYLINT_VERSION=2.13.9
RUN set -ex \
&& pip3 install pycodestyle=="${PYCODESTYLE_VERSION}" \
pylint=="${PYLINT_VERSION}"

RUN \
mv /bin/bash /bin/real-bash && \
mv /bin/bash-wrapper /bin/bash