Error while building Docker image for custom app

I’m trying to install an app using frappe docker, but when building the image I get:

/install_app: line 20: cd: /home/frappe/frappe-bench/apps/frappe: No such file or directory

How can I rectify this?

Can you share your app repo?
I’ll share dockerfiles for it.

Here is my fork from frappe/frappe_docker:

I have managed to fix that error but I’m still not able to install my custom app:

ttempt 1 to connect to mariadb:3306
Attempt 2 to connect to mariadb:3306
Attempt 3 to connect to mariadb:3306
Attempt 4 to connect to mariadb:3306
Attempt 1 to connect to redis-queue:6379
Attempt 1 to connect to redis-cache:6379
Attempt 1 to connect to redis-socketio:6379
Connections OK
Created user _ccc020a4292837ba
Created database _ccc020a4292837ba
Granted privileges to user _ccc020a4292837ba and database _ccc020a4292837ba
Starting database import...
Imported from database /home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/framework_mariadb.sql

Installing frappe...
Updating DocTypes for frappe        : [========================================] 100%
Updating country info               : [========================================] 100%

Installing erpnext...
Updating DocTypes for erpnext       : [========================================] 100%
Updating customizations for Address
Updating customizations for Contact
Could not find app "isppme"

Use the castlecraft/custom_frappe_docker

Here is the diff code for community reference: https://github.com/castlecraft/custom_frappe_docker/compare/isppme?expand=1

Results:

❯ docker-compose up -d
Creating isppme_docker_isppme-erpnext-nginx_1          ... done
Creating isppme_docker_redis-socketio_1                ... done
Creating isppme_docker_traefik_1                       ... done
Creating isppme_docker_redis-cache_1                   ... done
Creating isppme_docker_mariadb_1                       ... done
Creating isppme_docker_erpnext-python_1                ... done
Creating isppme_docker_redis-queue_1                   ... done
Creating isppme_docker_erpnext-schedule_1              ... done
Creating isppme_docker_isppme-erpnext-worker-long_1    ... done
Creating isppme_docker_isppme-erpnext-worker-default_1 ... done
Creating isppme_docker_isppme-erpnext-worker-short_1   ... done
Creating isppme_docker_frappe-socketio_1               ... done
Creating isppme_docker_site-creator_1                  ... done
❯ docker logs isppme_docker_site-creator_1 -f
Attempt 1 to connect to mariadb:3306
Attempt 2 to connect to mariadb:3306
Attempt 3 to connect to mariadb:3306
Attempt 4 to connect to mariadb:3306
Attempt 1 to connect to redis-queue:6379
Attempt 1 to connect to redis-cache:6379
Attempt 1 to connect to redis-socketio:6379
Connections OK
Created user _69928f0f6369849a
Created database _69928f0f6369849a
Granted privileges to user _69928f0f6369849a and database _69928f0f6369849a
Starting database import...
Imported from database /home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/framework_mariadb.sql

Installing frappe...
Updating DocTypes for frappe        : [========================================] 100%
Updating country info               : [========================================] 100%

Installing erpnext...
Updating DocTypes for erpnext       : [========================================] 100%
Updating customizations for Address
Updating customizations for Contact

Installing isppme...
Updating customizations for Program
Updating customizations for Course
Updating customizations for Student
*** Scheduler is disabled ***
1 Like

Thanks revant for your assistance, I have managed to use the castlecraft / excel_erpnext · GitLab as reference and i’m almost there. After installation and starting containers, the site does not load any css/js.

During image creation I did get a lot of these warnings:

...
warning " > esbuild-plugin-postcss2@0.0.9" has unmet peer dependency "less@^4.x".
...

Could they be the cause. And also, something weird shows up when I view-source:

<link rel="canonical" href="http://v4.isppme.com"><link type="text/css" rel="stylesheet" href="None">
<link type="text/css" rel="stylesheet" href="/assets/isppme/css/web.css?ver={{ build_version }}">
<link type="text/css" rel="stylesheet" href="/assets/css/erpnext-web.css?ver={{ build_version }}">

I can’t help further. Try this and check if it works.

This message is because develop branch of frappe is being used

1 Like

OK, Thanks a lot Revant. Let me soldier on, you’ve been very helpful.