rethinkdb / rethinkdb-dockerfiles

Dockerfiles for past and present versions of RethinkDB.
Apache License 2.0
55 stars 43 forks source link

Arm Version #41

Open random-robbie opened 7 years ago

random-robbie commented 7 years ago

As debian supports arm can we get a version that will run on a raspberry pi please?

arm32v7/debian:buster arm32v7/debian:jessie

stuartpb commented 6 years ago

If you can convince upstream to package for it, sure.

srh commented 6 years ago

I'd like that too. First I'd like a stretch package for x86_64, and then getting building in general to work on buster (IIRC it doesn't yet) but after that, arm.

A first step might be to see if make build-deb DEB_RELEASE=jessie works on jessie for ARM.

stuartpb commented 6 years ago

Seeing as how I'm currently moving the container images to use Alpine Linux, it might also be worth trying to get the upstream maintainer at Alpine (probably Daniel Treadwell) to package for armhf / aarch64.

tilda commented 5 years ago

Any progress on this issue? I have a application that depends on RethinkDB and the image refused to pull due to architecture issues (running armv7 version of Arch Linux ARM on a Raspberry Pi 3).

gagan1510 commented 5 years ago

Any progress on this issue? I have a application that depends on RethinkDB and the image refused to pull due to architecture issues (running armv7 version of Arch Linux ARM on a Raspberry Pi 3).

Did you find a way? Even I need to do this!

rhenwood-arm commented 5 years ago

A recent commit to Alpine has introduced RethinkDB for AArch64: https://github.com/alpinelinux/aports/commit/da4ea7010152dc36fb1eb52b9824534c74d9f59d

Does that unblock this work now?

rhenwood-arm commented 5 years ago

looks like it isn't quite ready on AArch64:

/ # apk add rethinkdb
(1/8) Installing ca-certificates (20190108-r0)
(2/8) Installing nghttp2-libs (1.39.2-r2)
(3/8) Installing libcurl (7.65.3-r0)
(4/8) Installing libexecinfo (1.1-r1)
(5/8) Installing libgcc (8.3.0-r0)
(6/8) Installing libstdc++ (8.3.0-r0)
(7/8) Installing protobuf (3.8.0-r1)
(8/8) Installing rethinkdb (2.3.6-r11)
Executing rethinkdb-2.3.6-r11.pre-install
Executing busybox-1.31.0-r0.trigger
Executing ca-certificates-20190108-r0.trigger
OK: 48 MiB in 22 packages
/ # rethinkdb
Recursively removing directory /rethinkdb_data/tmp
Version: rethinkdb 2.3.6 (GCC 8.3.0)
error: Error in src/arch/runtime/thread_pool.cc at line 369:
error: Bus error from accessing the address 0xffffa91ac530.
error: Backtrace:
error: Thu Sep  5 18:35:57 2019
error: Exiting.
Aborted (core dumped)
gagan1510 commented 5 years ago

It is bothering me way too much. Thanks for your efforts... Do let me know when it's done. It'll be of great help.

Thank you!

On Fri, Sep 6, 2019 at 12:07 AM Richard Henwood notifications@github.com wrote:

looks like it isn't quite ready on AArch64:

/ # apk add rethinkdb (1/8) Installing ca-certificates (20190108-r0) (2/8) Installing nghttp2-libs (1.39.2-r2) (3/8) Installing libcurl (7.65.3-r0) (4/8) Installing libexecinfo (1.1-r1) (5/8) Installing libgcc (8.3.0-r0) (6/8) Installing libstdc++ (8.3.0-r0) (7/8) Installing protobuf (3.8.0-r1) (8/8) Installing rethinkdb (2.3.6-r11) Executing rethinkdb-2.3.6-r11.pre-install Executing busybox-1.31.0-r0.trigger Executing ca-certificates-20190108-r0.trigger OK: 48 MiB in 22 packages / # rethinkdb Recursively removing directory /rethinkdb_data/tmp Version: rethinkdb 2.3.6 (GCC 8.3.0) error: Error in src/arch/runtime/thread_pool.cc at line 369: error: Bus error from accessing the address 0xffffa91ac530. error: Backtrace: error: Thu Sep 5 18:35:57 2019 error: Exiting. Aborted (core dumped)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rethinkdb/rethinkdb-dockerfiles/issues/41?email_source=notifications&email_token=AHBOQFG2IYNM5PE22ZRIWDLQIFGW7A5CNFSM4D4G2DEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6AIX5I#issuecomment-528518133, or mute the thread https://github.com/notifications/unsubscribe-auth/AHBOQFBCCCBVBEOU2UZZGILQIFGW7ANCNFSM4D4G2DEA .

--

[image: Greendeck] http://www.greendeck.co/

GAGANPREET SINGH

SOFTWARE ENGINEER•GREENDECK WWW.GREENDECK.CO http://www.greendeck.co/

+91 9893879594 <+91+9893879594>

@TWITTER https://twitter.com/freakin_insane@FACEBOOK https://www.facebook.com/profile.php?id=100000625275867@LINKEDIN https://linkedin.com/in/gagansingh1510/

ossdev07 commented 5 years ago

It is bothering me way too much. Thanks for your efforts... Do let me know when it's done. It'll be of great help. Thank you! On Fri, Sep 6, 2019 at 12:07 AM Richard Henwood @.***> wrote: looks like it isn't quite ready on AArch64: / # apk add rethinkdb (1/8) Installing ca-certificates (20190108-r0) (2/8) Installing nghttp2-libs (1.39.2-r2) (3/8) Installing libcurl (7.65.3-r0) (4/8) Installing libexecinfo (1.1-r1) (5/8) Installing libgcc (8.3.0-r0) (6/8) Installing libstdc++ (8.3.0-r0) (7/8) Installing protobuf (3.8.0-r1) (8/8) Installing rethinkdb (2.3.6-r11) Executing rethinkdb-2.3.6-r11.pre-install Executing busybox-1.31.0-r0.trigger Executing ca-certificates-20190108-r0.trigger OK: 48 MiB in 22 packages / # rethinkdb Recursively removing directory /rethinkdb_data/tmp Version: rethinkdb 2.3.6 (GCC 8.3.0) error: Error in src/arch/runtime/thread_pool.cc at line 369: error: Bus error from accessing the address 0xffffa91ac530. error: Backtrace: error: Thu Sep 5 18:35:57 2019 error: Exiting. Aborted (core dumped) — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#41?email_source=notifications&email_token=AHBOQFG2IYNM5PE22ZRIWDLQIFGW7A5CNFSM4D4G2DEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6AIX5I#issuecomment-528518133>, or mute the thread https://github.com/notifications/unsubscribe-auth/AHBOQFBCCCBVBEOU2UZZGILQIFGW7ANCNFSM4D4G2DEA . -- [image: Greendeck] http://www.greendeck.co/ GAGANPREET SINGH SOFTWARE ENGINEER•GREENDECK WWW.GREENDECK.CO http://www.greendeck.co/ +91 9893879594 <+91+9893879594> @twitter https://twitter.com/freakin_insane@FACEBOOK https://www.facebook.com/profile.php?id=100000625275867@LINKEDIN https://linkedin.com/in/gagansingh1510/

@rhenwood-arm @gagan1510 Activity to support AARCH64 platform is done in following PR .. PLease have a look and let me know if any thing is required from my side ... https://github.com/alpinelinux/aports/pull/12096

srh commented 5 years ago

Getting a PR to bring that patch into RethinkDB would be great.

parampreet004 commented 5 years ago

While installing this package on ARM64 Alpine Environment using command "apk add rethinkdb" , i am facing error related to libprotobuf.

/ # apk add rethinkdb
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  so:libprotobuf.so.22 (missing):
    required by: rethinkdb-2.3.6-r15[so:libprotobuf.so.22]
ossdev07 commented 4 years ago

Hi all, rethinkDB changes for AARCH64 are merged and released in alpinelinux repo now https://github.com/alpinelinux/aports/commit/11c42c35632ded5b149aca0a598aa84646bac751 https://pkgs.alpinelinux.org/packages?name=rethinkdb&branch=edge

I have already verified by creating alpine docker and installing rethinkDB, so we can close this issue Thanks,

jflattery commented 4 years ago

Hi all, rethinkDB changes for AARCH64 are merged and released in alpinelinux repo now alpinelinux/aports@11c42c3 https://pkgs.alpinelinux.org/packages?name=rethinkdb&branch=edge

I have already verified by creating alpine docker and installing rethinkDB, so we can close this issue Thanks,

I just tried to build this without luck:

jflattery@raspberrypi:~/docker/rethinkdb $ uname -a
Linux raspberrypi 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux
jflattery@raspberrypi:~/docker/rethinkdb $ cat Dockerfile
FROM alpine:latest

RUN apk add rethinkdb

VOLUME ["/data"]

WORKDIR /data

CMD ["rethinkdb", "--bind", "all"]

#   process cluster webui
EXPOSE 28015 29015 8080

jflattery@raspberrypi:~/docker/rethinkdb $ docker build -t rethinkdb .
Sending build context to Docker daemon  76.42MB
Step 1/6 : FROM alpine:latest
 ---> 0d8bd234c4c8
Step 2/6 : RUN apk add rethinkdb
 ---> Running in eb7e44488aa3
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/armv7/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  rethinkdb (missing):
    required by: world[rethinkdb]
The command '/bin/sh -c apk add rethinkdb' returned a non-zero code: 1
jflattery@raspberrypi:~/docker/rethinkdb $
jflattery commented 4 years ago

I just tried this using the edge branch of alpine... still no luck.

jflattery@raspberrypi:~/docker/rethinkdb $ docker build -t rethinkdb .
Sending build context to Docker daemon  76.42MB
Step 1/6 : FROM alpine:edge
edge: Pulling from library/alpine
8fe3637c51d5: Pull complete
Digest: sha256:2849e06886c579433ccf3738e36017dc2b354a91d640fb01761d5b70f98d0e05
Status: Downloaded newer image for alpine:edge
 ---> d45cea782d9b
Step 2/6 : RUN apk add rethinkdb
 ---> Running in 1fd6334a2f89
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  rethinkdb (missing):
    required by: world[rethinkdb]
The command '/bin/sh -c apk add rethinkdb' returned a non-zero code: 1
jflattery@raspberrypi:~/docker/rethinkdb $
jflattery commented 4 years ago

I found that my issue above is due to my host OS being 32bit (armv7l) and the rethinkdb package in the alpine repo is built for AARCH64.

That being said, this issue should NOT be closed as suggested by @ossdev07 as the issue was originally seeking support for arm32v7.

gounthar commented 4 years ago

Why has the rethinkdb aarch64 build disappeared from edge? For whatever reason, I found a 2.3.6r-15 version for aarch64 for Alpine Linux 3.11. I then made a Docker image with it thanks to this Dockerfile.

What I'd like is now to understand how Alpine got this rethinkdb binary, so that I can build with more recent versions of Rethinkdb.

isamuninja commented 3 years ago

work for me

https://hub.docker.com/r/djtidau/rethinkdb-2.4.1

fernandomoraes commented 3 years ago

thanks @isamuninja

gabor-boros commented 2 years ago

https://github.com/docker-library/official-images/pull/12389 will fix this for 2.4.2 and above.