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

support arm64 architecture #67

Closed
longquan7 opened this issue Aug 22, 2017 · 10 comments
Closed

support arm64 architecture #67

longquan7 opened this issue Aug 22, 2017 · 10 comments

Comments

@longquan7
Copy link

I want to build this image on arm64 architecture but I'm not sure this tar.gz file can be support arm64 architecture. So the file of tar.gz whether or not support arm64.

@gardner
Copy link

gardner commented Sep 1, 2017

Did you try it?

I am pretty sure that upstream docker images are based on x86. You should be able to fork this repo and replace FROM php:5.6-fpm with an equivalent arm image.

If you look at the php:5.6-fpm Dockerfile for instance, it inherits from FROM debian:jessie. If you want to deploy to 32bit ARM servers, like Scaleway C1, then you would need to use a different base image.

You can read more here: https://github.com/docker-library/official-images#architectures-other-than-amd64

@gardner
Copy link

gardner commented Sep 1, 2017

Looks like you need to change two parts of the piwik Dockerfile. The first line should be changed to FROM arm32v7/php:5.6-fpm and the x86_64-linux-gnu part needs to be changed to arm-linux-gnueabihf for the compilation to succeed.

I pushed an example with a readme file here: https://github.com/gardner/docker-piwik/blob/master/arm32v7/Dockerfile

It doesn't really fit with the existing docker-piwik build script so I'm not sure it deserves a pull request yet. Hopefully it helps you.

@longquan7
Copy link
Author

@gardner I want to support arm64v8 not arm32v7

@longquan7
Copy link
Author

@gardner I was use arm64v8/php:5.6-fpm and the x86_64-linux-gnu changed to aarch64-linux-gnueabihf,but when RUN pecl install APCu geoip was tips:No releases available for package "pecl.php.net/APCu"and No releases available for package "pecl.php.net/geoip"

@gardner
Copy link

gardner commented Sep 1, 2017

Yeah, it seems like arm support in docker really isn't great yet. I had trouble getting the fpm version working. I am not a maintainer of piwik, just an interested individual like yourself. I can't offer any more help because I don't have the time.

You are on the right path with arm64v8/php. I just can't go with you any further. Good luck!

@gardner
Copy link

gardner commented Sep 1, 2017

Maybe the piwik maintainers like @michaelze or @tianon are interested in officially supporting arm.

@gardner
Copy link

gardner commented Sep 1, 2017

@longquan7 I suggest doing tests with docker-compose and then submit a pull request to this repo. You can see examples here: https://github.com/gardner/docker-piwik/blob/master/arm32v7/docker-compose.yml

@longquan7
Copy link
Author

@gardner OK ,thanks for your help

@pierreozoux
Copy link
Collaborator

Hello!

Yes PR is more than welcome!
Here, can you check this section to prepare our repo for that please?

Thanks!

@longquan7
Copy link
Author

@pierreozoux When I was build on arm64 architecture, when "RUN pecl install APCu geoip",there is a problem that No releases available for package "pecl.php.net/APCu" and No releases available for package "pecl.php.net/geoip" .

J0WI added a commit to J0WI/docker-piwik that referenced this issue Feb 21, 2018
J0WI added a commit to J0WI/docker-piwik that referenced this issue Feb 23, 2018
J0WI added a commit to J0WI/docker-piwik that referenced this issue Apr 19, 2018
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

3 participants