Initial delivery of metrics code (#81)
* Initial delivery of metrics code * Fix build issues * Fix build issue with go vet
This commit is contained in:
committed by
Rob Parker
parent
e251839639
commit
a4b9a9abaf
@@ -17,11 +17,12 @@ ARG BASE_IMAGE=ubuntu:16.04
|
||||
###############################################################################
|
||||
# Build stage to build Go code
|
||||
###############################################################################
|
||||
FROM golang:1.10 as builder
|
||||
FROM mq-golang-sdk:9.0.5.0-x86_64-ubuntu-16.04 as builder
|
||||
WORKDIR /go/src/github.com/ibm-messaging/mq-container/
|
||||
COPY cmd/ ./cmd
|
||||
COPY internal/ ./internal
|
||||
COPY vendor/ ./vendor
|
||||
COPY test/ ./test
|
||||
RUN go build ./cmd/runmqserver/
|
||||
RUN go build ./cmd/chkmqready/
|
||||
RUN go build ./cmd/chkmqhealthy/
|
||||
@@ -30,6 +31,7 @@ RUN go test -v ./cmd/runmqserver/
|
||||
RUN go test -v ./cmd/chkmqready/
|
||||
RUN go test -v ./cmd/chkmqhealthy/
|
||||
RUN go test -v ./internal/...
|
||||
RUN go vet ./cmd/... ./internal/... ./test/...
|
||||
|
||||
###############################################################################
|
||||
# Main build stage, to build MQ image
|
||||
|
||||
Reference in New Issue
Block a user