add fleet

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-07-21 20:02:26 -04:00
parent 1af7602068
commit 5e3720e8fa
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 34 additions and 0 deletions

33
fleet/Dockerfile Normal file
View File

@ -0,0 +1,33 @@
FROM golang:alpine as builder
MAINTAINER Jessica Frazelle <jess@linux.com>
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN apk add --no-cache \
ca-certificates \
gcc \
git \
make \
npm \
yarn
ENV FLEET_VERSION 2.0.0-rc3
RUN git clone --depth 1 --branch "${FLEET_VERSION}" https://github.com/kolide/fleet.git /go/src/github.com/kolide/fleet
WORKDIR /go/src/github.com/kolide/fleet
RUN make deps generate
RUN CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o /usr/bin/fleet ./cmd/fleet
RUN CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o /usr/bin/fleetctl ./cmd/fleetctl
FROM scratch
COPY --from=builder /usr/bin/fleet /usr/bin/fleet
COPY --from=builder /usr/bin/fleetctl /usr/bin/fleetctl
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
ENTRYPOINT [ "fleet" ]
CMD [ "--help" ]

View File

@ -101,6 +101,7 @@ hashicorp/consul
coredns/coredns
CouchPotato/CouchPotatoServer
curl/curl
kolide/fleet
GoogleCloudPlatform/cloud-sdk-docker
google/gitiles
bazelbuild/bazel