← 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

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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Closed after a contributor shared a working charmcraft.yaml using the bases field to build on Ubuntu 20.04 and run on CentOS 7. Maintainer validated the configuration, explained its behavior, and closed the issue.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1065 bases: support creating charms use CentOS 7 as base charmcraft merged Merged. Adds CentOS 7 base support for charm creation, resolving CRAFT-1697. Requires Ubuntu 18.04 for cgroup v1 and an unreleased craft-providers version. Changes span 10 files with 278 additions and 65 deletions.
72%