Erxes Implementation in Cloudron
-
Hello,
I'm trying to implement Erxes in Cloudron but without sucess at this moment. Cloudron does not support docker compose and erxes uses it to build the image. Erxes use rabbitmq but cloudron does not have the addon for that.
Could someone help me?
Erxes Docs: https://docs.erxes.io/docs/deployment/deployment/deploymentDocker
GitHub Erxes-App: https://github.com/matbrgz/erxes-app.git -
-
timconsidine App Devreplied to matbrgz on Jan 3, 2023, 6:14 PM last edited by timconsidine Jan 3, 2023, 6:39 PM
@matbrgz I don't believe Cloudron supports docker-compose.
I'm no expert but looking at their install script for install.sh, most of it can be achieved without needing docker-compose anyway.
My first step looking at an app with a view to packaging it is to search if the app has a
Dockerfile
, then to modify that for Cloudron.EDIT : looking at the content of their
install.sh
, if you are working from cloudron base image 4.0xxx, all of it is redundant apart from the last line
sudo npm install -g create-erxes-app -y
Maybe your Dockerfile that you are constructing should use that and then further steps as advised in step 4.
Plus setting up DBs in your Dockerfile.EDIT 2 :
if I was attempting to package this, I would work from their steps inhttps://docs.erxes.io/docs/deployment/installation/installation-ubuntu
The only things they use docker for are to work with mongo, redis and rabbitmq.
The rest of their steps (8 onwards) would need implementing (if needed) in your Dockerfile, plus setting up mongo, redis, rabbitmq in your Dockerfile first. -
For rabbitmq, you just have to run it install the docker image itself via
supervisor
. Something like https://github.com/mcassiano/supervisord-rabbitmq-docker/blob/21144d4f22d4d57517f3aa49742c49dceddc3a0e/rabbitmq.conf and also our tutorial code https://git.cloudron.io/cloudron/tutorial-supervisor-app -
Is some interested in a bounty for doing this for me?
-
Just noticed that onlyoffice already has rabbitmq integration, if someone wants a reference. https://git.cloudron.io/cloudron/onlyoffice-app . It doesn't use supervisor, just starts rabbitmq in the background.
-
GitHub updated with some updated in supervisor. I need to implement Erxes into Cloudron ASAP, please could someone help me?
-
@matbrgz Does it need to be in Cloudron, I've looked at the install steps, and it certainly could be done, but given how complicated it is and how long it would take, a small $10 VPS could get you up and running right now.
9/11