17ded87439
The estate direction is all-in-kubernetes, so pdbmux (a long-running daemon) should run as an in-cluster service rather than an RPM-installed systemd unit on each VM. The RPM is for workstation/VM CLI tools only; a daemon does not belong there. - Remove packaging/pdbmux.service and drop pdbmux (binary, systemd unit, completions) from the RPM/nfpm spec and build-rpm.sh. - Keep pdbmux in the Makefile build and the test suite. - Add Dockerfile.pdbmux building a static CGO_ENABLED=0 binary on distroless (mirrors encapi's image style). - Add .woodpecker/docker.yaml to build+push git.unkin.net/unkin/pdbmux:<tag> on v* tags via the docker-buildx plugin (droneci/DRONECI_PASSWORD creds, same as encapi), with k8s resources set. - Update README/AGENTS.md: deployment is k8s, config via PDBMUX_* env.
89 lines
2.5 KiB
YAML
89 lines
2.5 KiB
YAML
---
|
|
# nfpm config for building the node-lookup RPM.
|
|
# Rendered through envsubst (see scripts/build-rpm.sh) then fed to `nfpm pkg`.
|
|
|
|
name: ${PACKAGE_NAME}
|
|
version: ${PACKAGE_VERSION}
|
|
release: ${PACKAGE_RELEASE}
|
|
arch: ${PACKAGE_ARCH}
|
|
platform: ${PACKAGE_PLATFORM}
|
|
section: default
|
|
priority: extra
|
|
description: "${PACKAGE_DESCRIPTION}"
|
|
|
|
maintainer: ${PACKAGE_MAINTAINER}
|
|
homepage: ${PACKAGE_HOMEPAGE}
|
|
license: ${PACKAGE_LICENSE}
|
|
|
|
disable_globbing: false
|
|
|
|
replaces:
|
|
- node-lookup
|
|
provides:
|
|
- node-lookup
|
|
|
|
contents:
|
|
# The CLI binaries: node-lookup and its companion tools.
|
|
- src: dist/node-lookup
|
|
dst: /usr/bin/node-lookup
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
- src: dist/pburl
|
|
dst: /usr/bin/pburl
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
- src: dist/pblastreport
|
|
dst: /usr/bin/pblastreport
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
|
|
# NOTE: pdbmux is intentionally NOT shipped in this RPM. It is a k8s-only
|
|
# daemon (deployed via argocd-apps as a container image), not a workstation/VM
|
|
# CLI tool, so it has no place in the CLI package. pdbmux is still built and
|
|
# tested in this repo (see Makefile) and released as a container image
|
|
# (.woodpecker/docker.yaml).
|
|
|
|
# Shell completions (generated by scripts/build-rpm.sh before packaging).
|
|
- src: dist/completions/node-lookup.bash
|
|
dst: /usr/share/bash-completion/completions/node-lookup
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/_node-lookup
|
|
dst: /usr/share/zsh/site-functions/_node-lookup
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/node-lookup.fish
|
|
dst: /usr/share/fish/vendor_completions.d/node-lookup.fish
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/pburl.bash
|
|
dst: /usr/share/bash-completion/completions/pburl
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/_pburl
|
|
dst: /usr/share/zsh/site-functions/_pburl
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/pburl.fish
|
|
dst: /usr/share/fish/vendor_completions.d/pburl.fish
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/pblastreport.bash
|
|
dst: /usr/share/bash-completion/completions/pblastreport
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/_pblastreport
|
|
dst: /usr/share/zsh/site-functions/_pblastreport
|
|
file_info:
|
|
mode: 0644
|
|
- src: dist/completions/pblastreport.fish
|
|
dst: /usr/share/fish/vendor_completions.d/pblastreport.fish
|
|
file_info:
|
|
mode: 0644
|