espocrm / ext-template

Template repository for EspoCRM extensions
Creative Commons Zero v1.0 Universal
30 stars 17 forks source link

Discussion for improvement plugin development on docker #13

Open kczereczon opened 1 year ago

kczereczon commented 1 year ago

I found development plugin on docker with process described in description is very slow. Is there any possibility how to speed up development. Building site inside docker takes ~30 min on pc with bad performance. If you have an idea how to make it faster I would try to make implementation of it.

My current attempt:

  1. Create docker-compose with custom dockerfile with needed libraries for running espo (php and node)
  2. Using commands described in description

What I want to try:

  1. Create new docker image like https://github.com/espocrm/espocrm-docker but instead of containing built Espo it would contain full Espo from github with all dev needed stuff (npm build dev)
  2. Create docker-compose with mapping src to custom/Module and client/custom/module
yurikuzn commented 1 year ago

I don't know about any possibility. It usually needed only once to built. It takes a few minutes, my PC is 10 year old.

kczereczon commented 1 year ago

on docker also?

yurikuzn commented 1 year ago

No.

kczereczon commented 1 year ago

Without docker site is building quite fast but on docker it really painful, same with node build.js --copy

yurikuzn commented 1 year ago

Maybe you need to tweak something. Copying files should not take that long.