1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# Copyright 2020 New Relic Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# This Dockerfile builds a docker image which prints utilization information.
# It is designed to be build from the top level (go-agent directory).
#
# To build:
# docker build -t utilization -f internal/tools/utilization/Dockerfile .
#
# Then to run:
# docker run utilization
#
FROM golang:1
ENV GOPATH /tmp/gopath
RUN mkdir -p $GOPATH/src/github.com/newrelic/go-agent/
COPY . $GOPATH/src/github.com/newrelic/go-agent/
CMD go run ${GOPATH}/src/github.com/newrelic/go-agent/internal/tools/utilization/main.go
|