Comments (6)
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.
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.
Created some docs: https://github.com/totara/totara-docker-dev/wiki/Apple-Silicon-support
from totara-docker-dev.
@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.
patch merged into develop. Can already be used by following the instructions on the wiki page. Closing.
from totara-docker-dev.
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)
- Update PHP 8.1 image to latest version (still on beta)
- Integrated docker-dev environment for the machine learning service
- Remote server rewrite rules accidentally blocking valid directories for apache HOT 3
- Apache server drops authorization header when served over https HOT 1
- Config.php default settings have poor performance HOT 3
- Selenium on M1 HOT 4
- Two different default versions of postgres versions HOT 2
- ngrok >=3.0.0 support HOT 6
- Add additional locales to PHP containers
- egrep is deprecated in the 3.8 release of gnu-grep HOT 1
- Expose Machine Learning Service config options to .env file HOT 1
- Mysql 5.7 on M1 HOT 2
- Restrict access to some directories and files create continues error in SCORM activities HOT 2
- Update selenium & chrome images HOT 1
- Add support for redis with read replication HOT 1
- Error 'multiarch-support is not installed' during php container build HOT 1
- Outdated database credential docs HOT 1
- New DB docker images HOT 1
- Ngrok have an `ngrok.app` domain
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from totara-docker-dev.