mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-08 09:37:58 +00:00
update: httploader now is named probeloader and uses the falcoctl
Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com> Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
parent
af27c2bea5
commit
0c6d21eca4
@ -1,15 +0,0 @@
|
|||||||
FROM golang:alpine AS build
|
|
||||||
|
|
||||||
RUN apk --no-cache add build-base git bzr mercurial gcc ca-certificates
|
|
||||||
|
|
||||||
COPY ./pkg /src/pkg/
|
|
||||||
COPY ./cmd /src/cmd/
|
|
||||||
COPY ./go.mod ./go.sum /src/
|
|
||||||
|
|
||||||
RUN cd /src && CGO_ENABLED=0 GOOS=linux go build -a -o httploader -ldflags '-extldflags "-static"' cmd/httploader/main.go
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
LABEL maintainer="opensource@sysdig.com"
|
|
||||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
||||||
COPY --from=build /src/httploader /httploader
|
|
||||||
CMD [ "/httploader" ]
|
|
18
docker/kernel/probeloader/Dockerfile
Normal file
18
docker/kernel/probeloader/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
FROM golang:1.13-alpine AS build
|
||||||
|
ARG FALCOCTL_REF=feat/probe-installer
|
||||||
|
|
||||||
|
RUN apk --no-cache add build-base git gcc ca-certificates
|
||||||
|
|
||||||
|
RUN git clone https://github.com/falcosecurity/falcoctl.git /falcoctl
|
||||||
|
|
||||||
|
WORKDIR /falcoctl
|
||||||
|
|
||||||
|
RUN git checkout ${FALCOCTL_REF}
|
||||||
|
RUN go mod vendor
|
||||||
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -o falcoctl -ldflags '-extldflags "-static"' .
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
LABEL maintainer="opensource@sysdig.com"
|
||||||
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||||
|
COPY --from=build /falcoctl/falcoctl /falcoctl
|
||||||
|
CMD ["/falcoctl", "install", "probe"]
|
Loading…
Reference in New Issue
Block a user