From 67445a2ba8b9abfbe427fff70a8b3d394fdbf025 Mon Sep 17 00:00:00 2001 From: Christopher Roberts Date: Fri, 8 Mar 2024 16:20:36 -0600 Subject: [PATCH] re-commit --- README.md | 9 +++++++-- build/docker/Dockerfile | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2a62917..1ae7f79 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,6 @@ Binary downloads of the exporter can be found on the [Releases](https://github.c The following commands describe how to run a typical build : ```shell - # clone the repository git clone git@github.com:PureStorage-OpenConnect/pure-fa-openmetrics-exporter.git @@ -54,7 +53,13 @@ cd pure-fa-openmetrics-exporter make build . ``` -The newly built exporter executable can be found in the ./out/bin directory. +The newly built exporter binary can be found in the ./out/bin directory. + +Optionally, to build the binary with the vendor cache, you may use + +```` +make build-with-vendor +```` ### Docker Image diff --git a/build/docker/Dockerfile b/build/docker/Dockerfile index 040984b..573ba37 100644 --- a/build/docker/Dockerfile +++ b/build/docker/Dockerfile @@ -8,7 +8,7 @@ COPY go.mod go.sum ./ RUN go mod download && go mod verify COPY . . -RUN CGO_ENABLED=1 go build -a -tags 'netgo osusergo static_build' -ldflags="-X main.version=v$VERSION" -v -o /usr/local/bin/pure-fa-om-exporter cmd/fa-om-exporter/main.go +RUN CGO_ENABLED=1 go build -mod=readonly -a -tags 'netgo osusergo static_build' -ldflags="-X main.version=v$VERSION" -v -o /usr/local/bin/pure-fa-om-exporter cmd/fa-om-exporter/main.go # alpine is used here as it seems to be the minimal image that passes quay.io vulnerability scan