Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update library version and container versions to make it work with latest version of Kubearmor #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
### Builder

FROM golang:1.15.2-alpine3.12 as builder
FROM golang:1.22-alpine3.20 AS builder

WORKDIR /usr/src/kubearmor-prometheus-exporter

RUN apk update
RUN apk add build-base

COPY . .

RUN go mod tidy
RUN GOOS=linux GOARCH=amd64 go build -a -ldflags '-s -w' -o kubearmor-prometheus-exporter main.go

### Make executable image

FROM alpine:3.12
FROM alpine:3.20.3

COPY --from=builder /usr/src/kubearmor-prometheus-exporter/kubearmor-prometheus-exporter /kubearmor-prometheus-exporter

Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/kubearmor/kubearmor-prometheus-exporter

go 1.15
go 1.21

require (
github.com/kubearmor/KubeArmor/protobuf v0.0.0-20210707153129-f4fba7cf59b6
github.com/prometheus/client_golang v1.11.0
google.golang.org/grpc v1.38.0
github.com/kubearmor/KubeArmor/protobuf v0.0.0-20240920075411-bdb092b48b74
github.com/prometheus/client_golang v1.20.4
google.golang.org/grpc v1.67.0
)