diff --git a/rpms/bind_exporter/0.8.0/release b/rpms/bind_exporter/0.8.0/release new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/rpms/bind_exporter/0.8.0/release @@ -0,0 +1 @@ +1 diff --git a/rpms/bind_exporter/Dockerfile b/rpms/bind_exporter/Dockerfile new file mode 100644 index 0000000..c550395 --- /dev/null +++ b/rpms/bind_exporter/Dockerfile @@ -0,0 +1,21 @@ +FROM git.unkin.net/unkin/almalinux9-rpmbuilder:latest + +# Create output directory for RPMs +RUN mkdir -p /app/dist + +# Set working directory +WORKDIR /app + +ARG PACKAGE_RELEASE +ENV PACKAGE_RELEASE=${PACKAGE_RELEASE} +ARG PACKAGE_VERSION +ENV PACKAGE_VERSION=${PACKAGE_VERSION} + +# Copy nfpm.yaml from the context into the container +COPY resources /app/resources + +# Download the required files +RUN curl --output - -L https://github.com/prometheus-community/bind_exporter/releases/download/v${PACKAGE_VERSION}/bind_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf - + +# Default command to build RPMs +CMD /app/resources/build.sh diff --git a/rpms/bind_exporter/resources/build.sh b/rpms/bind_exporter/resources/build.sh new file mode 100755 index 0000000..ae730e3 --- /dev/null +++ b/rpms/bind_exporter/resources/build.sh @@ -0,0 +1,2 @@ +#!/usr/bin/bash +nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm diff --git a/rpms/bind_exporter/resources/nfpm.yaml b/rpms/bind_exporter/resources/nfpm.yaml new file mode 100644 index 0000000..077d8f6 --- /dev/null +++ b/rpms/bind_exporter/resources/nfpm.yaml @@ -0,0 +1,37 @@ +# nfpm.yaml + +name: bind_exporter +version: ${PACKAGE_VERSION} +release: ${PACKAGE_RELEASE} +arch: amd64 +platform: linux +section: default +priority: extra +description: "Prometheus exporter for BIND" +maintainer: Prometheus +homepage: https://github.com/prometheus-community/bind_exporter +license: Apache-2.0 license + +disable_globbing: false + +replaces: + - bind_exporter + +provides: + - bind_exporter + +# Files to include in the package +contents: + - src: /app/bind_exporter + dst: /usr/bin/bind_exporter + file_info: + mode: 0755 + owner: root + group: root + +# Scripts to run during installation/removal (optional) +# scripts: +# preinstall: ./scripts/preinstall.sh +# postinstall: ./scripts/postinstall.sh +# preremove: ./scripts/preremove.sh +# postremove: ./scripts/postremove.sh diff --git a/rpms/pgbouncer_exporter/0.11.0/release b/rpms/pgbouncer_exporter/0.11.0/release new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/rpms/pgbouncer_exporter/0.11.0/release @@ -0,0 +1 @@ +1 diff --git a/rpms/pgbouncer_exporter/Dockerfile b/rpms/pgbouncer_exporter/Dockerfile new file mode 100644 index 0000000..853637d --- /dev/null +++ b/rpms/pgbouncer_exporter/Dockerfile @@ -0,0 +1,21 @@ +FROM git.unkin.net/unkin/almalinux9-rpmbuilder:latest + +# Create output directory for RPMs +RUN mkdir -p /app/dist + +# Set working directory +WORKDIR /app + +ARG PACKAGE_RELEASE +ENV PACKAGE_RELEASE=${PACKAGE_RELEASE} +ARG PACKAGE_VERSION +ENV PACKAGE_VERSION=${PACKAGE_VERSION} + +# Copy nfpm.yaml from the context into the container +COPY resources /app/resources + +# Download the required files +RUN curl --output - -L https://github.com/prometheus-community/pgbouncer_exporter/releases/download/v${PACKAGE_VERSION}/pgbouncer_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf - + +# Default command to build RPMs +CMD /app/resources/build.sh diff --git a/rpms/pgbouncer_exporter/resources/build.sh b/rpms/pgbouncer_exporter/resources/build.sh new file mode 100755 index 0000000..ae730e3 --- /dev/null +++ b/rpms/pgbouncer_exporter/resources/build.sh @@ -0,0 +1,2 @@ +#!/usr/bin/bash +nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm diff --git a/rpms/pgbouncer_exporter/resources/nfpm.yaml b/rpms/pgbouncer_exporter/resources/nfpm.yaml new file mode 100644 index 0000000..6cce9ce --- /dev/null +++ b/rpms/pgbouncer_exporter/resources/nfpm.yaml @@ -0,0 +1,37 @@ +# nfpm.yaml + +name: pgbouncer_exporter +version: ${PACKAGE_VERSION} +release: ${PACKAGE_RELEASE} +arch: amd64 +platform: linux +section: default +priority: extra +description: "Prometheus exporter for PgBouncer" +maintainer: Prometheus +homepage: https://github.com/prometheus-community/pgbouncer_exporter +license: Apache-2.0 license + +disable_globbing: false + +replaces: + - pgbouncer_exporter + +provides: + - pgbouncer_exporter + +# Files to include in the package +contents: + - src: /app/pgbouncer_exporter + dst: /usr/bin/pgbouncer_exporter + file_info: + mode: 0755 + owner: root + group: root + +# Scripts to run during installation/removal (optional) +# scripts: +# preinstall: ./scripts/preinstall.sh +# postinstall: ./scripts/postinstall.sh +# preremove: ./scripts/preremove.sh +# postremove: ./scripts/postremove.sh diff --git a/rpms/postgres_exporter/0.17.1/release b/rpms/postgres_exporter/0.17.1/release new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/rpms/postgres_exporter/0.17.1/release @@ -0,0 +1 @@ +1 diff --git a/rpms/postgres_exporter/Dockerfile b/rpms/postgres_exporter/Dockerfile new file mode 100644 index 0000000..f50a744 --- /dev/null +++ b/rpms/postgres_exporter/Dockerfile @@ -0,0 +1,21 @@ +FROM git.unkin.net/unkin/almalinux9-rpmbuilder:latest + +# Create output directory for RPMs +RUN mkdir -p /app/dist + +# Set working directory +WORKDIR /app + +ARG PACKAGE_RELEASE +ENV PACKAGE_RELEASE=${PACKAGE_RELEASE} +ARG PACKAGE_VERSION +ENV PACKAGE_VERSION=${PACKAGE_VERSION} + +# Copy nfpm.yaml from the context into the container +COPY resources /app/resources + +# Download the required files +RUN curl --output - -L https://github.com/prometheus-community/postgres_exporter/releases/download/v${PACKAGE_VERSION}/postgres_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf - + +# Default command to build RPMs +CMD /app/resources/build.sh diff --git a/rpms/postgres_exporter/resources/build.sh b/rpms/postgres_exporter/resources/build.sh new file mode 100755 index 0000000..ae730e3 --- /dev/null +++ b/rpms/postgres_exporter/resources/build.sh @@ -0,0 +1,2 @@ +#!/usr/bin/bash +nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm diff --git a/rpms/postgres_exporter/resources/nfpm.yaml b/rpms/postgres_exporter/resources/nfpm.yaml new file mode 100644 index 0000000..f73146c --- /dev/null +++ b/rpms/postgres_exporter/resources/nfpm.yaml @@ -0,0 +1,37 @@ +# nfpm.yaml + +name: postgres_exporter +version: ${PACKAGE_VERSION} +release: ${PACKAGE_RELEASE} +arch: amd64 +platform: linux +section: default +priority: extra +description: "A PostgreSQL metric exporter for Prometheus" +maintainer: Prometheus +homepage: https://github.com/prometheus-community/postgres_exporter +license: Apache-2.0 license + +disable_globbing: false + +replaces: + - postgres_exporter + +provides: + - postgres_exporter + +# Files to include in the package +contents: + - src: /app/postgres_exporter + dst: /usr/bin/postgres_exporter + file_info: + mode: 0755 + owner: root + group: root + +# Scripts to run during installation/removal (optional) +# scripts: +# preinstall: ./scripts/preinstall.sh +# postinstall: ./scripts/postinstall.sh +# preremove: ./scripts/preremove.sh +# postremove: ./scripts/postremove.sh