Merge branch 'master' of github.com:status-im/p2p-health-bot

This commit is contained in:
Ivan Danyliuk 2018-06-28 16:41:20 +02:00
commit ef8dcab086
No known key found for this signature in database
GPG Key ID: 97ED33CE024E1DBF
2 changed files with 10 additions and 1 deletions

View File

@ -15,6 +15,10 @@ RUN cd ${REPO} && go get && go build
# Copy the binary to the second image
FROM alpine:latest
LABEL source="https://github.com/status-im/p2p-health-bot"
LABEL description="This bot measures latency for Status messages (complete roundtrip)."
LABEL maintainer="ivand@status.im"
RUN apk add --no-cache ca-certificates bash
ENV REPO=/go/src/github.com/status-im/p2p-health-bot

View File

@ -1,4 +1,9 @@
COMMIT = $(shell git rev-parse --short HEAD)
IMAGE_NAME = 'statusteam/p2p-health-bot'
all: docker-image
docker-image:
docker build -t statusteam/p2p-health-bot .
docker build . \
-t $(IMAGE_NAME):$(COMMIT) \
-t $(IMAGE_NAME):latest