Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Commit a962109

Browse files
committed
Merge pull request #47 in DEV/k8s-argus from DEV-59276-argus-dev-prof to develop
* commit 'e1c57b89b13dd22fa949f1ca7db2672f9e29874e': DEV-59276: Created dev profile dockerfile and updated makefile with dev profile
2 parents 21657de + e1c57b8 commit a962109

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Dockerfile.dev

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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"]

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ all:
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
1014
docs:
1115
cd docs/source && hugo

0 commit comments

Comments
 (0)