镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Provide arm64 docker image for running on Apple M1/M2 #309

Open

Description

Please provide arm64 docker image for Apple M1/M2.

Thanks

ZD

Activity

  1. xin-hedera commented on Oct 18, 2022

    @xin-hedera

    upvote this

  2. j-white commented on Jul 18, 2023

    @j-white

    I've run into this as well while trying to use Citus locally for development.

    It looks like the Docker files pull packages from the Debian repository which doesn't have any arm64 artifacts published: packagecloud. I guess we would need to start there, by publish arm64 .debs.

  3. j-white commented on Jul 20, 2023

    @j-white

    I spent some time deciphering the builds and I managed to get an arm64 version of the image up here: https://hub.docker.com/layers/jwhiteatdocker/citus/12.0.0-pg14/images/sha256-caa0ba563dc700428d8c01bd4962cfb5feda61b7958a13a73d8542dba4a90fcd?context=repo

    First, I fixed the build_packages command so I could rebuild existing x64 packages: j-white/citus-packaging@45d0a56

    I got them to build on an M1 (arm64): j-white/citus-packaging@d3df965

    I uploaded the packages to packagecloud: https://packagecloud.io/j-white/citusdata-community-arm64

    And then I rebuilt the Docker images: j-white@b040f72

    The result is a multi-arch container for Citus 12.0.0 and PG14:

    % docker pull jwhiteatdocker/citus:12.0.0-pg14
    ...
    % docker inspect jwhiteatdocker/citus:12.0.0-pg14 | jq -r '.[] | .Architecture'
    arm64
    % docker run -d --name "citusdev" -e "POSTGRES_HOST_AUTH_METHOD=trust" -p 5432:5432 jwhiteatdocker/citus:12.0.0-pg14 -c fsync=off
    ...
    % docker exec -it citusdev psql -U postgres
    psql (14.8 (Debian 14.8-1.pgdg120+1))
    Type "help" for help.
    
    postgres=# CREATE TABLE daily_page_views (
        tenant_id int,
        day date,
        page_id int,
        view_count bigint,
        primary key (tenant_id, day, page_id)
    );
    
    SELECT create_distributed_table('daily_page_views', 'tenant_id');
    CREATE TABLE
     create_distributed_table 
    --------------------------
     
    (1 row)
    
    postgres=# 
    
  4. 9mm commented on Jan 15, 2024

    @9mm

    +1

    That's an awesome solution but ideally this is part of official image

  5. aorticweb commented on Jun 13, 2024

    @aorticweb

    +1 on this

  6. jremen commented on Jun 20, 2024

    @jremen

    +1
    Please add this to official repo

  7. xgerman commented on Nov 1, 2024

    @xgerman

    +1 also for pg16

  8. henrichter commented on Mar 31, 2025

    @henrichter

    I ran into the same issue since there are still no official arm64 images on Docker Hub. However, I was able to work around it by building the alpine version locally for the required architecture:

    1. Clone the repository:

      git clone https://github.com/citusdata/docker.git ./citusdata/docker
    2. Build the image using the Alpine Dockerfile:

      docker build ./citusdata/docker -f ./citusdata/docker/alpine/Dockerfile

    Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions