Graphql-engine: Docker image for arm

Created on 25 Dec 2018  路  12Comments  路  Source: hasura/graphql-engine

We have built an inhouse RPi cluster for production and currently testing the Hasura docker image. But it seems an image for arm is not available yet.

It will be a great addition as the platform is popular among servers.

Thanks.

server hard longterm

Most helpful comment

I had build a graphql-engine docker image for arm锛寀pload to https://hub.docker.com/r/hanlyjiang/graphql-engine-base.
and build an arm image to build graphql-engine锛寀pload to https://hub.docker.com/r/hanlyjiang/graphql-engine-builder.

All 12 comments

This is not an easy task. Also, ARM is still a Tier 2 architecture for GHC

Adding keywords to make this easier to find:
arm64, raspberry pi

I wanted try hasura on my raspberry pi but I stopped when I found that I can't run the docker image.
Do you have news about this?

An arm docker image would be great, not just for Rasberry pi, but also for Windows arm and (shortly) MacOS arm

Maybe it might be possible with Docker's experimental buildx feature?

https://docs.docker.com/docker-for-mac/multi-arch/

Not sure if its similar to a write once (for one architecture), create multiple architectures kind of thing.

How would I go about building graphql-engine on ARM, specifically arm64v8? I'm willing to do a heap of testing - from my preliminary research it looks like the GHC ARM support has improved quite a lot in the last year or so.

I found this qemu solution interesting - https://www.balena.io/blog/building-arm-containers-on-any-x86-machine-even-dockerhub/

I've gotten quite a way through an embedded computer vision project that was using hasura and running on a Jeton Xavier AGX only to find this out quite late :cry:

I had build a graphql-engine docker image for arm锛寀pload to https://hub.docker.com/r/hanlyjiang/graphql-engine-base.
and build an arm image to build graphql-engine锛寀pload to https://hub.docker.com/r/hanlyjiang/graphql-engine-builder.

I had build the graphql-engine v1.3.1 docker image and upload to https://hub.docker.com/r/fedormelexin/graphql-engine-arm64
Static assets for hasura console included and enabled by default!

Dockerfile to build on own Rpi4 (4GB/8GB) or Jetson Nano or other machines: https://github.com/melehin/graphql-engine-arm64

@hanlyjiang
@melehin
It seems you guys figured out a way to build hasura for arm. If its doable, then surely the staff at hasura can make official versions of these images too?

@joshuarobs
Sure, but ARM is still a Tier 2 architecture for GHC and may contain platform-specific bugs or other vulnerabilities.
Thereby builded images for ARM also may contain the same.

For pet projects or development on ARM - a good alternative.
I have rpi3, rpi4 and Jetson Nano and hasura works well on them.

@joshuarobs if you could turn the mentioned solutions into official images even just for raspberry pi and Jetson nano, i think there is so much potential to use Hasura in edge, ai and IOT applications. Booth platforms have a strong and growing user base in hobby and commercial applications.I think a lot of people would be very interested in using Hasura in their projects. I for example am currently exploring the option to use it in a commercial project next year that would run on jetson or raspberry compute module as i can then use the same tooling for cloud as well as edge infrastructure

also looks like there is some good progress on ghc on arm
https://www.haskell.org/ghc/blog/20200515-ghc-on-arm.html

Was this page helpful?
0 / 5 - 0 ratings