Git Product home page Git Product logo

Comments (4)

maura16 avatar maura16 commented on August 12, 2024

Below images have been tested to work without having to specify platform configuration:

  • arm64v8/mysql
  • mysql/mysql-server (maintained by the Oracle team)

The following is an example of the configuration needed in the Docker Compose YAML using one of the above images:

mysql:
  image: "arm64v8/mysql"
  container_name: "mysql"

from minitrino.

maura16 avatar maura16 commented on August 12, 2024

I wonder if we can add a bash check/script to detect if host machine is running on M1 Apple hardware, i.e.

if [[ $(sysctl -n machdep.cpu.brand_string) =~ "M1" ]]; then

Above seems to be the best approach (sysctl -n machdep.cpu.brand_string returns Apple M1 Pro, Apple M2, etc.)

Note: uname -m should hypothetically return arm for M1 chips, however, if terminal or process running the script is deployed by an RMM that is running via Rosetta, may return x86_64 which can be problematic.

from minitrino.

jefflester avatar jefflester commented on August 12, 2024

The latest release added this function to the provisioning logic. In the event that the user is running on an M1 platform, an enviroment variable MODULE_PLATFORM is set to linux/amd64, which is then passed to the module's underlying docker-compose.yml file:

services:
  example:
    image: "foo/bar:latest"
    container_name: "example"
    platform: "${MODULE_PLATFORM}"

This can at least get an emulated image pulled to your machine, but is not guaranteed to work.

from minitrino.

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.