Skip to content

Commit

Permalink
Adds python tools: pylint and pycodestyle (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavin-stackrox authored Nov 28, 2023
1 parent 240e498 commit 222564d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
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
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

0 comments on commit 222564d

Please sign in to comment.