Any faster way to iteratively develop with docker install of Szurubooru? #628
Replies: 2 comments
-
For the client it might not be impossible to get around rebuilding, because the JS needs to be "compiled" to work. For the server it's possible to copy the source and map it to the docker's copy that it would use normally.
|
Beta Was this translation helpful? Give feedback.
-
I haven't worked with this project for a while but I've found that I could keep the client container running independently and only build and re-run the server container, and vice versa. That means that it doesn't have to keep restarting all of the containers every time you make a change to only the server for example. |
Beta Was this translation helpful? Give feedback.
-
My current workflow is to change files then run
sudo DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose build --no-cache
because as the install instructions mentioned, and I have experienced once, when building with cache sometimes changes don't take effect.The problem is that is takes a really long time to build on my pi. I was wondering if there's a better workflow for modifying the source and building the docker containers that both ensures all changes take effect and is faster.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions