Upgrade 12.5 to 12.7.1 -- Auto migrate - Dockerfile

Hi people, I hope you are ok!

I’m having a problem trying to upgrade to the last version.
I have botpress running into a docker… When a download the last image(v12_7_1) it’s says that I should use ./bp --auto-migrate.

I tried changing my Dockerfile using into mi CMD ./bp --auto-migrate but not work…

My Dockerfile:
FROM botpress/server:v12_7_1
WORKDIR /botpress
#EXPOSE 3000
CMD ["./bp --auto-migrate"]

I build my image:
$ docker build -t botpress-dev .
Sending build context to Docker daemon 3.072kB
Step 1/3 : FROM botpress/server:v12_7_1
v12_7_1: Pulling from botpress/server
32802c0cfa4d: Pull complete
da1315cffa03: Pull complete
fa83472a3562: Pull complete
f85999a86bef: Pull complete
0b5c4db96dfc: Pull complete
cbc2f26b980f: Pull complete
Digest: sha256:b7142a00f64e8eb2485bd93fb3b845c3bcb15e115e5470b52678080c2937cac6
Status: Downloaded newer image for botpress/server:v12_7_1
—> ac801d71d85f
Step 2/3 : WORKDIR /botpress
—> Running in 6cc74f8df726
Removing intermediate container 6cc74f8df726
—> e0f592cee92f
Step 3/3 : CMD ["./bp --auto-migrate"]
—> Running in 96adbe94dde4
Removing intermediate container 96adbe94dde4
—> cc5b0dabcb71
Successfully built cc5b0dabcb71
Successfully tagged botpress-dev:latest

And then when I try to run my container not work…
docker run --detach --name=botpress-dev --publish 3000:3000 --volume /home/data:/botpress/data botpress-dev
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused “exec: “./bp --auto-migrate”: stat ./bp --auto-migrate: no such file or directory”: unknown.

What is wrong ? Any idea ?


You can start Botpress with AUTO_MIGRATE=true like this:

AUTO_MIGRATE=true ./bp

I’m facing the same issue from 12.6 to the latest version. What exactly is the upgrade process for docker? How can we run ./bp --auto-migrate in the case of a docker container? I could not find anything in the docker volume either (botpress_data).


I don’t know how to auto activate auto migrate with docker… in my case export my bot from de UI and then when update to last version import the data from the UI.