Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hi Ahmed49,
Yes, it is possible to run an Avalonia application in a Linux amd64 environment (Ubuntu) using the Wayland compositor Weston within Docker containers. Additionally, you can configure the application to autorun by customizing the weston.ini file.
Here are the steps to achieve this:
Create a Dockerfile for your Avalonia application:
Ensure your Dockerfile sets up the necessary environment for running Avalonia on Linux.
Install dependencies such as .NET runtime and any other required libraries.
Create a Dockerfile for Weston:
Use a base image that includes Weston, such as torizon/weston.
Ensure the Dockerfile sets up Weston to run as a Wayland compositor.
Customize the weston.ini file:
Create a weston.ini file with the necessary configuration.
Use the [autolaunch] section to specify your Avalonia application.
Here is an example of how you might set up the weston.ini file:
Ensure the Avalonia application is set to autorun:
In the weston.ini file, the [autolaunch] section should point to the executable of your Avalonia application.
By following these steps, you should be able to run your Avalonia application in a Docker container with Weston as the Wayland compositor and have it autorun using the weston.ini configuration.
If you need further assistance or specific examples, please let me know!
Best regards,
[Your Name]
Please, also check if these links can help you solve your problem:
Yes it is possible, but AFAIK, this is not something that we have out-of-the-box for you to use.
If you are using Torizon IDE to develop your project (which seems like you are - Run-container-torizon-release-arm64 failed) you would need to customize the project configuration to launch it on your development PC inside a container.
(You can see I am inferring that you want to do this on a Linux AMD64 to be able to execute it on your development PC. Please let me know if my supposition is wrong )
What we have already available that you could use is the Local (native) build/launch configuration on the Torizon IDE template that will be executed directly on your development PC without the use of containers. Wouldn’t this be helpful for you?
If you could share more details about your use case, maybe we could recommend something else
Seems like it is possible, but I have never tried it. Seems to be quite straightforward to use: