In the docker thread [1] I go one step further in that implementation, I have an error, could you spare a minute? Probably a silly mistake but I do not see the solution.
We used Lxd / Lxc and worked well.
Note that systemd-nspawn, available everywhere systemd is used as init system, is an option too. machinectl can help to manager containers. A lot like LXC.
thanks everybody. I am aware of virtual machines and containers (LXD, and docker).
Still question remains about looking at snap as a delivery system for a complex thing as ERPNExt.
Would boil down the installation and updating process to just one command (with almost no point of failure).
Maybe it’ll evolve sooner or later
I see ‘SNAP’ is a better way of packaging the ‘ERPNext’ and it handles all the version dependencies. Did anyone made progress on ‘Snapcraft’ Application?
actually today, if we talk about such a method for providing a one-command self-contained ERPNext installation, I’d be more in favour of AppImage as a format for such over snap.
why? it’s platform independent and not (like snapd) may only work well on ubuntu-friendly distributions
snapd daemon is available across many Linux distros but more importantly it works really well for those most commonly deployed for production. It is platform agnostic?
I just snap installed lxd and then snap installed open-source NextCloud in a container. The process took few minutes and have a running NextCloud server that self updates with snap releases managed by the developer. All with native Linux snapd daemon. So many apps are now distributed via SNAP
The impact for ERPNext can be dramatic. How many posts we have on this forum related to installation or improper installation? The target customer base is small companies who could use ease of installation and non resource consuming requirements like running infra for virtual machine or docker, etc.
I would definitely support a SNAPstore app development effort.
Having various issues trying to install across the different methods.
AppImages are great however they don’t end up containing everything and so issues between your machine and the user’s machine can still mean difficulty troubleshooting.
If Flatpak had a server focus it would be fine too.
Maybe talk to Martin Wimpress https://twitter.com/m_wimpress
He seems happy to help people get snaps going. I wonder if the docker images themselves could be snapped up with docker to make it so you don’t have to reproduce a lot of effort either
@Stephen - thanks for your guidance. I have found that the install script works in Ubuntu 18.04 KVM in a lxd container. Create user “frappe” first, add to sudo group, and then login as frappe and run install script for production with flags “–user frappe” and “–container”.
Just installed v13 beta recently and was without issue…
Snaps would be great - but building with docker would make it even more “heavy”… not an expert - far from it - so will leave that decision to the powers that understand it best :-), I did try the docker install method as well and the lxd container size was 18GB. In contrast install script container size around 1.4GB - so dont know if I installed it right… was quite the curve to get docker working inside lxd…
I will give that a try, thanks!
And I don’t doubt at all that snapping up the docker containers would add extra bloat, but I figured if they went that route they would notice less support requests, and then maybe in the future trim it down a bit, but in the meantime maintaining the snapped up docker images wouldn’t be a lot of overheard.
Looking forward to getting this running!
How did it work?
I had actually gotten ERPnext working in Docker, but it was in a very fiddly state. I decided at the time I didn’t have enough time to play with it anymore but I am back again and trying! Funny enough I may just need to try LXD since its not playing nice with Apache
I use LXC. It’s more performant and easier than the Docker.
yes yes erpnext guys, please wake up! make transition to snap installation and make your system installable with one only command! like for example Nextcloud server >> sudo snap install nextcloud!!! whole installation is done in 10-15 min and every user can do it! You are still promoting and favoring docker or lxd containers? So you are not thinking and caring about your customers/users and your future!
You can do it and just once! Then ERPnext can grow <3
wrong! snap is completely another dimension than appimage (which i use and like) but we are talking about server installation etc and there my friend appimage or flatpak etc are lost cases compared to snap.
I would appreciate snap as I expected the docker version to be easy but it seems more complicated than a manual install. With ensuring you have docker-compose-v2 now coming with docker-desktop (does that work on a gpu less server?). Do you use the apt docker or follow the docker sites install instructions on Ubuntu 22.04?
I’m a Linux expert that has never used docker before and it has been over an hour and I haven’t really got past
git clone https://github.com/frappe/frappe_docker
cd frappe_docker
Edit:
Okay after installing docker-compose-v2 via apt
docker compose version
Gives: Docker Compose version 2.20.2+ds1-0ubuntu1~22.04.
So I guess that is all good?
Edit2:
So I somehow missed the easy install script and went straight to
https://github.com/frappe/frappe_docker
ERPNext is a complex software to install right now!
I have counted about 13 individual parts that need to be installed and fit all together!
I don’t believe this can be easily achieved on snap, but may it’s just my lack of experience with snap!
I have frappe running on docker with a decent configuration!
I use 3 stacks of services
-
background
- redis
- workers
-
backend + socketio
-
frontend
Whenever I wanna a new installation I only need to spin up a new frontend service!
To manage those stacks I’m using Coolify on the host, and N8N as automator
Fair enough. I might just do a manual install.
I tried the default easy script and tried modifying it for no_proxy which is commented as TODO.
In both cases I get 404 not found either from traefik or docker-proxy in the compose.noproxy.yaml case.
I came across this but multiple docker services seem to have sites and bench so perhaps a manual install without docker would actually be easier.
Any pointers would be appreciated
My dear Erpnext guys, please hear me out again! Sure i’m not well informed about Erpnext/frappe and my previous posts may seem stupid. I accept my ignorance and I wanna learn and I know erpnext is epic and you know what are you doing! <3
But again from user perspective, and I’m advanced linux user and admin, and from marketing point of view I can’t understand why you would not create ErpNext snap install?!!!
Do you want your user to be able to install your system fast and easy? Please make once and for ever snap installation!
Why? Because the user would be able to install erpnext and all it’s components with only one command ‘sudo snap install erpnext’
Ofc some work on your side, but just once!
I’m using Nextcloud server as snap from 2018/2019 and i haven’t seen anything easier as this!
You set up your vps server, security etc and then only one command to install what you want!
No need to download anything, setup anything, configure anything system wide (only App wise after installation).
Tell me what is better than this? I’m using snap Nextcloud server from 2018 until now without any problem. All works great, all is updated automatically, I’m just updating server and focusing on Nextcloud! From 2018 every time any of my customers needs cloud solution I just create vps server with only one command in few minutes as any amateur could!
Don’t you want any amateur to be able to install ERPNext easy as that?
More people using ERPNext = the bigger community and success, which is my only motivation and reason why I write this.
Marketing nowadays is customer success.
Imagine any of your customers can get your system with only one command ‘sudo snap install erpnext’ and never care about anything else besides using ERPNext!
The way I install setup and use Nextcloud server! Just one command and then you only manage Nextcloud admin, apps, users, thru browser (no need care about anything besides keeping server updated).
I’ve already tried install erpnext few times and let me tell you not so easy. Donwloading 20GB containers seems easier but customer wise not that much with learning dockers etc stuff which i can ofc.
But from marketing point of view I don’t see anything better than snap installation of ERPNext!
Same as nextcloud server which I’m using from 2018!
You do it once and then anybody can install your beautiful ERP solution with just one command!
Besides we all know your solution is kinda complicated, but complete, holistic and pretty awesome! (and i’ve tried many erp solutions)
so … just my little honest thoughts and wishes!
<3
I have moved to a manual production install on Devuan/runit and I am much happier with all my security, management, networking and update questions intuitively resolved. Docker complicates all of that. Devuan obviously negates snaps which require systemd so I have changed my mind about any desire for a snap. I have also since found snapd to be slow on some hardware compared to e.g. apt.