Giter Site home page Giter Site logo

Comments (6)

derschatta avatar derschatta commented on May 24, 2024

I was able to build and push images up following these instructions: https://medium.com/geekculture/docker-build-with-mac-m1-d668c802ab96

I've built some test images:

  • totara/docker-dev-apache:multiarch
  • totara/docker-dev-nginx:multiarch
  • totara/docker-dev-php73:multiarch
  • totara/docker-dev-php73-cron:multiarch
  • totara/docker-dev-php73-debug:multiarch
  • totara/docker-dev-php74:multiarch
  • totara/docker-dev-php74-cron:multiarch
  • totara/docker-dev-php74-debug:multiarch
  • totara/docker-dev-php80:multiarch
  • totara/docker-dev-php80-cron:multiarch
  • totara/docker-dev-php80-debug:multiarch
  • totara/docker-dev-php81:multiarch
  • totara/docker-dev-php81-cron:multiarch
  • totara/docker-dev-php81-debug:multiarch

These need to be tested on a Mac with M1 or M2 chip. If they work I can see how we can create these images automatically.

The easiest way would be to create an arm.yml file under /custom/:

version: "3.7"
services:

  apache:
    image: totara/docker-dev-apache:multiarch

  nginx:
    image: totara/docker-dev-nginx:multiarch

  php-7.3:
    image: totara/docker-dev-php73:multiarch

  php-7.3-cron:
    image: totara/docker-dev-php73-cron:multiarch

  php-7.3-debug:
    image: totara/docker-dev-php73-debug:multiarch

  php-7.4:
    image: totara/docker-dev-php74:multiarch

  php-7.4-cron:
    image: totara/docker-dev-php74-cron:multiarch

  php-7.4-debug:
    image: totara/docker-dev-php74-debug:multiarch
    
  php-8.0:
    image: totara/docker-dev-php80:multiarch

  php-8.0-cron:
    image: totara/docker-dev-php80-cron:multiarch

  php-8.0-debug:
    image: totara/docker-dev-php80-debug:multiarch
    
  php-8.1:
    image: totara/docker-dev-php81:multiarch

  php-8.1-cron:
    image: totara/docker-dev-php81-cron:multiarch

  php-8.1-debug:
    image: totara/docker-dev-php81-debug:multiarch

and tup the php container. The postgres image, e.g. pgsql14, should already have multiarch support.

@benfes @Kunleodusan Could you try this out for me and see if the images work and whether there's any difference in performance?

from totara-docker-dev.

derschatta avatar derschatta commented on May 24, 2024

Also noting that the Mssql server 2017 and 2019 is not available for ARM so we'd have to stick with the AMD64 ones for now. Will check out the 2022 version though. We do not yet support it but it would be interesting to see if Totara runs on it.

from totara-docker-dev.

derschatta avatar derschatta commented on May 24, 2024

Created some docs: https://github.com/totara/totara-docker-dev/wiki/Apple-Silicon-support

from totara-docker-dev.

derschatta avatar derschatta commented on May 24, 2024

@jonnybarnes if you want to give this a try go for it and let us know if it works and whether there's an improvement.

from totara-docker-dev.

derschatta avatar derschatta commented on May 24, 2024

patch merged into develop. Can already be used by following the instructions on the wiki page. Closing.

from totara-docker-dev.

jonnybarnes avatar jonnybarnes commented on May 24, 2024

This works! Thanks

I don’t have hard numbers, but it feels quicker with dev mode tuned off in the config.php, it feels just as slow with dev mode turned on though 🐌

from totara-docker-dev.

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.