lenra-io / lenra_cli

The Lenra's command line interface
MIT License
16 stars 1 forks source link

[Bug]: Add possibility to define platform on `lenra dev` #413

Open jonas-martinez opened 6 months ago

jonas-martinez commented 6 months ago

What happened?

When trying to run an application locally using lenra dev on MacOS and when the application is using a reference image only compiled in linux/amd64 I get an error telling me that my platform is not recognised when running the app.

When specifying by hand that I want to use this image using linux/amd64 it works.

We might need to add a way to specify the platform to use. A better solution to begin with would be to use linux/amd64 by default, forcing all devices to emulate for this platform.

What browsers are you seeing the problem on?

No response

Version

No response

Relevant log output

No response

taorepoara commented 5 months ago

To resolve this we can define in the dev part the platform for each service. Here is an example:

generator:
...
dev:
  devtool:
    platform: linux/amd64
  mongo:
    platform: linux/arm64/v8