rpmbuilder/rpms/vlutils/Dockerfile
Ben Vincent 7a48e70f6e
All checks were successful
Build / build-9 (pull_request) Successful in 1m34s
Build / build-8 (pull_request) Successful in 1m46s
feat: add victorialogs
- add vlutils and victoria-logs packages
2025-07-27 20:30:32 +10:00

24 lines
755 B
Docker

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