Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arm32bit and Arm64bit #56

Open
DrEVILish opened this issue Sep 26, 2018 · 13 comments
Open

Arm32bit and Arm64bit #56

DrEVILish opened this issue Sep 26, 2018 · 13 comments

Comments

@DrEVILish
Copy link

Unable to use this on ARM arch due to the use of
ttp://www.quicklz.com/qpress-11-linux-x64.tar
which is a compression utility, I'm trying to reformat the DockerFile to build to support arm64 and arm32.
Would you be able to tell me what this binary is used for?

@colinmollenhour
Copy link
Owner

It is used by the xtrabackup-v2 script for SST although there are alternatives such as gzip and pigz.

@DrEVILish
Copy link
Author

One other question, how is Galera-healthcheck used?
I'm having trouble compiling it into arm32 or arm64.

`https://github.com/cloudfoundry-incubator/galera-healthcheck
cd galera-healthcheck
go get

_/root/galera-healthcheck

./main.go:41:63: cannot use "code.cloudfoundry.org/lager".Data literal (type "code.cloudfoundry.org/lager".Data) as type "github.com/cloudfoundry-incubator/galera-healthcheck/vendor/code.cloudfoundry.org/lager".Data in argument to logger.Error
`etc...
Could you shed any light on if there is something I'm doing wrong?

Linux g01 4.14.5-92 #1 SMP PREEMPT Mon Dec 11 15:48:15 UTC 2017 armv7l armv7l armv7l GNU/Linux

@jsenecal
Copy link

@DrEVILish use the search function :)

It is used like this:

galera-healthcheck -user=system -password="$SYSTEM_PASSWORD" \
-port=8080 \
-availWhenDonor=false \
-availWhenReadOnly=false \
-pidfile=/var/run/galera-healthcheck-1.pid >/dev/null &
and like that:
galera-healthcheck -user=system -password="$SYSTEM_PASSWORD" \
-port=8081 \
-availWhenDonor=true \
-availWhenReadOnly=true \
-pidfile=/var/run/galera-healthcheck-2.pid >/dev/null &

@colinmollenhour
Copy link
Owner

I'm not experienced with go so I remember it was difficult to get galera-healthcheck to compile when I tried, hence the inclusion of the binary rather than the full build process.. Sorry, wasn't thinking about arm.. Note, the version used here is from https://github.com/sttts/galera-healthcheck which is a fork of the one you tried.

@DrEVILish
Copy link
Author

Thanks, I know this isn't an issue related to your project but I'm having a real issue getting a MariaDb/MySQL Galera cluster running inside docker on my OdroidXU4s currently armhf arch.

I think I've found a better solution thanks very much for your time.

@colinmollenhour
Copy link
Owner

No problem, good luck with your endeavors. I'll leave this open for future reference.

@cvb941
Copy link

cvb941 commented May 15, 2019

Thanks, I know this isn't an issue related to your project but I'm having a real issue getting a MariaDb/MySQL Galera cluster running inside docker on my OdroidXU4s currently armhf arch.

I think I've found a better solution thanks very much for your time.

Would you be okay with sharing your solution? I'm trying to run a mariadb cluster on raspberry pies, so I'm currently somewhere in a place where you were too..

@DrEVILish
Copy link
Author

So two options:
The latest version of MariaDb should have these features built in very soon.
I bought an amd64 based SBC (Upboard) which works.

@cvb941
Copy link

cvb941 commented May 20, 2019

After tinkering and troubleshooting I have finally managed to get it working on my two raspberry pies (ver. 3 and 2).

I have compiled the dependent binaries in the bin folder for docker arm32v6 using a raspberry and created a new Dockerfile using the mariadb image for raspberry from jsurf. See this commit in my forked repo, if anyone would like to use it.

I have also faced problems with an int overflow error described here and also the bind address was set to 127.0.0.1 and I had trouble changing it, in my fork I have fixed both of those issues, see the commits.

@colinmollenhour maybe we could create a template for all of the dockerfiles (mariadb versions and architectures) including my arm32 dockerfile, add a docker manifest and we could have working multiarch images for future users

@colinmollenhour
Copy link
Owner

Very nice! Please submit a pull request with the template as proposed.

@cvb941
Copy link

cvb941 commented May 23, 2019

I opened a pull request #76

@celevra
Copy link

celevra commented Jun 21, 2024

+1 for arm support

1 similar comment
@zhuqinghua
Copy link

+1 for arm support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants