feat: add victorialogs #54
1
rpms/victoria-logs/1.26.0/release
Normal file
1
rpms/victoria-logs/1.26.0/release
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
23
rpms/victoria-logs/Dockerfile
Normal file
23
rpms/victoria-logs/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
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 nfpm.yaml /app/nfpm.yaml
|
||||||
|
|
||||||
|
# Download the required files
|
||||||
|
RUN wget -O /app/victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
||||||
|
https://github.com/VictoriaMetrics/VictoriaLogs/releases/download/v${PACKAGE_VERSION}/victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz && \
|
||||||
|
tar xf victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||||
|
|
||||||
|
# Default command to build RPMs
|
||||||
|
CMD nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
|
||||||
38
rpms/victoria-logs/nfpm.yaml
Normal file
38
rpms/victoria-logs/nfpm.yaml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# nfpm.yaml
|
||||||
|
|
||||||
|
name: victoria-logs
|
||||||
|
version: ${PACKAGE_VERSION}
|
||||||
|
release: ${PACKAGE_RELEASE}
|
||||||
|
arch: amd64
|
||||||
|
platform: linux
|
||||||
|
section: default
|
||||||
|
priority: extra
|
||||||
|
description: "VictoriaLogs: Fast and easy to use database for logs, which can efficiently handle terabytes of logs "
|
||||||
|
|
||||||
|
maintainer: VictoriaMetrics
|
||||||
|
homepage: https://github.com/VictoriaMetrics/VictoriaLogs
|
||||||
|
license: Apache-2.0 license
|
||||||
|
|
||||||
|
disable_globbing: false
|
||||||
|
|
||||||
|
replaces:
|
||||||
|
- victoria-logs
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- victoria-logs
|
||||||
|
|
||||||
|
# Files to include in the package
|
||||||
|
contents:
|
||||||
|
- src: /app/victoria-logs-prod
|
||||||
|
dst: /usr/bin/victoria-logs
|
||||||
|
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
rpms/vlutils/1.26.0/release
Normal file
1
rpms/vlutils/1.26.0/release
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
23
rpms/vlutils/Dockerfile
Normal file
23
rpms/vlutils/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
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 nfpm.yaml /app/nfpm.yaml
|
||||||
|
|
||||||
|
# Download the required files
|
||||||
|
RUN wget -O /app/vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
||||||
|
https://github.com/VictoriaMetrics/VictoriaLogs/releases/download/v${PACKAGE_VERSION}/vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz && \
|
||||||
|
tar xf vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||||
|
|
||||||
|
# Default command to build RPMs
|
||||||
|
CMD nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
|
||||||
45
rpms/vlutils/nfpm.yaml
Normal file
45
rpms/vlutils/nfpm.yaml
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# nfpm.yaml
|
||||||
|
|
||||||
|
name: vlutils
|
||||||
|
version: ${PACKAGE_VERSION}
|
||||||
|
release: ${PACKAGE_RELEASE}
|
||||||
|
arch: amd64
|
||||||
|
platform: linux
|
||||||
|
section: default
|
||||||
|
priority: extra
|
||||||
|
description: "VictoriaLogs utilities: Fast and easy to use database for logs, which can efficiently handle terabytes of logs "
|
||||||
|
|
||||||
|
maintainer: VictoriaMetrics
|
||||||
|
homepage: https://github.com/VictoriaMetrics/VictoriaLogs
|
||||||
|
license: Apache-2.0 license
|
||||||
|
|
||||||
|
disable_globbing: false
|
||||||
|
|
||||||
|
replaces:
|
||||||
|
- vlutils
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- vlagent
|
||||||
|
- vlogscli
|
||||||
|
|
||||||
|
# Files to include in the package
|
||||||
|
contents:
|
||||||
|
- src: /app/vlagent-prod
|
||||||
|
dst: /usr/bin/vlagent
|
||||||
|
file_info:
|
||||||
|
mode: 0755
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
- src: /app/vlogscli-prod
|
||||||
|
dst: /usr/bin/vlogscli
|
||||||
|
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
|
||||||
Loading…
Reference in New Issue
Block a user