Coder Social home page Coder Social logo

support arm64 architecture about docker HOT 10 CLOSED

matomo-org avatar matomo-org commented on July 25, 2024
support arm64 architecture

from docker.

Comments (10)

gardner avatar gardner commented on July 25, 2024

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

from docker.

gardner avatar gardner commented on July 25, 2024

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.

from docker.

longquan7 avatar longquan7 commented on July 25, 2024

@gardner I want to support arm64v8 not arm32v7

from docker.

longquan7 avatar longquan7 commented on July 25, 2024

@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"

from docker.

gardner avatar gardner commented on July 25, 2024

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!

from docker.

gardner avatar gardner commented on July 25, 2024

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

from docker.

gardner avatar gardner commented on July 25, 2024

@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

from docker.

longquan7 avatar longquan7 commented on July 25, 2024

@gardner OK ,thanks for your help

from docker.

pierreozoux avatar pierreozoux commented on July 25, 2024

Hello!

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

Thanks!

from docker.

longquan7 avatar longquan7 commented on July 25, 2024

@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" .

from docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.