refactor: remove Debian/DEB packaging, RPM-only support
- Remove all DEB packaging files (packaging/deb/*) - Update Dockerfile.package to build RPM packages only - Update build.sh to remove DEB build steps - Update architecture.yml to reflect RPM-only distribution - Update README.md installation instructions for RPM only - Change runtime image from distroless/base-debian12 to scratch - Clean up obsolete build artifacts in dist/ Supported distributions now: - CentOS 7 (el7) - Rocky Linux 8 (el8) - Rocky Linux 9 (el9) - Rocky Linux 10 (el10) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@ -453,7 +453,7 @@ docker:
|
||||
base: golang:latest
|
||||
purpose: build_and_test
|
||||
runtime:
|
||||
base: gcr.io/distroless/base-debian12
|
||||
base: scratch
|
||||
purpose: run_binary_only
|
||||
build:
|
||||
multi_stage: true
|
||||
@ -472,15 +472,11 @@ docker:
|
||||
|
||||
packaging:
|
||||
description: >
|
||||
logcorrelator est distribué sous forme de packages .deb (Debian/Ubuntu) et
|
||||
.rpm (CentOS 7, Rocky Linux/RHEL 8, 9, 10), construits intégralement dans Docker avec fpm.
|
||||
logcorrelator est distribué sous forme de packages .rpm (CentOS 7, Rocky Linux/RHEL 8, 9, 10),
|
||||
construits intégralement dans Docker avec fpm.
|
||||
formats:
|
||||
- deb
|
||||
- rpm
|
||||
target_distros:
|
||||
deb:
|
||||
- debian-12+
|
||||
- ubuntu-22.04+
|
||||
rpm:
|
||||
- centos-7
|
||||
- rocky-linux-8+
|
||||
@ -498,9 +494,6 @@ packaging:
|
||||
description: >
|
||||
Compilation du binaire Go avec CGO_ENABLED=0 pour un binaire statique.
|
||||
GOOS=linux GOARCH=amd64.
|
||||
- name: deb_package_builder
|
||||
description: >
|
||||
Construction du package DEB pour Debian/Ubuntu avec fpm.
|
||||
- name: rpm_centos7_builder
|
||||
description: >
|
||||
Construction du package RPM pour CentOS 7 (el7) avec fpm.
|
||||
@ -515,7 +508,7 @@ packaging:
|
||||
Construction du package RPM pour Rocky Linux 10 (el10) avec fpm.
|
||||
- name: output
|
||||
description: >
|
||||
Image Alpine minimale contenant les packages dans /packages/deb et
|
||||
Image Alpine minimale contenant les packages dans
|
||||
/packages/rpm/{centos7,rocky8,rocky9,rocky10}.
|
||||
files:
|
||||
binary:
|
||||
@ -538,22 +531,14 @@ packaging:
|
||||
- path: /etc/logcorrelator
|
||||
mode: "0750"
|
||||
maintainer_scripts:
|
||||
deb:
|
||||
postinst: packaging/deb/postinst
|
||||
prerm: packaging/deb/prerm
|
||||
postrm: packaging/deb/postrm
|
||||
rpm:
|
||||
post: packaging/rpm/post
|
||||
preun: packaging/rpm/preun
|
||||
postun: packaging/rpm/postun
|
||||
dependencies:
|
||||
deb:
|
||||
- systemd
|
||||
rpm:
|
||||
- systemd
|
||||
verify:
|
||||
deb:
|
||||
command: docker run --rm -v $(pwd)/dist/deb:/packages debian:latest sh -c "apt-get update && apt-get install -y /packages/*.deb"
|
||||
rpm:
|
||||
centos7:
|
||||
command: docker run --rm -v $(pwd)/dist/rpm/centos7:/packages centos:7 sh -c "yum install -y /packages/*.rpm"
|
||||
|
||||
Reference in New Issue
Block a user