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

One-Click Deployment Fails Due to Missing /calcom/.yarn Directory #418

Description

@lucian-duta

One-Click Deployment Fails Due to Missing /calcom/.yarn Directory

Issue Description

Attempting a one-click deployment using the following command:

cloudshell_open --repo_url "https://github.com/calcom/docker" --page "shell" --force_new_clone"

results in a failure during the Docker build process due to a missing /calcom/.yarn directory.

Steps to Reproduce

  1. Run the one-click deployment command in Google Cloud Shell:
    cloudshell_open --repo_url "https://github.com/calcom/docker" --page "shell" --force_new_clone"
  2. Follow the prompts to select a project and region.
  3. Wait for the deployment process to proceed.
  4. The build process fails with the following error:

Error Log

[ ✖ ] Failed to build container image.
Error: attempted to build and failed: docker build failed: exit status 1, output:
Dockerfile:52
--------------------
  50 |     
  51 |     COPY calcom/package.json calcom/.yarnrc.yml calcom/turbo.json calcom/i18n.json ./
  52 | >>> COPY calcom/.yarn ./.yarn
  53 |     COPY --from=builder /calcom/yarn.lock ./yarn.lock
  54 |     COPY --from=builder /calcom/node_modules ./node_modules
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref c85e4d29-9d69-41c7-b7c8-3b930b37889c::wjhwitzfgj23hi5rbzh1ng837: "/calcom/.yarn": not found

Expected Behavior

The one-click deployment should successfully build the container without missing dependencies.

Possible Cause

  • The calcom directory appears to be empty or missing required files.
  • The repository may require Git submodules, but they are not initialized by the one-click deployment.
  • .dockerignore might be excluding necessary dependencies.

Workaround

Manually initialize submodules before running the build:

cd docker
git submodule update --init --recursive
docker build -t us-west2-docker.pkg.dev/rennted-cal-booking/cloud-run-source-deploy/docker .

Suggested Fix

  • Ensure that git submodule update --init --recursive runs automatically when using the one-click deployment.
  • Verify that the calcom/.yarn directory is correctly populated before copying it in Dockerfile.
  • Update documentation to clarify any required pre-setup steps.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions