-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from kumarabd/kumarabd/feature/smi-grpc-fix
modified smi-conformance build
- Loading branch information
Showing
8 changed files
with
193 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
FROM golang:1.14-alpine3.11 as build-img | ||
LABEL maintainer "Layer5.io" | ||
|
||
ENV GO111MODULE=off | ||
|
||
RUN apk update && apk add --no-cache git libc-dev gcc pkgconf && mkdir /home/meshery | ||
COPY ${PWD} /go/src/github.com/layer5io/learn-layer5/smi-conformance/ | ||
WORKDIR /go/src/github.com/layer5io/learn-layer5/smi-conformance/ | ||
# RUN git rev-parse HEAD > /home/meshery/version | ||
# RUN git describe --tags `git rev-list --tags --max-count=1` >> /home/com/version | ||
|
||
RUN go mod vendor && go build -a -ldflags "-s -w" -o /home/meshery/smi_conformance main.go | ||
|
||
FROM alpine:latest | ||
|
||
RUN apk --no-cache add ca-certificates | ||
RUN apk --no-cache add ca-certificates && mkdir /home/test-yamls && mkdir /home/test-yamls/traffic-access && mkdir /home/test-yamls/traffic-spec && mkdir /home/test-yamls/traffic-split | ||
COPY --from=build-img /home/meshery/** /home/ | ||
COPY --from=build-img /go/src/github.com/layer5io/learn-layer5/smi-conformance/test-gen/test-yamls/traffic-access/** /home/test-yamls/traffic-access/ | ||
COPY --from=build-img /go/src/github.com/layer5io/learn-layer5/smi-conformance/test-gen/test-yamls/test-split/** /home/test-yamls/traffic-split/ | ||
COPY --from=build-img /go/src/github.com/layer5io/learn-layer5/smi-conformance/test-gen/test-yamls/test-spec/** /home/test-yamls/traffic-spec/ | ||
WORKDIR /home/ | ||
EXPOSE 10008 | ||
CMD ["sh","-c","./smi_conformance"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.