This repository was archived by the owner on Jan 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM golang:1.14 as build
2+ WORKDIR $GOPATH/src/github.com/logicmonitor/k8s-argus
3+ ARG VERSION
4+ COPY ./ ./
5+ RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /argus -ldflags "-X \"github.com/logicmonitor/k8s-argus/pkg/constants.Version=${VERSION}\""
6+
7+ FROM alpine:3.6
8+ LABEL maintainer="LogicMonitor <
[email protected] >"
9+ RUN apk --update add ca-certificates \
10+ && rm -rf /var/cache/apk/* \
11+ && rm -rf /var/lib/apk/*
12+ WORKDIR /app
13+ COPY --from=build /argus /bin
14+
15+ ENTRYPOINT ["argus"]
Original file line number Diff line number Diff line change 66 docker build --build-arg VERSION=$(VERSION ) -t $(NAMESPACE ) /$(REPOSITORY ) :v2latest .
77 docker tag $(NAMESPACE ) /$(REPOSITORY ) :v2latest $(NAMESPACE ) /$(REPOSITORY ) :$(VERSION )
88
9+ dev :
10+ docker build --build-arg VERSION=$(VERSION ) -t $(NAMESPACE ) /$(REPOSITORY ) :v2latest -f Dockerfile.dev .
11+ docker tag $(NAMESPACE ) /$(REPOSITORY ) :v2latest $(NAMESPACE ) /$(REPOSITORY ) :$(VERSION )
12+
913.PHONY : docs
1014docs :
1115 cd docs/source && hugo
You can’t perform that action at this time.
0 commit comments