File tree 7 files changed +20
-3
lines changed
7 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 21
21
docker : ['scratch','ubi']
22
22
# The type of runner that the job will run on
23
23
runs-on : ubuntu-latest
24
+ env :
25
+ CGO_ENABLED : 1
26
+ GOEXPERIMENT : boringcrypto
24
27
name : ${{ matrix.docker }}
25
28
steps :
26
29
- name : Login to Quay.io
Original file line number Diff line number Diff line change 14
14
golangci :
15
15
name : lint
16
16
runs-on : ubuntu-latest
17
+ env :
18
+ CGO_ENABLED : 1
19
+ GOEXPERIMENT : boringcrypto
17
20
steps :
18
21
- name : Checkout repository
19
22
uses : actions/checkout@v3
Original file line number Diff line number Diff line change 1
1
go :
2
2
# This must match .circle/config.yml.
3
3
version : 1.18
4
+ cgo : true
4
5
repository :
5
6
path : github.com/prometheus-community/elasticsearch_exporter
6
7
build :
Original file line number Diff line number Diff line change 1
1
FROM quay.io/prometheus/golang-builder AS builder
2
2
3
+ ENV CGO_ENABLED=1
4
+ ENV GOEXPERIMENT=boringcrypto
5
+
3
6
ARG PROMU_VERSION=0.13.0
4
7
ADD https://github.com/prometheus/promu/releases/download/v${PROMU_VERSION}/promu-${PROMU_VERSION}.linux-amd64.tar.gz ./
5
8
RUN tar -xvzf promu-${PROMU_VERSION}.linux-amd64.tar.gz && mv promu-${PROMU_VERSION}.linux-amd64/promu /go/bin
@@ -8,7 +11,7 @@ ADD . /go/src/github.com/prometheus-community/elasticsearch_exporter
8
11
WORKDIR /go/src/github.com/prometheus-community/elasticsearch_exporter
9
12
10
13
RUN go mod download
11
- RUN make
14
+ RUN make
12
15
13
16
FROM scratch AS scratch
14
17
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ GO_VERSION ?= $(shell $(GO) version)
36
36
GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION))
37
37
PRE_GO_111 ?= $(shell echo $(GO_VERSION_NUMBER) | grep -E 'go1\.(10|[0-9])\.')
38
38
39
+ export CGO_ENABLED := 1
40
+ export GOEXPERIMENT := boringcrypto
41
+
39
42
PROMU := $(FIRST_GOPATH)/bin/promu
40
43
pkgs = ./...
41
44
Original file line number Diff line number Diff line change @@ -12,13 +12,15 @@ pipeline {
12
12
ARTIFACTORY_URL = ' docker.internal.sysdig.com'
13
13
EXPORTER = ' elasticsearch-exporter'
14
14
VERSION = ' 1.2.1'
15
+ CGO_ENABLED = ' 1'
16
+ GOEXPERIMENT = ' boringcrypto'
15
17
}
16
18
17
19
stages {
18
20
stage(' Pull image from artifactory' ) {
19
21
steps {
20
22
script {
21
- docker. withRegistry(" https://${ env.ARTIFACTORY_URL} " , registryCredential) {
23
+ docker. withRegistry(" https://${ env.ARTIFACTORY_URL} " , registryCredential) {
22
24
sh """ docker pull ${ env.ARTIFACTORY_URL} /${ env.EXPORTER} :${ env.VERSION} """
23
25
sh """ docker pull ${ env.ARTIFACTORY_URL} /${ env.EXPORTER} :${ env.VERSION} -ubi"""
24
26
}
@@ -40,4 +42,4 @@ pipeline {
40
42
}
41
43
}
42
44
}
43
- }
45
+ }
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ import (
23
23
24
24
"context"
25
25
26
+ _ "crypto/tls/fipsonly"
27
+
26
28
"github.com/go-kit/log/level"
27
29
"github.com/prometheus-community/elasticsearch_exporter/collector"
28
30
"github.com/prometheus-community/elasticsearch_exporter/pkg/clusterinfo"
You can’t perform that action at this time.
0 commit comments