Feature: non-blocking tracer, changed license (#57)

* refactor tracer, introduce worker to avoid un-blocker trace strategy

* fixed unit test and refactor dockerFile

* buffered events chan

* refactor yaml API core, initial web hook tracing implementations

* added banner

* changed license from GPL 3 to MIT

* Edit readme
This commit is contained in:
Mario Candela
2023-08-30 23:04:35 +02:00
committed by GitHub
parent 345e9ef9fd
commit 0794736bc5
12 changed files with 126 additions and 642 deletions

View File

@ -9,27 +9,21 @@ RUN apk add git
WORKDIR /build
# Copy and download dependency using go mod
COPY go.mod .
COPY go.sum .
# Download dependency
COPY . .
RUN go mod download
# Copy the code into the container
COPY . .
# Build the application
# Build
RUN go build -o main .
# Move to /dist directory as the place for resulting binary folder
WORKDIR /dist
# Copy binary from build to main folder
RUN cp /build/main .
# Build a small image
# Use scratch image as finally tiny container
FROM scratch
# copy the ca-certificate.crt from the builder stage
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /dist/main /