Make node_exporter statically buildable for linux/amd64
This commit is contained in:
parent
d890b63fb5
commit
3176a9102c
|
@ -1,7 +1,8 @@
|
||||||
go: 1.5.4
|
go: 1.6.2
|
||||||
repository:
|
repository:
|
||||||
path: github.com/prometheus/node_exporter
|
path: github.com/prometheus/node_exporter
|
||||||
build:
|
build:
|
||||||
|
flags: -a -tags 'netgo static_build'
|
||||||
ldflags: |
|
ldflags: |
|
||||||
-X main.Version={{.Version}}
|
-X main.Version={{.Version}}
|
||||||
-X {{repoPath}}/collector.Version={{.Version}}
|
-X {{repoPath}}/collector.Version={{.Version}}
|
||||||
|
@ -24,4 +25,5 @@ crossbuild:
|
||||||
- linux/arm
|
- linux/arm
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
- netbsd/arm
|
- netbsd/arm
|
||||||
|
- linux/ppc64
|
||||||
- linux/ppc64le
|
- linux/ppc64le
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM quay.io/prometheus/busybox:glibc
|
FROM quay.io/prometheus/busybox:latest
|
||||||
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
|
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
|
||||||
|
|
||||||
COPY node_exporter /bin/node_exporter
|
COPY node_exporter /bin/node_exporter
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
# Node exporter [![Build Status](https://travis-ci.org/prometheus/node_exporter.svg)][travis]
|
# Node exporter [![Build Status](https://travis-ci.org/prometheus/node_exporter.svg)][travis]
|
||||||
|
|
||||||
[![CircleCI](https://circleci.com/gh/prometheus/node_exporter/tree/master.svg?style=shield)][circleci]
|
[![CircleCI](https://circleci.com/gh/prometheus/node_exporter/tree/master.svg?style=shield)][circleci]
|
||||||
[![Image Size & Layers](https://imagelayers.io/badge/prom/node-exporter:master.svg)][imagelayers]
|
[![Docker Repository on Quay](https://quay.io/repository/prometheus/node-exporter/status)][quay]
|
||||||
[![Docker Stars](https://img.shields.io/docker/stars/prom/node-exporter.svg)][hub]
|
[![Docker Pulls](https://img.shields.io/docker/pulls/prom/node-exporter.svg?maxAge=604800)][hub]
|
||||||
[![Docker Pulls](https://img.shields.io/docker/pulls/prom/node-exporter.svg)][hub]
|
|
||||||
|
|
||||||
Prometheus exporter for machine metrics, written in Go with pluggable metric
|
Prometheus exporter for machine metrics, written in Go with pluggable metric
|
||||||
collectors.
|
collectors.
|
||||||
|
@ -107,4 +106,4 @@ docker run -d -p 9100:9100 --net="host" prom/node-exporter
|
||||||
[travis]: https://travis-ci.org/prometheus/node_exporter
|
[travis]: https://travis-ci.org/prometheus/node_exporter
|
||||||
[hub]: https://hub.docker.com/r/prom/node-exporter/
|
[hub]: https://hub.docker.com/r/prom/node-exporter/
|
||||||
[circleci]: https://circleci.com/gh/prometheus/node_exporter
|
[circleci]: https://circleci.com/gh/prometheus/node_exporter
|
||||||
[imagelayers]: https://imagelayers.io/?images=prom/node-exporter:master
|
[quay]: https://quay.io/repository/prometheus/node-exporter
|
||||||
|
|
Loading…
Reference in New Issue