Leopere
11/19/2022, 6:46 PMLeopere
11/19/2022, 6:46 PMSascha Foerster
12/08/2022, 8:26 AMzomars
12/08/2022, 5:06 PMColin - Krumware
12/08/2022, 5:18 PMColin - Krumware
12/08/2022, 7:43 PMColin - Krumware
12/08/2022, 7:45 PMColin - Krumware
12/08/2022, 7:45 PMv.2.3.5
since I'm using the image and not buildingSascha Foerster
12/08/2022, 10:26 PMSascha Foerster
12/08/2022, 10:26 PMcd /home/calcom-docker
git pull
git submodule update --remote --init
docker compose pull
DOCKER_BUILDKIT=0 docker compose build calcom
Sascha Foerster
12/08/2022, 10:29 PMDOCKER_BUILDKIT=0 docker compose build calcom
Sending build context to Docker daemon 63.2MB
Step 1/33 : FROM node:16 as builder
---> 993a4cf9c1e8
Step 2/33 : WORKDIR /calcom
---> Using cache
---> 1d444e319753
Step 3/33 : ARG NEXT_PUBLIC_LICENSE_CONSENT
---> Using cache
---> 38eca7152437
Step 4/33 : ARG CALCOM_TELEMETRY_DISABLED
---> Using cache
---> 1e7629e0bde0
Step 5/33 : ARG DATABASE_URL
---> Using cache
---> ae07c71a6c20
Step 6/33 : ARG NEXTAUTH_SECRET=secret
---> Using cache
---> c22575282e67
Step 7/33 : ARG CALENDSO_ENCRYPTION_KEY=secret
---> Using cache
---> 22d31813fe55
Step 8/33 : ARG MAX_OLD_SPACE_SIZE=4096
---> Using cache
---> d5115c6f5ae2
Step 9/33 : ENV NEXT_PUBLIC_WEBAPP_URL=<http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER> NEXT_PUBLIC_LICENSE_CONSENT=$NEXT_PUBLIC_LICENSE_CONSENT CALCOM_TELEMETRY_DISABLED=$CALCOM_TELEMETRY_DISABLED DATABASE_URL=$DATABASE_URL NEXTAUTH_SECRET=${NEXTAUTH_SECRET} CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY} NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE}
---> Using cache
---> 679b3632149b
Step 10/33 : COPY calcom/package.json calcom/yarn.lock calcom/turbo.json ./
---> 39cf2f326a77
Step 11/33 : COPY calcom/apps/web ./apps/web
---> c2baf134c01b
Step 12/33 : COPY calcom/packages ./packages
---> a30e0d30a2b1
Step 13/33 : RUN yarn global add turbo && yarn config set network-timeout 1000000000 -g && turbo prune --scope=@calcom/web --docker && yarn install
---> Running in f64f19b8eaf6
yarn global v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "turbo@1.6.3" with binaries:
- turbo
Done in 5.85s.
yarn config v1.22.19
success Set "network-timeout" to "1000000000".
Done in 0.06s.
Generating pruned monorepo for @calcom/web in /calcom/out
- Added @calcom/web
- Added @calcom/dayjs
- Added @calcom/trpc
- Added @calcom/zoomvideo
- Added @calcom/office365video
- Added @calcom/app-store-cli
- Added @calcom/ui
- Added @calcom/embed-snippet
- Added @calcom/dailyvideo
- Added @calcom/tsconfig
- Added @calcom/lib
- Added @calcom/core
- Added @calcom/app-store
- Added @calcom/prisma
- Added @calcom/embed-core
- Added @calcom/features
- Added @calcom/types
- Added @calcom/config
- Added @calcom/eslint-plugin-eslint
- Added @calcom/embed-react
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "@types/node@16.9.1" is incompatible with requested version "@types/node@^12.12.6"
warning Resolution field "@types/node@16.9.1" is incompatible with requested version "@types/node@^12.12.6"
warning Resolution field "@types/node@16.9.1" is incompatible with requested version "@types/node@^12.12.6"
warning Resolution field "@types/node@16.9.1" is incompatible with requested version "@types/node@^12.12.54"
[3/5] Fetching packages...Sascha Foerster
12/08/2022, 10:29 PM...
Step 14/33 : RUN yarn turbo run build --filter=@calcom/web
---> Running in ac18591ecfe3
yarn run v1.22.19
$ /calcom/node_modules/.bin/turbo run build --filter=@calcom/web
WARNING cannot find a .git folder. Falling back to manual file hashing (which may be slower). If you are running this build in a pruned directory, you can ignore this message. Otherwise, please initialize a git repository in the root of your monorepo
• Packages in scope: @calcom/web
• Running build in 1 packages
@calcom/app-store-cli:build: cache bypass, force executing 052683f0cba0a4f1
@calcom/embed-core:build: cache bypass, force executing a666f6c5c77802bd
@calcom/prisma:post-install: cache bypass, force executing 78f356018eb45025
@calcom/prisma:db-deploy: cache bypass, force executing 9bd4df72bb40e7f7
@calcom/prisma:post-install: $ yarn generate-schemas
@calcom/prisma:db-deploy: $ yarn prisma migrate deploy
@calcom/embed-core:build: $ NEXT_PUBLIC_EMBED_FINGER_PRINT=$(git rev-parse --short HEAD) yarn __build
@calcom/app-store-cli:build: warning package.json: No license field
@calcom/embed-core:build: fatal: not a git repository (or any of the parent directories): .git
@calcom/app-store-cli:build: $ ts-node --transpile-only src/app-store.ts
@calcom/prisma:post-install: $ prisma generate && prisma format
@calcom/prisma:db-deploy: $ /calcom/node_modules/.bin/prisma migrate deploy
@calcom/embed-core:build: $ yarn tailwind && vite build && tsc --emitDeclarationOnly --declarationDir dist && cp -r ../../../apps/web/public/embed ./dist/
@calcom/embed-core:build: $ yarn tailwindcss -i ./src/styles.css -o ./src/tailwind.generated.css
@calcom/embed-core:build: $ /calcom/node_modules/.bin/tailwindcss -i ./src/styles.css -o ./src/tailwind.generated.css
@calcom/prisma:post-install: Prisma schema loaded from schema.prisma
@calcom/prisma:db-deploy: Prisma schema loaded from schema.prisma
@calcom/prisma:db-deploy: Datasource "db": PostgreSQL database "calendso", schema "public" at "database:5432"
@calcom/prisma:db-deploy:
@calcom/prisma:db-deploy: 144 migrations found in prisma/migrations
@calcom/prisma:db-deploy:
@calcom/prisma:db-deploy:
@calcom/prisma:db-deploy: No pending migrations to apply.
@calcom/embed-core:build:
@calcom/embed-core:build: Rebuilding...
@calcom/embed-core:build: DEPRECATION: adding rounded classes via the variants array is deprecated. Use nocompatible mode instead (i.e. when adding the plugin, use `scrollbarPlugin({ nocompatible: true })`)
@calcom/app-store-cli:build: No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
@calcom/embed-core:build:
@calcom/embed-core:build: Done in 1259ms.
@calcom/app-store-cli:build: No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
@calcom/app-store-cli:build: No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
@calcom/app-store-cli:build: No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
@calcom/app-store-cli:build: No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
@calcom/app-store-cli:build: Generated apps.metadata.generated.ts, apps.server.generated.ts, apps.browser.generated.tsx, apps.schemas.generated.ts, apps.keys-schemas.generated.ts
@calcom/embed-core:build: vite v2.9.15 building for production...
@calcom/embed-core:build: transforming...
@calcom/embed-core:build: DEPRECATION: adding rounded classes via the variants array is deprecated. Use nocompatible mode instead (i.e. when adding the plugin, use `scrollbarPlugin({ nocompatible: true })`)
@calcom/prisma:post-install:
@calcom/prisma:post-install: ✔ Generated Prisma Client (4.2.1 | library) to ./../../node_modules/@prisma/client in 1.03s
@calcom/prisma:post-install:
@calcom/prisma:post-install: ✔ Generated Zod Schemas (0.5.4) to ./zod in 1.67s
@calcom/prisma:post-install: You can now start using Prisma Client in your code. Reference: <https://pris.ly/d/client>
@calcom/prisma:post-install:
@calcom/prismapost install import { PrismaClient } from '@prisma/client'
@calcom/prismapost install const prisma = new PrismaClient()
@calcom/prismapost install @calcom/embed-core:build: ✓ 17 modules transformed.
@calcom/embed-core:build: rendering chunks...
@calcom/embed-core:build: dist/preview.html 0.61 KiB
@calcom/embed-core:build: dist/preview.js 2.00 KiB / gzip: 1.03 KiB
@calcom/embed-core:build: dist/embed.js 26.40 KiB / gzip: 7.81 KiB
@calcom/embed-core:build: dist/assets/embed.7fbf73d3.css 12.72 KiB / gzip: 3.34 KiB
@calcom/prisma:post-install: Prisma schema loaded from schema.prisma
@calcom/prisma:post-install: Formatted /calcom/packages/prisma/schema.prisma in 301ms 🚀
@calcom/prisma:build: cache bypass, force executing 9af7d2188f5f7954
@calcom/prisma:build: $ yarn prisma migrate deploy && yarn seed-app-store
@calcom/prisma:build: $ /calcom/node_modules/.bin/prisma migrate deploy
@calcom/prisma:build: Prisma schema loaded from schema.prisma
@calcom/prisma:build: Datasource "db": PostgreSQL database "calendso", schema "public" at "database:5432"
@calcom/prisma:build:
@calcom/prisma:build: 144 migrations found in prisma/migrations
@calcom/prisma:build:
@calcom/prisma:build:
@calcom/prisma:build: No pending migrations to apply.
@calcom/prisma:build: ┌─────────────────────────────────────────────────────────┐
@calcom/prisma:build: │ Update available 4.2.1 -> 4.7.1 │
@calcom/prisma:build: │ Run the following to update │
@calcom/prisma:build: │ yarn add --dev prisma@latest │
@calcom/prisma:build: │ yarn add @prisma/client@latest │
@calcom/prisma:build: └─────────────────────────────────────────────────────────┘
@calcom/prisma:build: $ ts-node --transpile-only ./seed-app-store.ts
@calcom/prisma:build: 📲 Upserted app: 'apple-calendar'
@calcom/prisma:build: 📲 Upserted app: 'caldav-calendar'
@calcom/prisma:build: Error adding google credentials to DB: Unexpected end of JSON input
@calcom/prisma:build: 📲 Upserted app: 'jitsi'
@calcom/prisma:build: 📲 Upserted app: 'wipe-my-cal'
@calcom/embed-snippet:build: cache miss, executing fa001fc8daa2ac41
@calcom/prisma:build: 📲 Upserted app: 'huddle01'
@calcom/prisma:build: 📲 Upserted app: 'routing-forms'
@calcom/prisma:build: 📲 Upserted app: 'whereby'
@calcom/prisma:build: 📲 Upserted app: 'around'
@calcom/prisma:build: 📲 Upserted app: 'riverside'
@calcom/prisma:build: 📲 Upserted app: 'typeform'
@calcom/prisma:build: 📲 Upserted app: 'ping'
@calcom/prisma:build: 📲 Upserted app: 'campfire'
@calcom/prisma:build: 📲 Upserted app: 'rainbow'
@calcom/prisma:build: 📲 Upserted app: 'raycast'
@calcom/prisma:build: 📲 Upserted app: 'n8n'
@calcom/prisma:build: 📲 Upserted app: 'exchange'
@calcom/prisma:build: 📲 Upserted app: 'qr_code'
@calcom/prisma:build: 📲 Upserted app: 'weather_in_your_calendar'
@calcom/prisma:build: 📲 Upserted app: 'fathom'
@calcom/prisma:build: 📲 Upserted app: 'plausible'
@calcom/prisma:build: 📲 Upserted app: 'wordpress'
@calcom/prisma:build: 📲 Upserted app: 'ga4'
@calcom/prisma:build: 📲 Upserted app: 'pipedream'
@calcom/prisma:build: 📲 Upserted app: 'sirius_video'
@calcom/prisma:build: 📲 Upserted app: 'sendgrid'
@calcom/prisma:build: 📲 Upserted app: 'closecom'
@calcom/prisma:build: 📲 Upserted app: 'whatsapp'
@calcom/prisma:build: 📲 Upserted app: 'telegram'
@calcom/prisma:build: 📲 Upserted app: 'signal'
@calcom/prisma:build: Skipping Routing Form - Seeding - Pro User not found
@calcom/embed-snippet:build: $ vite build && tsc --emitDeclarationOnly --declarationDir dist
@calcom/embed-snippet:build: vite v2.9.15 building for production...
@calcom/embed-snippet:build: transforming...
@calcom/embed-snippet:build: ✓ 1 modules transformed.
@calcom/embed-snippet:build: rendering chunks...
@calcom/embed-snippet:build: dist/snippet.es.js 1.04 KiB / gzip: 0.50 KiB
@calcom/embed-snippet:build: Entry module "src/index.ts" is using named and default exports together. Consumers of your bundle will have to use `snippet["default"]` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning
@calcom/embed-snippet:build: dist/snippet.umd.js 0.88 KiB / gzip: 0.55 KiB
Sascha Foerster
12/08/2022, 10:29 PM@calcom/embed-react:build: cache miss, executing d7ea3a0aacc0f85a
@calcom/embed-react:build: $ vite build && tsc --emitDeclarationOnly --declarationDir dist
@calcom/embed-react:build: vite v2.9.15 building for production...
@calcom/embed-react:build: transforming...
@calcom/embed-react:build: ✓ 12 modules transformed.
@calcom/embed-react:build: rendering chunks...
@calcom/embed-react:build: dist/Cal.es.js 3.48 KiB / gzip: 1.48 KiB
@calcom/embed-react:build: dist/Cal.umd.js 2.39 KiB / gzip: 1.32 KiB
@calcom/web:build: cache miss, executing 27b9b116f880108f
@calcom/web:build: $ next build
@calcom/web:build: warn EMAIL_FROM environment variable is not set, this may indicate mailing is currently disabled. Please refer to the .env.example file.
@calcom/web:build: warn - axiom: Envvars not detected. If this is production please see <https://github.com/axiomhq/next-axiom> for help
@calcom/web:build: warn - axiom: Sending Web Vitals to /dev/null
@calcom/web:build: warn - axiom: Sending logs to console
@calcom/web:build: Attention: Next.js now collects completely anonymous telemetry regarding usage.
@calcom/web:build: This information is used to shape Next.js' roadmap and prioritize features.
@calcom/web:build: You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
@calcom/web:build: <https://nextjs.org/telemetry>
@calcom/web:build:
@calcom/web:build: info - Linting and checking validity of types...
@calcom/web:build: info - Creating an optimized production build...
@calcom/web:build: warn - You are using an experimental edge runtime, the API might change.
@calcom/web:build: <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (176kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
@calcom/web:build: Failed to compile.
@calcom/web:build:
@calcom/web:build: ../../packages/features/ee/common/components/LicenseRequired.tsx
@calcom/web:build: Module not found: Can't resolve 'dompurify' in '/calcom/packages/features/ee/common/components'
@calcom/web:build:
@calcom/web:build: Import trace for requested module:
@calcom/web:build: ../../packages/features/ee/common/components/LicenseRequired.tsx
@calcom/web:build:
@calcom/web:build: ../../packages/features/ee/common/components/v2/LicenseRequired.tsx
@calcom/web:build: Module not found: Can't resolve 'dompurify' in '/calcom/packages/features/ee/common/components/v2'
@calcom/web:build:
@calcom/web:build: Import trace for requested module:
@calcom/web:build: ../../packages/features/ee/common/components/v2/LicenseRequired.tsx
@calcom/web:build:
@calcom/web:build:
@calcom/web:build: > Build failed because of webpack errors
@calcom/web:build: error Command failed with exit code 1.
@calcom/web:build: info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
@calcom/web:build: ERROR: command finished with error: command (apps/web) yarn run build exited (1)
command (apps/web) yarn run build exited (1)
Tasks: 7 successful, 8 total
Cached: 0 cached, 8 total
Time: 4m6.353s
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
1 error occurred:
* Status: The command '/bin/sh -c yarn turbo run build --filter=@calcom/web' returned a non-zero code: 1, Code: 1
Sascha Foerster
12/08/2022, 10:30 PMSascha Foerster
12/08/2022, 10:30 PMSascha Foerster
12/08/2022, 10:30 PMEMAIL_FROM environment variable is not set, this may indicate mailing is currently disabled. Please refer to the .env.example file.
Sascha Foerster
12/08/2022, 10:31 PMSascha Foerster
12/08/2022, 10:31 PMColin - Krumware
12/08/2022, 11:13 PMColin - Krumware
12/08/2022, 11:13 PMzomars
12/08/2022, 11:16 PMzomars
12/08/2022, 11:16 PMzomars
12/08/2022, 11:18 PMzomars
12/08/2022, 11:30 PMSascha Foerster
12/09/2022, 7:15 AMElliott
12/20/2022, 4:22 PMColin - Krumware
12/21/2022, 6:03 PMJosh
12/21/2022, 10:59 PMCurrently, this image is intended for local development/evaluation use onlyand it describes the build time requirement surrounding
BASE_URL
…
…but i’ve seen in the docker logs where these are getting updated at runtime.
so i’m curious: is that effort complete? can the docker image be used in production now?Josh
12/21/2022, 11:35 PMNEXTAUTH_SECRET
and DATABASE_URL
are required build-time variables and, therefore, baked into the docker image…. would it be possible to extract them from the docker image?Josh
12/21/2022, 11:36 PMNEXTAUTH_SECRET
and DATABASE_URL
are all listed as ‘required’ in the run-time variables table on the README.md