Skip to content

Commit

Permalink
feat: add script-exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Dec 29, 2023
1 parent 7a92099 commit e7c9bc0
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
23 changes: 23 additions & 0 deletions apps/script-exporter/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ARG TARGETPLATFORM
ARG VERSION
FROM ricoberger/script_exporter:v${VERSION} as source
FROM public.ecr.aws/bitnami/kubectl:1.29.0 as kubectl

FROM ghcr.io/deedee-ops/alpine:3.19.0

ARG TARGETPLATFORM
ARG VERSION
ARG CHANNEL

COPY --from=source /bin/script_exporter /usr/bin/script_exporter
COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/bin/kubectl

RUN touch /config/config.yaml

USER 65000:65000
EXPOSE 9469
VOLUME ["/tmp"]
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/base-entrypoint.sh", "/usr/bin/script_exporter"]
CMD ["-config.file", "/config/config.yaml"]

LABEL org.opencontainers.image.source="https://github.com/ricoberger/script_exporter/"
26 changes: 26 additions & 0 deletions apps/script-exporter/ci/goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# https://github.com/goss-org/goss/blob/master/docs/manual.md#group
group:
abc:
exists: true
gid: 65000
# https://github.com/goss-org/goss/blob/master/docs/manual.md#file
file:
/usr/bin/kubectl:
exists: true
/usr/bin/script_exporter:
exists: true
# https://github.com/goss-org/goss/blob/master/docs/manual.md#mount
mount:
/tmp:
exists: true
# https://github.com/goss-org/goss/blob/master/docs/manual.md#port
port:
tcp6:9469:
listening: true
# https://github.com/goss-org/goss/blob/master/docs/manual.md#user
user:
abc:
exists: true
uid: 65000
gid: 65000
17 changes: 17 additions & 0 deletions apps/script-exporter/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"app": "script-exporter",
"base": false,
"testMuteCmd": false,
"channels": [
{
"name": "stable",
"renovate::dataSource": "docker",
"renovate::depName": "ricoberger/script_exporter",
"version": "2.16.0",
"platforms": [
"linux/amd64",
"linux/arm64"
]
}
]
}

0 comments on commit e7c9bc0

Please sign in to comment.