mozart icon indicating copy to clipboard operation
mozart copied to clipboard

No docker manifest entry for M3 Max?

Open TobiasBg opened this issue 1 year ago • 6 comments

Hi @coenjacobs,

I'm trying to run mozart via Docker on an M3 Max. I'm not getting no matching manifest for linux/arm64/v8 in the manifest list entries when running docker pull coenjacobs/mozart I didn't see this back in May (when my workflow last used mozart), so that I assume that something changed recently?

Is this something that I can or should adjust in my configuration?

TobiasBg avatar Jul 24 '24 15:07 TobiasBg

Hi again!

Ok, it seems like you have been pushing only linux/amd64 to Docker Hub for quite some time, so that my issue probably has a different cause.

It appears that I can simply add --platform linux/amd64 to the Docker calls to get around this problem.

However, I then get a PHP error from inside the container:

Fatal error: Uncaught Error: Class "Symfony\Component\Console\Application" not found in /mozart/src/Console/Application.php:8
Stack trace:
#0 /project/vendor/composer/ClassLoader.php(576): include()
#1 /project/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/mozart/vendor/...')
#2 /mozart/bin/mozart(27): Composer\Autoload\ClassLoader->loadClass('CoenJacobs\\Moza...')
#3 /mozart/bin/mozart(29): {closure}('0.8.0')
#4 {main}
  thrown in /mozart/src/Console/Application.php on line 8

TobiasBg avatar Jul 24 '24 15:07 TobiasBg

@TobiasBg What tag of the Docker image are you getting that error with?

coenjacobs avatar Jul 24 '24 16:07 coenjacobs

Hi @coenjacobs! Thanks for the reply! I'm not using any tag in particular, so I guess it's latest. I just call docker run --rm -it -v ${PWD}:/project/ coenjacobs/mozart /mozart/bin/mozart compose in a build script.

TobiasBg avatar Jul 24 '24 18:07 TobiasBg

@TobiasBg Could you try it with one of the versioned tags: https://hub.docker.com/r/coenjacobs/mozart/tags - the latest tag is effectively the master branch and can contain faulty builds. I guess I should actually update the README for this as well, as it doesn't say that there either.

coenjacobs avatar Jul 24 '24 18:07 coenjacobs

@coenjacobs: Thanks! Indeed, Using 0.7.1, i.e. calling docker run --rm -it -v ${PWD}:/project/ coenjacobs/mozart:0.7.1 /mozart/bin/mozart compose resolves both the Docker and the Symfony error.

Unless you would like to keep this issue as a reminder for a potential readme change, this can be closed.

TobiasBg avatar Jul 24 '24 19:07 TobiasBg

@TobiasBg Thanks for letting me know, glad to hear that resolved your issue. I'll leave it open for now, so I have a reminder to work on the documentation indeed - thanks again!

coenjacobs avatar Jul 24 '24 19:07 coenjacobs