Compare commits

...

9 commits
1.2.3 ... main

Author SHA1 Message Date
62484b3681 Merge branch 'main' of ssh://git@code.brothertec.eu:1023/simono41/prometheus-jitsi-meet-exporter.git 2024-02-08 10:28:11 +01:00
dependabot[bot]
771354726b
⬆️ Bump the github-actions group with 1 update (#138)
Bumps the github-actions group with 1 update: [actions/cache](https://github.com/actions/cache).


Updates `actions/cache` from 3 to 4
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-19 08:39:55 +00:00
c9f1f3450d fix dockerfile for me 2024-01-10 14:18:00 +01:00
dependabot[bot]
8680f7e544
⬆️ Bump alpine from 3.18.5 to 3.19.0 (#137)
Bumps alpine from 3.18.5 to 3.19.0.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 08:20:29 +00:00
dependabot[bot]
ecdadc8f0b
⬆️ Bump the github-actions group with 1 update (#136)
Bumps the github-actions group with 1 update: [actions/setup-go](https://github.com/actions/setup-go).

- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 08:07:42 +00:00
dependabot[bot]
7a943cd22e
⬆️ Bump alpine from 3.18.4 to 3.18.5 (#135)
Bumps alpine from 3.18.4 to 3.18.5.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 08:42:16 +00:00
dependabot[bot]
004b344a2b
⬆️ Bump the gomod group with 1 update (#133)
Bumps the gomod group with 1 update: [github.com/google/go-cmp](https://github.com/google/go-cmp).

- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.5.9...v0.6.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-13 07:29:43 +00:00
dependabot[bot]
e40b9d53f0
⬆️ Bump alpine from 3.18.3 to 3.18.4 (#132)
Bumps alpine from 3.18.3 to 3.18.4.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-29 07:55:49 +00:00
louis
52eb8cb6d5 👷 Group Dependency Updates 2023-09-15 15:39:30 +02:00
6 changed files with 39 additions and 29 deletions

View file

@ -8,6 +8,10 @@ updates:
day: "friday" day: "friday"
time: "09:00" time: "09:00"
timezone: "Europe/Berlin" timezone: "Europe/Berlin"
groups:
gomod:
patterns:
- "*"
- package-ecosystem: "docker" - package-ecosystem: "docker"
directory: "/" directory: "/"
@ -24,3 +28,7 @@ updates:
day: "friday" day: "friday"
time: "09:00" time: "09:00"
timezone: "Europe/Berlin" timezone: "Europe/Berlin"
groups:
github-actions:
patterns:
- "*"

View file

@ -14,12 +14,12 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup go - name: Setup go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: "1.17.x" go-version: "1.17.x"
- name: Cache Go Dependencies - name: Cache Go Dependencies
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: | path: |
~/.cache/go-build ~/.cache/go-build
@ -43,12 +43,12 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup go - name: Setup go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: "1.17.x" go-version: "1.17.x"
- name: Cache Go Dependencies - name: Cache Go Dependencies
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: | path: |
~/.cache/go-build ~/.cache/go-build

View file

@ -13,12 +13,12 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup go - name: Setup go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: "1.17.x" go-version: "1.17.x"
- name: Cache Go Dependencies - name: Cache Go Dependencies
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: | path: |
~/.cache/go-build ~/.cache/go-build

View file

@ -1,28 +1,30 @@
FROM alpine:3.18.3 as builder # syntax=docker/dockerfile:1
# Build the application from source
FROM golang:1.21.4 AS build-stage
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /prometheus-jitsi-meet-exporter
WORKDIR /go/src/github.com/systemli/prometheus-jitsi-meet-exporter # Run the tests in the container
FROM build-stage AS run-test-stage
RUN go test -v ./...
ENV USER=appuser # Deploy the application binary into a lean image
ENV UID=10001 FROM gcr.io/distroless/base-debian11 AS build-release-stage
RUN adduser \ WORKDIR /
--disabled-password \
--gecos "" \
--home "/nonexistent" \
--shell "/sbin/nologin" \
--no-create-home \
--uid "${UID}" \
"${USER}"
COPY --from=build-stage /prometheus-jitsi-meet-exporter /prometheus-jitsi-meet-exporter
FROM scratch
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /etc/group /etc/group
COPY prometheus-jitsi-meet-exporter /prometheus-jitsi-meet-exporter
USER appuser:appuser
EXPOSE 9888 EXPOSE 9888
USER nonroot:nonroot
ENTRYPOINT ["/prometheus-jitsi-meet-exporter"] ENTRYPOINT ["/prometheus-jitsi-meet-exporter"]

2
go.mod
View file

@ -2,4 +2,4 @@ module github.com/systemli/prometheus-jitsi-meet-exporter
go 1.17 go 1.17
require github.com/google/go-cmp v0.5.9 require github.com/google/go-cmp v0.6.0

4
go.sum
View file

@ -1,2 +1,2 @@
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=