← Back to Pull requests

fix(cross): replace external apk-anywhere image with inlined Alpine apk in Dockerfile.musl #3491

Closed
unknown closed this pull request without merging on Apr 12, 2026 10:52 UTC
View on GitHub
unknown unknown commented on Apr 11, 2026 08:50 UTC
Author

Description


<!-- Provide a clear and concise description of your changes -->

Musl builds were failing because the following Docker repository is not available, so I fixed the build process.

https://hub.docker.com/u/jorgeprendes420

build error

Dockerfile.musl:4
--------------------
   2 |     FROM $CROSS_BASE_IMAGE
   3 |     
   4 | >>> COPY --from=jorgeprendes420/apk-anywhere / /
   5 |     ENV MARCH=${CROSS_CMAKE_SYSTEM_PROCESSOR}
   6 |     RUN apk-init ${MARCH} ${CROSS_SYSROOT}
--------------------
ERROR: failed to build: failed to solve: jorgeprendes420/apk-anywhere: failed to resolve source metadata for docker.io/jorgeprendes420/apk-anywhere:latest: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Error: 
   0: could not run container
   1: when building custom image
   2: when building dockerfile
   3: `docker buildx build --progress auto --label 'org.cross-rs.for-cross-target=aarch64-unknown-linux-musl' --label 'org.cross-rs.runs-with=x86_64-unknown-linux-gnu' --label 'org.cross-rs.workspace_root=/home/runner/work/youki/youki' --tag localhost/cross-rs/cross-custom-youki:aarch64-unknown-linux-musl-3caa1 --build-arg 'CROSS_DEB_ARCH=musl-linux-arm64' --build-arg 'CROSS_BASE_IMAGE=ghcr.io/cross-rs/aarch64-unknown-linux-musl:main' --file /home/runner/work/youki/youki/cross/Dockerfile.musl --quiet --output 'type=docker' /home/runner/work/youki/youki` failed with exit status: 1

This change moves the logic previously provided by jorgeprendes420/apk-anywhere into Dockerfile.musl.

https://github.com/jprendes/apk-anywhere

Type of Change


<!-- Mark the appropriate option with an [x] -->
  • Bug fix (non-breaking change that fixes an issue)

  • New feature (non-breaking change that adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

  • Documentation update

  • Refactoring (no functional changes)

  • Performance improvement

  • Test updates

  • CI/CD related changes

  • Other (please describe): update Dockerfile
  • Testing


    <!-- Describe the tests you ran and/or added to verify your changes -->
  • Added new unit tests

  • Added new integration tests

  • Ran existing test suite

  • Tested manually (please provide steps)
  • x86_64

    $ CARGO=cross TARGET=x86_64-unknown-linux-musl just youki-release
    $ file youki
    youki: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), static-pie linked, stripped
    $ readelf -h youki | grep Machine
      Machine:                           Advanced Micro Devices X86-64
    $ ldd youki
            statically linked
    

    aarch64
    $ CARGO=cross TARGET=aarch64-unknown-linux-musl just youki-release
    $ file youki
    youki: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, stripped
    $ readelf -h youki | grep Machine
      Machine:                           AArch64
    $ ldd youki
            not a dynamic executable
    

    Related Issues


    <!-- Link any related issues using the GitHub issue syntax: #issue-number
    If there is no open issue for this, please add details of the problem or open a new issue. -->
    Fixes #

    Additional Context


    <!-- Add any other context about the pull request here -->

    Diff: 419 lines (+314 / -105) across 5 files Reviewer: utam0k Review duration: 1561m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 419 lines diff across 5 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.361
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3491"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.0% (MEDIUM) · Higher = larger blast radius
    45.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.8% · Safe to merge
    17.8%