espocrm/ext-template

Discussion for improvement plugin development on docker

Opened this issue · 5 comments

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

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.

on docker also?

No.

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

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