Skip to content

Fix ARM64 builds by replacing AMD64-only base image#4

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/check-github-actions-failure
Draft

Fix ARM64 builds by replacing AMD64-only base image#4
Copilot wants to merge 3 commits into
mainfrom
copilot/check-github-actions-failure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 21, 2025

GitHub Actions ARM64 builds were failing because quay.io/sclorg/mariadb-1011-c9s only supports AMD64.

Changes

  • Base image: Replace with registry.access.redhat.com/ubi9/ubi:latest (multi-arch)
  • MariaDB installation: Explicitly install MariaDB 10.11 from UBI9 repos
  • User setup: Create default user (UID 1001) that Redis setup renames to frappe
  • Code quality: Define MYSQL_UID and FRAPPE_UID as env vars instead of hardcoded values
# Before
FROM quay.io/sclorg/mariadb-1011-c9s AS builder

# After  
FROM registry.access.redhat.com/ubi9/ubi:latest AS builder
ENV MYSQL_UID=27 FRAPPE_UID=1001
RUN dnf -y module enable mariadb:10.11 && \
    INSTALL_PKGS="mariadb mariadb-server mariadb-server-utils mariadb-devel" && \
    dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS

S2I script compatibility maintained. Both AMD64 and ARM64 builds should now succeed.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdn01.quay.io
    • Triggering command: /usr/bin/skopeo skopeo inspect docker://quay.io/sclorg/mariadb-1011-c9s (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

check why the github actions failed


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits November 21, 2025 02:29
The quay.io/sclorg/mariadb-1011-c9s base image only supports AMD64 architecture,
causing ARM64 builds to fail. Replaced it with registry.access.redhat.com/ubi9/ubi
which supports both AMD64 and ARM64 platforms.

Changes:
- Use UBI9 as base image for multi-arch support
- Install MariaDB 10.11 from UBI9 repositories
- Create default user (UID 1001) that will be renamed to frappe
- Maintain compatibility with existing S2I scripts and workflows

Co-authored-by: varun-krishnamurthy <128337350+varun-krishnamurthy@users.noreply.github.com>
Address code review feedback:
- Define MYSQL_UID and FRAPPE_UID as environment variables
- Use variables instead of magic numbers for better maintainability
- Add comments explaining UID/GID values
- Makes future updates easier if UIDs change in UBI9

Co-authored-by: varun-krishnamurthy <128337350+varun-krishnamurthy@users.noreply.github.com>
Copilot AI changed the title [WIP] Investigate GitHub Actions failure Fix ARM64 builds by replacing AMD64-only base image Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants