I am trying to host gitpod on AWS Graviton instances and noticed that some of the images used by the services(registry-facade, node-daemon, image-builder, etc.,) are just compatible with x86 architecture.
I was going through the github code of the components here and noticed there are go(Go lang has a arm compatible base image) based components. So, I tried building the components using the dockerfiles in the respective components. But none of them are building even on x86 as well. For example if I try to build the ws-daemon component using the leeway.Dockerfile I am getting the following error
=> [internal] load build definition from leeway.Dockerfile 0.4s
=> => transferring dockerfile: 44B 0.0s
=> [internal] load .dockerignore 0.5s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/alpine:latest 0.0s
=> CACHED [1/6] FROM docker.io/library/alpine:latest 0.0s
=> [internal] load build context 0.4s
=> => transferring context: 2B 0.0s
=> CANCELED [2/6] RUN apk add --no-cache git bash openssh-client lz4 e2fsprogs coreutils tar runc strace 1.6s
=> CACHED [3/6] RUN addgroup -g 33333 gitpod && adduser -D -h /home/gitpod -s /bin/sh -u 33333 -G gitpod gitpod && echo "gitpod:gitpod" | chpasswd
=> ERROR [4/6] COPY components-ws-daemon--app/ws-daemon /app/ws-daemond 0.0s
=> ERROR [5/6] COPY components-ws-daemon--content-initializer/ws-daemon /app/content-initializer 0.0s
=> ERROR [6/6] COPY components-ws-daemon-nsinsider--app/nsinsider /app/nsinsider 0.0s
------
> [4/6] COPY components-ws-daemon--app/ws-daemon /app/ws-daemond:
------
------
> [5/6] COPY components-ws-daemon--content-initializer/ws-daemon /app/content-initializer:
------
------
> [6/6] COPY components-ws-daemon-nsinsider--app/nsinsider /app/nsinsider:
------
failed to compute cache key: "/components-ws-daemon-nsinsider--app/nsinsider" not found: not found
Are there any instructions on how to build these components individually?