vctl-docs icon indicating copy to clipboard operation
vctl-docs copied to clipboard

`vctl build` performance issue.

Open david9991 opened this issue 4 years ago • 2 comments

I am doing a multi-stage build, It always stuck at

INFO[0215] Unpacking rootfs as cmd ... requires it. 

step for a very long time for each build stage.

david9991 avatar Jun 12 '20 01:06 david9991

It does succeed tho? Is the Dockerfile something we can take a look at, or at least have an example of?

mikeroySoft avatar Jun 13 '20 19:06 mikeroySoft

It works for some build stages, but extremely slow, and finally it leads to issue #22.

# Build stage 1
FROM registry/sdk-image:latest AS builder // Image with LLVM project in.
RUN go get github.com/brutella/can
RUN mkdir -p /go/src/example.com/compile-farm
WORKDIR /go/src/example.com/compile-farm
COPY . .
RUN go install example.com/compile-farm

#Build stage 2
FROM registry/compile-farm-runner:latest
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
WORKDIR /usr/local/bin
COPY --from=builder /go/bin/compile-farm .
COPY --from=builder /go/src/example.com/compile-farm/build-*.sh /usr/local/bin/
CMD ["compile-farm", "-server"]

david9991 avatar Jun 14 '20 02:06 david9991