Skip to content

Commit

Permalink
✨ implement label selector, add static reports (#29)
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <[email protected]>
  • Loading branch information
pranavgaikwad authored Aug 21, 2023
1 parent d1c612e commit 3f97feb
Show file tree
Hide file tree
Showing 11 changed files with 609 additions and 181 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ FROM quay.io/konveyor/windup-shim:latest as shim

FROM registry.access.redhat.com/ubi9-minimal as rulesets

RUN microdnf -y install git
RUN git clone https://github.com/konveyor/rulesets
RUN git clone https://github.com/windup/windup-rulesets
RUN microdnf -y install git &&\
git clone https://github.com/konveyor/rulesets &&\
git clone https://github.com/windup/windup-rulesets -b 6.2.3.Final

FROM quay.io/konveyor/static-report as static-report

# Build the manager binary
FROM golang:1.18 as builder
Expand All @@ -26,12 +28,13 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o kantra main.go

FROM quay.io/konveyor/analyzer-lsp:latest

RUN mkdir /opt/rulesets /opt/rulesets/input /opt/openrewrite /opt/input /opt/input/example
RUN touch /opt/input/settings.json /opt/input/output.yaml
RUN mkdir /opt/rulesets /opt/rulesets/input /opt/openrewrite /opt/input /opt/output

COPY --from=builder /workspace/kantra /usr/local/bin/kantra
COPY --from=shim /usr/bin/windup-shim /usr/local/bin
COPY --from=rulesets /rulesets/default/generated /opt/rulesets
COPY --from=rulesets /windup-rulesets/rules/rules-reviewed/openrewrite /opt/openrewrite
COPY --from=static-report /usr/bin/js-bundle-generator /usr/local/bin
COPY --from=static-report /usr/local/static-report /usr/local/static-report

ENTRYPOINT ["kantra"]
Loading

0 comments on commit 3f97feb

Please sign in to comment.