calcom / docker

The Docker configuration for Cal.com is an effort powered by people within the community. Cal.com, Inc. does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
MIT License
691 stars 363 forks source link

Custom Calcom submodule fails at `docker compose up --build` #209

Open kvnam opened 1 year ago

kvnam commented 1 year ago

Hey,

I updated the submodule within this repo to point to a forked version of the calcom repo (I needed to make some changes to the ui, no other changes outside calcom/apps/web). The submodule is correctly syncing with my own repo, I can see my files there.

But when I try to run docker compose up --build or even docker build calcom it fails at the @calcom/prisma step with the below error and quits.

Error: db error: ERROR: prepared statement "s0" already exists

The docker compose up command works perfectly fine, but it's not using my submodule and builds the original calcom repo. The DATABASE_URL is the same in both cases, no changes to the .env, so not sure why this is happening

I would appreciate some help on how I can correctly get this to work with my own forked submodule, thanks!

krumware commented 1 year ago

It sounds like there might be schema changes or other updates that aren't getting copied (COPY steps in dockerfile) into the container build successfully. In the dockerfile, some of the project files are cherry-picked, so it's possible some of yours might not be getting picked up