diff --git a/Dockerfile b/Dockerfile index 098ba2a..8738b7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21-alpine3.18 AS builder +FROM golang:1.21-alpine3.19 AS builder WORKDIR /app @@ -7,7 +7,7 @@ COPY . . RUN go build -o /go/bin/immich-exporter ./src -FROM alpine:3.18 +FROM alpine:3.19 COPY --from=builder /go/bin/immich-exporter /go/bin/immich-exporter diff --git a/makefile b/Makefile similarity index 87% rename from makefile rename to Makefile index 9109588..ecb6526 100644 --- a/makefile +++ b/Makefile @@ -1,14 +1,20 @@ build: go build -o ./qbittorrent-exporter.out ./src + dev : go run ./src + dev-env : go run ./src -e + format : go fmt ./src + lint: docker run --rm -v ./:/app -w /app golangci/golangci-lint:latest golangci-lint run -v + test: go test -v ./src/tests + update: - go get -u ./src && go mod tidy \ No newline at end of file + go get -u ./src && go mod tidy diff --git a/go.mod b/go.mod index 8d1135d..187b18a 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/joho/godotenv v1.5.1 - github.com/prometheus/client_golang v1.17.0 + github.com/prometheus/client_golang v1.18.0 github.com/sirupsen/logrus v1.9.3 ) diff --git a/go.sum b/go.sum index a1671f3..3a8fc5b 100644 --- a/go.sum +++ b/go.sum @@ -13,8 +13,8 @@ github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvls github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_golang v1.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= -github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= +github.com/prometheus/client_golang v1.18.0 h1:HzFfmkOzH5Q8L8G+kSJKUx5dtG87sewO+FoDDqP5Tbk= +github.com/prometheus/client_golang v1.18.0/go.mod h1:T+GXkCk5wSJyOqMIzVgvvjFDlkOQntgjkJWKrN5txjA= github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM=