# Aarch64 support for crate

**URL:** <https://community.cratedb.com/t/aarch64-support-for-crate/42>\
**Category:** CrateDB\
**Created:** [October 16, 2018, 4:43am UTC](https://community.cratedb.com/t/aarch64-support-for-crate/42 "2018-10-16T04:43:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterCR8](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/petercr8/32/9_2.png) [@peterCR8](https://community.cratedb.com/u/peterCR8)\
**Post date:** [October 16, 2018, 4:43am UTC](https://community.cratedb.com/t/aarch64-support-for-crate/42/1 "2018-10-16T04:43:44Z")

</div>

i am trying to build crate using docker on aarch64 with alpine 3.7,but JRE is crashing but same is working with ubuntu and centos on aarch64

---

<div class="post-metadata">

**Author:** ![miguel.arregui](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/miguel.arregui/32/126_2.png) [@miguel.arregui](https://community.cratedb.com/u/miguel.arregui)\
**Post date:** [June 3, 2020, 1:40pm UTC](https://community.cratedb.com/t/aarch64-support-for-crate/42/2 "2020-06-03T13:40:46Z")

</div>

Hi Peter,

The way I would approach it would be:

1.- Clone this project: [https://github.com/crate/docker-crate](https://github.com/crate/docker-crate)  
2.- `cp -r amd64 aarch64`  
3.- `cp Dockerfile aarch64/crate`  
4.- `cd aarch64/crate`

At this point you need to edit the `aarch64/crate/Dockerfile` file command by command until it works.  
For example, the start of the Dockerfile:

```auto
FROM alpine:latest

RUN addgroup crate && adduser -D -u 1000 -G crate -h /crate crate

RUN apk add curl

RUN curl --retry 8 -o /openjdk.tar.gz https://download.java.net/java/GA/jdk13.0.1/cec27d702aa74d5a8630c65ae61e4305/9/GPL/openjdk-13.0.1_linux-x64_bin.tar.gz \
    && echo "2e01716546395694d3fad54c9b36d1cd46c5894c06f72d156772efbcf4b41335 */openjdk.tar.gz" | sha256sum -c - \
    && tar -C /opt -zxf /openjdk.tar.gz \
    && rm /openjdk.tar.gz

```

When you succeed, it would be lovely if you would push a PR under the project.

I had a terminal window open, to test the commands, so I did not have to painfully go the `docker build .` way. In the terminal window:

```auto
docker run -it alpine:latest /bin/sh

```

Notice that alpine does not support `useradd`, `groupadd`, but rather `adduser`, `addgroup`, as well as [other nuisances](https://wiki.alpinelinux.org/wiki/How_to_get_regular_stuff_working).

Kind regards,
