forked from konveyor/analyzer-lsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testing.Dockerfile
32 lines (26 loc) · 1.16 KB
/
testing.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM golang:1.18 as builder
WORKDIR /analyzer-lsp
COPY cmd /analyzer-lsp/cmd
COPY engine /analyzer-lsp/engine
COPY hubapi /analyzer-lsp/hubapi
COPY jsonrpc2 /analyzer-lsp/jsonrpc2
COPY lsp /analyzer-lsp/lsp
COPY parser /analyzer-lsp/parser
COPY provider /analyzer-lsp/provider
COPY tracing /analyzer-lsp/tracing
COPY external-providers /analyzer-lsp/external-providers
COPY go.mod /analyzer-lsp/go.mod
COPY go.sum /analyzer-lsp/go.sum
COPY Makefile /analyzer-lsp/Makefile
RUN make build
# The unofficial base image w/ jdtls and gopls installed
FROM quay.io/konveyor/jdtls-server-base
COPY --from=builder /analyzer-lsp/konveyor-analyzer /usr/bin/konveyor-analyzer
COPY --from=builder /analyzer-lsp/external-providers/golang-external-provider/golang-external-provider /usr/bin/golang-external-provider
COPY provider_container_settings.json /analyzer-lsp/provider_settings.json
COPY rule-example.yaml /analyzer-lsp/rule-example.yaml
COPY demo-output.yaml /demo-output.yaml
COPY examples /analyzer-lsp/examples
WORKDIR /analyzer-lsp
RUN /bin/bash -c "konveyor-analyzer --output-file violation_output.yaml"
CMD [ "diff", "../demo-output.yaml", "violation_output.yaml" ]