botpress / solutions

List of Botpress templates / examples for common problems. Kick start your chatbot development with these ready-to-go custom modules, actions, hooks, and tools!
https://botpress.com
56 stars 26 forks source link

Add Dockerfile for image builder #18

Closed JustusNBB closed 2 years ago

JustusNBB commented 2 years ago

It's much more preferable to use this tool dockerized on node14 instead of an outdated node12 binary with questionable installation path.

Usage can require forwarding the docker socket into the container, e.g.:

docker run -v /var/run/docker.sock:/var/run/docker.sock bp_image_builder sh -c "yarn start login <d> <u> <p>; yarn start build <d>"

Also you need extra host mappings around localhost if you want to develop this solution on locally on one machine:

docker run [...] --add-host <botpress.local>:<localNetworkIP> [...]
# e.g.
docker run [...] --add-host mybotpress.dev:192.168.0.5 [...]

Would you please release it on docker hub (can also be automated)?

JustusNBB commented 2 years ago

I remember there were no issues when I requested botpress/module-builder:v0_0_2 (although that one could be outdated by now..). Can I help with anything else here?

JustusNBB commented 2 years ago

@davidvitora would you please publish this tool alongside module-builder:0.0.3 on ghcr.io?