Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Conversation

@vijayraghav-io
Copy link
Contributor

@vijayraghav-io vijayraghav-io commented May 30, 2025

Fixes the following issues :

  1. Avoid prefix DOCKER_BUILDKIT=0 in docker compose build command or docker compose up command.
  • As per latest docker desktop versions and buildkit version , network: stack field is not required under build. This was required in legacy versions. Refer File - docker-compose.yaml
  • Build-time Networking :The network: key within the build section (build: network: stack) is intended to specify the network mode for the RUN instructions during the image build process. BuildKit, Docker's modern build engine, does not support arbitrary custom networks (like stack) for this purpose. It primarily supports standard network modes such as host, none, or its default isolated bridge network.
    Reference: Docker's docker buildx build command documentation (which docker compose build now uses under the hood with BuildKit):
    https://docs.docker.com/reference/cli/docker/buildx/build/#network
    Reference - Missing git-init.sh and git-setup.sh and other problems #440
Before Fix After Fix
Screenshot 2025-05-30 at 9 29 53 PM Screenshot 2025-05-30 at 9 35 23 PM
  1. Build process is trying to run database migrations (yarn db-deploy) during the image build phase. This won't work because the database service isn't available during build time.
    The following line - (File - Dockerfile)
    RUN yarn db-deploy
    RUN yarn --cwd packages/prisma seed-app-store
    are executed even before the database container is ready or started. Hence the issue after prisma migrations.
    Also as reported here - Missing git-init.sh and git-setup.sh and other problems #440
    The scripts/start.sh script already has these commands and executes after db is ready, hence removing these commands from docker file.
Before Fix After Fix
Screenshot 2025-05-30 at 9 16 02 PM Screenshot 2025-05-30 at 9 17 19 PM
  1. The files git-init.sh and git-setup.sh are removed (from this PR ci: remove deprecated submodule code cal.com#20731)
    Hence the docker build is failing at a COPY cmd while trying to copy these files.
Before Fix After Fix
Screenshot 2025-05-30 at 9 50 32 PM Screenshot 2025-05-30 at 9 52 09 PM

@PeerRich PeerRich merged commit 2f27600 into calcom:main Jun 12, 2025
@vijayraghav-io
Copy link
Contributor Author

vijayraghav-io commented Jun 13, 2025

🙏

@vijayraghav-io vijayraghav-io deleted the fix_build_issues branch June 13, 2025 00:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants