PecanProject / pecan-status-board

workflow integration testing status board
Other
2 stars 3 forks source link

Docker Image Not Compatible with arm64 Architecture #20

Open Sweetdevil144 opened 3 months ago

Sweetdevil144 commented 3 months ago

Description

I am trying to build a Docker image for the pecan-status-board project on an arm64 architecture system. However, the base image specified in the Dockerfile, rocker/tidyverse:4, does not seem to support arm64.

Here is the error message I receive when I try to build the Docker image:

ERROR: failed to solve: rocker/tidyverse:4: no match for platform in manifest: not found

Steps to Reproduce

  1. Clone the pecan-status-board repository to an arm64 system.
  2. Navigate to the repository directory.
  3. Run docker build -t pecan_status_board .

Expected Behavior

The Docker image builds successfully.

Actual Behavior

The build process fails with the error message above.

Possible Solution

We might need to find an alternative base image that supports arm64, or build the rocker/tidyverse image from source on an arm64 system.

I would appreciate any guidance or suggestions on how to proceed. Thank you.

Sweetdevil144 commented 3 months ago

I tried running docker manifest inspect rocker/tidyverse:latest, which gave me following output :

{
   "schemaVersion": 2,
   "mediaType": "application/vnd.oci.image.index.v1+json",
   "manifests": [
      {
         "mediaType": "application/vnd.oci.image.manifest.v1+json",
         "size": 2016,
         "digest": "sha256:f3aece5224664127e8a28cffb0ea5a8c4398c6fa9912b387d59c5b6d0a0fb92b",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.oci.image.manifest.v1+json",
         "size": 566,
         "digest": "sha256:c4a99ea86c28600508b9b310b9d360a5efd44f9eea674bb9dd35078ac43dc0bf",
         "platform": {
            "architecture": "unknown",
            "os": "unknown"
         }
      }
   ]
}