Compare commits
No commits in common. "7c5d5619bf36f2c3a44103bb2369ffc7fbbda004" and "cd47d9730b75b5260e4dabd127a84d078553c68f" have entirely different histories.
7c5d5619bf
...
cd47d9730b
@ -1 +0,0 @@
|
|||||||
1
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
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 wget -O /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
|
||||||
https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz && \
|
|
||||||
tar xf vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
|
||||||
|
|
||||||
# Default command to build RPMs
|
|
||||||
CMD /app/resources/build.sh
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/bash
|
|
||||||
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm
|
|
||||||
@ -1,37 +0,0 @@
|
|||||||
# nfpm.yaml
|
|
||||||
|
|
||||||
name: vmagent
|
|
||||||
version: ${PACKAGE_VERSION}
|
|
||||||
release: ${PACKAGE_RELEASE}
|
|
||||||
arch: amd64
|
|
||||||
platform: linux
|
|
||||||
section: default
|
|
||||||
priority: extra
|
|
||||||
description: "vmagent collects metrics data via popular data ingestion protocols and routes it to VictoriaMetrics."
|
|
||||||
maintainer: VictoriaMetrics
|
|
||||||
homepage: https://github.com/VictoriaMetrics/VictoriaMetrics
|
|
||||||
license: Apache-2.0 license
|
|
||||||
|
|
||||||
disable_globbing: false
|
|
||||||
|
|
||||||
replaces:
|
|
||||||
- vmagent
|
|
||||||
|
|
||||||
provides:
|
|
||||||
- vmagent
|
|
||||||
|
|
||||||
# Files to include in the package
|
|
||||||
contents:
|
|
||||||
- src: /app/vmagent-prod
|
|
||||||
dst: /usr/bin/vmagent
|
|
||||||
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
|
|
||||||
@ -1 +0,0 @@
|
|||||||
1
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
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 wget -O /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
|
||||||
https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz && \
|
|
||||||
tar xf vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
|
||||||
|
|
||||||
# Default command to build RPMs
|
|
||||||
CMD /app/resources/build.sh
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/bash
|
|
||||||
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm
|
|
||||||
@ -1,37 +0,0 @@
|
|||||||
# nfpm.yaml
|
|
||||||
|
|
||||||
name: vmalert
|
|
||||||
version: ${PACKAGE_VERSION}
|
|
||||||
release: ${PACKAGE_RELEASE}
|
|
||||||
arch: amd64
|
|
||||||
platform: linux
|
|
||||||
section: default
|
|
||||||
priority: extra
|
|
||||||
description: "vmalert processes alerts and recording rules from VictoriaMetrics."
|
|
||||||
maintainer: VictoriaMetrics
|
|
||||||
homepage: https://github.com/VictoriaMetrics/VictoriaMetrics
|
|
||||||
license: Apache-2.0 license
|
|
||||||
|
|
||||||
disable_globbing: false
|
|
||||||
|
|
||||||
replaces:
|
|
||||||
- vmalert
|
|
||||||
|
|
||||||
provides:
|
|
||||||
- vmalert
|
|
||||||
|
|
||||||
# Files to include in the package
|
|
||||||
contents:
|
|
||||||
- src: /app/vmalert-prod
|
|
||||||
dst: /usr/bin/vmalert
|
|
||||||
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
|
|
||||||
@ -19,6 +19,8 @@ replaces:
|
|||||||
- vmutils
|
- vmutils
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
|
- vmagent
|
||||||
|
- vmalert
|
||||||
- vmalert-tool
|
- vmalert-tool
|
||||||
- vmauth
|
- vmauth
|
||||||
- vmbackup
|
- vmbackup
|
||||||
@ -27,6 +29,18 @@ provides:
|
|||||||
|
|
||||||
# Files to include in the package
|
# Files to include in the package
|
||||||
contents:
|
contents:
|
||||||
|
- src: /app/vmagent-prod
|
||||||
|
dst: /usr/bin/vmagent
|
||||||
|
file_info:
|
||||||
|
mode: 0755
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
- src: /app/vmalert-prod
|
||||||
|
dst: /usr/bin/vmalert
|
||||||
|
file_info:
|
||||||
|
mode: 0755
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
- src: /app/vmalert-tool-prod
|
- src: /app/vmalert-tool-prod
|
||||||
dst: /usr/bin/vmalert-tool
|
dst: /usr/bin/vmalert-tool
|
||||||
file_info:
|
file_info:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user