← Back to issue list

build and run on centos 7/8 in charmcraft.yaml

View original Github issue

Metadata

Project
charmcraft
Number
#430
Type
issue
State
closed
Author
jamesbeedy
Labels
—
Created
Updated
Closed

Current evaluation

Configuration guidance confirmed for Charmcraft 1.1.0: build on Ubuntu 20.04 and declare Ubuntu 20.04 and CentOS 7 as amd64 run bases; maintainers closed the request with documentation.

Resolution: closed not a bug

Reason: Charmcraft 1.1.0 already supported this through the bases build-on and run-on fields. A user provided a working configuration, and facundobatista explained it, linked the full documentation, and closed the support question on 2021-07-06; no code fix was required.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Hello, We have charms that support centos7 and ubuntu 20.04. Looking at how to build our charms using the new pattern/functionality we can't see how to do so for centos. Is it possible that we have an example of how a `charmcraft.yaml` might look for OS other then ubuntu? Thank you

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Configuration guidance confirmed for Charmcraft 1.1.0: build on Ubuntu 20.04 and declare Ubuntu 20.04 and CentOS 7 as amd64 run bases; maintainers closed the request with documentation.
stealth/space-bunny-alpha — closed not a bug Configuration guidance resolved the support question: Charmcraft 1.1.0 can build on Ubuntu 20.04 and run on Ubuntu 20.04 or CentOS 7 (amd64) using charmcraft.yaml bases.
qwen3.6-35b-a3b-mtp-q6 — — Resolved by sharing a charmcraft.yaml bases configuration that builds on Ubuntu 20.04 and targets CentOS 7. Maintainer validated the approach, documented the behavior, and closed the issue.
qwen/qwen3.6-35b-a3b — — Resolved by contributor providing a charmcraft.yaml configuration using build-on and run-on bases to target CentOS 7 alongside Ubuntu 20.04. Maintainer documented the behavior, linked official guidance, and closed the issue.
qwen/qwen3.6-35b-a3b — — Resolved by providing a charmcraft.yaml config using build-on and run-on bases to specify Ubuntu for building and CentOS 7 for runtime. Maintainer validated the solution and closed the issue with documentation links.
qwen3.6-35b-a3b-mtp-q6 — — Resolved via a bases configuration example. Charmcraft builds on Ubuntu 20.04 but supports CentOS 7 amd64 at runtime. Issue closed with documentation confirming multi-OS support.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1826 Drop support for centos 7 charmcraft closed CentOS 7 support was removed in Charmcraft 4 by merged PR canonical/charmcraft#2386 (commit e8e7cb8e); CentOS 7 charms remain buildable with Charmcraft 3.
70%