I’ve been trying to use the repository of castlecraft/custom_frappe_docker to try to setup an image of erpnext with a custom app in a remote ubuntu server. I tested before a docker single-bench installation from this guide with the help of these guidelines of the forum to be able to access my installation by server ip, and was able to get it working.
Now I was trying to install it with the custom app I developed and after many missed attempts using the custom-apps-for-production guidelines I’m trying the castlecraft/custom_frappe_docker although I stumbled across these warnings/errors:
While running docker build --build-arg=FRAPPE_BRANCH=version-12 -t custom-erpnext-nginx:v12 nginx:
I managed to get it working by running the commands proposed for edge here, just needed to add a mariadb entry on the depends_on of site-creator in the docker-compose to fix an error. Still had the same warnings on the docker build of nginx
Thanks a lot for your help!! I don’t know if you have the same issue, but I had to add to nginx/Dockerfile these two lines before the first RUN: RUN apt-get update RUN apt-get -y install git
because I was having this issue:
Thanks for the suggestion. Sorry to bother again but I deleted my edge installation to change try version-13 and while it did remove most of the warnings it had before, it seems to crash with an “invalid reference format”:
I’m sorry for my confusion but where should I change that? The .env file already has ‘ERPNEXT_VERSION=latest’ and the docker-compose has below ‘custom-erpnext-nginx’ the image set as ‘custom-erpnext-nginx:${ERPNEXT_VERSION}’. What version variable should I change?
That worked great!! Thanks!!
I don’t know if it’s appropriate to also ask in this thread but inside my custom app I have a nodejs app I build according to the guidelines discussed in this thread and at the time I changed the Procfile in my development installation to make it start with my system. From what I understood, in a production environment I should change the file supervisor.conf but after navigating the docker containers through bash I’m not finding it. Can you point me in the right direction to where to find or where to create that file?
Then you need to set the SKIP_NGINX_TEMPLATE_GENERATION environment variable of nginx image to 1, and provide a custom nginx config that also reverse proxy your custom nodejs app.