Will Nop 4.1 support Docker Clustering ?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi,

I'm an.Net Developer (but completly new to NOP) , I work on Asp .net Core for 1 year now, and I'm very pleased to be able to host my production web sites within docker containers drived by orchestrators (Kubernetes/Docker Swarm...) on a Unix cloud.

Now since I developped myself my web apps, I took into account the future clustering hosting constraints to be able to run into a docker cloud (external cache storing, no host local dependencies etc ...) and it works like a charm with very high performances and availability.

Now since Asp Core 2.1 has been released, and  EF Core now supports with 'Lazy loading', Nop 4.1 future release will certainly only reference the asp core framework (no more old 4.6.1), so it will be fully compatible with Unix and with Unix Docker containers. As some users already noticed the nopcommerce Docker hub registry as already been reserved https://hub.docker.com/u/nopcommerce/ which let me think the docker support is the next disruptive hosting of Nop.

My question is then : will NOP 4.1 be fully compatible with a Docker Clustering hosting driven by Orchestrator or some limitations may be blocking ?

As I need to migrate from 3.8 to 4.0, depending on your response I may wait for the 4.1 to be released if it's 100% docker clustering compatible (avoiding some pain in double migrations...)

Many thanks
Nicolas
5 years ago
Bump TTT
5 years ago
We'll try to check it soon. Here is a work item
5 years ago
Cladoo wrote:

My question is then : will NOP 4.1 be fully compatible with a Docker Clustering hosting driven by Orchestrator or some limitations may be blocking ?
Many thanks
Nicolas


Hi Nicolas,

I tried running nopCommerce 4.10 on a Linux Docker Container. It compiles fine on Linux but you can't run nopCommerce 4.10 on a Linux container mainly because of file/directory path issues i.e the plugins could not be loaded properly.
Basically the code in the PluginManager needs to be changed a little bit to handle paths that a Unix based i.e / vs \.

It would be great if the nopCommerce team has a chance to look at it as I believe many people will benefit of running nopCommerce on a Linux container as they are much smaller than the Windows containers.

Thanks,
Boyko
5 years ago
Nop-Templates.com wrote:

...you can't run nopCommerce 4.10 on a Linux container mainly because of file/directory path issues i.e the plugins could not be loaded properly.
Basically the code in the PluginManager needs to be changed a little bit to handle paths that a Unix based i.e / vs \.


Some useful tidbits:


// determine OS
var isLinux = System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
var isWindows = System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
var isMac = System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
// determine base path


Also:

Path.GetFullPath(Path.Combine(BasePath, relativePath));
3 years ago
I have same desire on K8 AKS in combination with Azure db.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.