Skip to content

Commit

Permalink
Added jiralert docker image. (#22)
Browse files Browse the repository at this point in the history
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
  • Loading branch information
bwplotka authored and free committed Mar 8, 2019
1 parent c9d4563 commit 61767ce
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM quay.io/prometheus/busybox:latest

COPY jiralert /bin/jiralert

ENTRYPOINT [ "/bin/jiralert" ]

11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ RELEASE_DIR := release/$(RELEASE)
PACKAGES := $(shell $(GO) list ./... | grep -v /vendor/)
STATICCHECK_IGNORE :=

DOCKER_IMAGE_NAME := jiralert

all: clean format staticcheck build

clean:
Expand All @@ -26,7 +28,14 @@ staticcheck: get_staticcheck

build:
@echo ">> building binaries"
@GOOS=linux GOARCH=amd64 $(GO) build -ldflags "-X main.Version=$(VERSION)" github.com/free/jiralert/cmd/jiralert
@# CGO must be disabled to run in busybox container.
@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GO) build -ldflags "-X main.Version=$(VERSION)" github.com/free/jiralert/cmd/jiralert


# docker builds docker with no tag.
docker: build
@echo ">> building docker image '${DOCKER_IMAGE_NAME}'"
@docker build -t "${DOCKER_IMAGE_NAME}" .

tarball:
@echo ">> packaging release $(VERSION)"
Expand Down

0 comments on commit 61767ce

Please sign in to comment.