Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00dd939901 |
@@ -51,7 +51,6 @@ ZOOM_CLIENT_SECRET=
|
|||||||
|
|
||||||
# E-mail settings
|
# E-mail settings
|
||||||
# Configures the global From: header whilst sending emails.
|
# Configures the global From: header whilst sending emails.
|
||||||
EMAIL_FROM_NAME=YourOrganizationName
|
|
||||||
EMAIL_FROM=notifications@example.com
|
EMAIL_FROM=notifications@example.com
|
||||||
|
|
||||||
# Configure SMTP settings (@see https://nodemailer.com/smtp/).
|
# Configure SMTP settings (@see https://nodemailer.com/smtp/).
|
||||||
|
|||||||
@@ -1,64 +0,0 @@
|
|||||||
name: "Create Release Tag"
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
version:
|
|
||||||
description: 'The new release tag to create (e.g., v3.8.1)'
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
commit_sha:
|
|
||||||
description: 'The short commit SHA from the calcom submodule to use for this release'
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
name: "Tag Release"
|
|
||||||
runs-on: "ubuntu-latest"
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: "Checkout main branch to get starting point"
|
|
||||||
uses: "actions/checkout@v4"
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.TOKEN_GITEA }}
|
|
||||||
# We check out main, but will create the release commit off of it
|
|
||||||
# without modifying the branch itself.
|
|
||||||
ref: 'main'
|
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- name: "Create Release Commit and Tag"
|
|
||||||
run: |
|
|
||||||
# Configure git user for the commit
|
|
||||||
git config user.email "actions@gitea.local"
|
|
||||||
git config user.name "Gitea Actions"
|
|
||||||
|
|
||||||
echo "Updating submodule to commit ${{ inputs.commit_sha }}..."
|
|
||||||
|
|
||||||
# Navigate into the submodule, fetch latest history, and check out the specific commit.
|
|
||||||
# This modifies the submodule's checked-out version in the working directory.
|
|
||||||
cd calcom
|
|
||||||
git fetch origin
|
|
||||||
git checkout ${{ inputs.commit_sha }}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Stage the change to the submodule pointer.
|
|
||||||
git add calcom
|
|
||||||
|
|
||||||
# Create a NEW commit. This commit is NOT on the main branch.
|
|
||||||
# It's a "dangling" commit that only HEAD is pointing to at this moment.
|
|
||||||
# The parent of this new commit is the latest commit from 'main'.
|
|
||||||
git commit -m "release: Version ${{ inputs.version }} with calcom at ${{ inputs.commit_sha }}"
|
|
||||||
|
|
||||||
# Get the full SHA of the new commit we just created.
|
|
||||||
NEW_COMMIT_SHA=$(git rev-parse HEAD)
|
|
||||||
echo "Created new release commit: $NEW_COMMIT_SHA"
|
|
||||||
|
|
||||||
echo "Creating and pushing tag ${{ inputs.version }}..."
|
|
||||||
|
|
||||||
# Create an annotated tag pointing directly at our new, branchless commit.
|
|
||||||
git tag -a "${{ inputs.version }}" -m "Release ${{ inputs.version }}" $NEW_COMMIT_SHA
|
|
||||||
|
|
||||||
# Push ONLY the new tag to the repository. Git will automatically send
|
|
||||||
# the required commit object ($NEW_COMMIT_SHA) along with the tag.
|
|
||||||
git push origin "${{ inputs.version }}"
|
|
||||||
93
.github/workflows/create-release.yaml
vendored
93
.github/workflows/create-release.yaml
vendored
@@ -1,77 +1,60 @@
|
|||||||
name: "Create Gitea Release"
|
name: "Create Release"
|
||||||
|
|
||||||
# This workflow is triggered manually from the Gitea Actions UI
|
on: # yamllint disable-line rule:truthy
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
RELEASE_TAG:
|
RELEASE_TAG:
|
||||||
description: 'The release tag to create, formatted as v{Major}.{Minor}.{Patch}'
|
description: 'v{Major}.{Minor}.{Patch}'
|
||||||
required: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: "Release"
|
name: "Release"
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Step 1: Check out the repository source code and its submodules.
|
|
||||||
# The TOKEN_GITEA is used here to grant permission for the later 'git push'.
|
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
uses: "actions/checkout@v4"
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.TOKEN_GITEA }}
|
token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
# Step 2: Create a new release branch, update the submodule to the specified tag,
|
- name: Create branch and tag submodule
|
||||||
# and push the new branch to the Gitea repository.
|
|
||||||
- name: Create Branch and Update Submodule
|
|
||||||
run: |
|
run: |
|
||||||
# Configure git user for the commit
|
git config user.email "actions@github.com"
|
||||||
git config user.email "actions@gitea.local"
|
git config user.name "actions-user"
|
||||||
git config user.name "Gitea Actions"
|
git submodule update --init --remote
|
||||||
|
|
||||||
# Create the new release branch
|
|
||||||
git checkout -b 'release-${{ inputs.RELEASE_TAG }}'
|
git checkout -b 'release-${{ inputs.RELEASE_TAG }}'
|
||||||
|
|
||||||
# Enter the submodule directory, fetch the latest tags, and check out the correct one.
|
|
||||||
# This points the submodule to the specific commit associated with the release tag.
|
|
||||||
(cd calcom && git fetch --tags origin && git checkout 'refs/tags/${{ inputs.RELEASE_TAG }}')
|
(cd calcom && git fetch --tags origin && git checkout 'refs/tags/${{ inputs.RELEASE_TAG }}')
|
||||||
|
|
||||||
# Stage and commit the change to the submodule pointer
|
|
||||||
git add calcom
|
git add calcom
|
||||||
git commit -m "Update submodule to Cal.com version ${{ inputs.RELEASE_TAG }}"
|
git commit -m "tag version Cal.com version ${{ inputs.RELEASE_TAG }}"
|
||||||
|
|
||||||
# Push the newly created release branch to the remote Gitea repository
|
|
||||||
git push origin 'release-${{ inputs.RELEASE_TAG }}'
|
git push origin 'release-${{ inputs.RELEASE_TAG }}'
|
||||||
|
|
||||||
# Step 3: Call the Gitea API to create the official release object.
|
# note: instead of secrets.GITHUB_TOKEN here, we need to use a PAT
|
||||||
# This uses the same API token to authorize the action.
|
# so that the release creation triggers the image build workflow
|
||||||
- name: "Create Gitea Release"
|
- name: "Create release"
|
||||||
env:
|
uses: "actions/github-script@v6"
|
||||||
GITEA_TOKEN: ${{ secrets.TOKEN_GITEA }}
|
with:
|
||||||
GITEA_API_URL: https://git.nethery.dev/api/v1
|
github-token: "${{ secrets.ACTIONS_ACCESS_TOKEN }}"
|
||||||
OWNER: ${{ gitea.repository_owner }}
|
script: |
|
||||||
REPO: ${{ gitea.repository_name }}
|
const isPreRelease = '${{ inputs.RELEASE_TAG }}'.includes('-rc');
|
||||||
run: |
|
try {
|
||||||
# Determine if the tag indicates a pre-release
|
const response = await github.rest.repos.createRelease({
|
||||||
is_prerelease=false
|
draft: false,
|
||||||
if [[ "${{ inputs.RELEASE_TAG }}" == *"-rc"* || "${{ inputs.RELEASE_TAG }}" == *"-beta"* ]]; then
|
generate_release_notes: true,
|
||||||
is_prerelease=true
|
body: 'For Cal.com release details, see: https://github.com/calcom/cal.com/releases/tag/${{ inputs.RELEASE_TAG }}',
|
||||||
fi
|
name: '${{ inputs.RELEASE_TAG }}',
|
||||||
|
target_commitish: 'release-${{ inputs.RELEASE_TAG }}',
|
||||||
|
owner: context.repo.owner,
|
||||||
|
prerelease: isPreRelease,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
tag_name: '${{ inputs.RELEASE_TAG }}',
|
||||||
|
});
|
||||||
|
|
||||||
echo "Creating release ${{ inputs.RELEASE_TAG }}..."
|
core.exportVariable('RELEASE_ID', response.data.id);
|
||||||
echo "Is prerelease: $is_prerelease"
|
core.exportVariable('RELEASE_UPLOAD_URL', response.data.upload_url);
|
||||||
|
} catch (error) {
|
||||||
# Use curl to send a POST request to the Gitea API's 'create release' endpoint
|
core.setFailed(error.message);
|
||||||
curl --fail --silent --show-error -L -X POST \
|
}
|
||||||
-H "accept: application/json" \
|
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
"${GITEA_API_URL}/repos/${OWNER}/${REPO}/releases" \
|
|
||||||
-d '{
|
|
||||||
"tag_name": "${{ inputs.RELEASE_TAG }}",
|
|
||||||
"target_commitish": "release-${{ inputs.RELEASE_TAG }}",
|
|
||||||
"name": "${{ inputs.RELEASE_TAG }}",
|
|
||||||
"body": "For Cal.com release details, see: https://github.com/calcom/cal.com/releases/tag/${{ inputs.RELEASE_TAG }}",
|
|
||||||
"prerelease": '${is_prerelease}'
|
|
||||||
}'
|
|
||||||
|
|||||||
103
.github/workflows/docker-build-push-dockerhub.yml
vendored
103
.github/workflows/docker-build-push-dockerhub.yml
vendored
@@ -49,11 +49,6 @@ jobs:
|
|||||||
# with:
|
# with:
|
||||||
# ref: ${{ github.event.inputs.version }}
|
# ref: ${{ github.event.inputs.version }}
|
||||||
|
|
||||||
- name: Base requirements
|
|
||||||
run: |
|
|
||||||
# packages
|
|
||||||
apk update && apk add --no-cache git docker docker-compose nodejs gpg openssh npm ansible
|
|
||||||
|
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -64,23 +59,29 @@ jobs:
|
|||||||
- name: Log in to the Docker Hub registry
|
- name: Log in to the Docker Hub registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
# Username used to log against the Docker registry
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
# Password or personal access token used to log against the Docker registry
|
||||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||||
|
# Log out from the Docker registry at the end of a job
|
||||||
|
logout: true # optional, default is true
|
||||||
|
|
||||||
- name: Log in to the Github Container registry
|
- name: Log in to the Github Container registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: nnethery
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GHCR_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
ghcr.io/nnethery/cal.com
|
docker.io/calendso/calendso
|
||||||
nnethery/cal.com
|
docker.io/calcom/cal.com
|
||||||
|
ghcr.io/calcom/cal.com
|
||||||
|
# Add flavor latest only on full releases, not on pre-releases
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=${{ !github.event.release.prerelease }}
|
latest=${{ !github.event.release.prerelease }}
|
||||||
|
|
||||||
@@ -92,6 +93,8 @@ jobs:
|
|||||||
eval $(sed -e '/^#/d' -e 's/^/export /' -e 's/$/;/' .env) ;
|
eval $(sed -e '/^#/d' -e 's/^/export /' -e 's/$/;/' .env) ;
|
||||||
|
|
||||||
# Temporarily disable ARM build due to runner performance issues
|
# Temporarily disable ARM build due to runner performance issues
|
||||||
|
# - name: Set up QEMU
|
||||||
|
# uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: Start database
|
- name: Start database
|
||||||
run: |
|
run: |
|
||||||
@@ -104,9 +107,9 @@ jobs:
|
|||||||
network=container:database
|
network=container:database
|
||||||
buildkitd-flags: |
|
buildkitd-flags: |
|
||||||
--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
|
--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
|
||||||
# config-inline: |
|
# config-inline: |
|
||||||
# [worker.oci]
|
# [worker.oci]
|
||||||
# max-parallelism = 1
|
# max-parallelism = 1
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
id: docker_build
|
id: docker_build
|
||||||
@@ -115,8 +118,8 @@ jobs:
|
|||||||
context: ./
|
context: ./
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
load: true # Load the image into the Docker daemon
|
load: true # Load the image into the Docker daemon
|
||||||
push: false # Do not push the image at this stage
|
push: false # Do not push the image at this stage
|
||||||
platforms: linux/arm64 # Changed from linux/amd64
|
platforms: linux/amd64
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
build-args: |
|
build-args: |
|
||||||
@@ -127,49 +130,47 @@ jobs:
|
|||||||
DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }}
|
DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }}
|
||||||
DATABASE_DIRECT_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }}
|
DATABASE_DIRECT_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }}
|
||||||
|
|
||||||
# - name: Test runtime
|
- name: Test runtime
|
||||||
# run: |
|
run: |
|
||||||
# tags="${{ steps.meta.outputs.tags }}"
|
tags="${{ steps.meta.outputs.tags }}"
|
||||||
# IFS=',' read -ra ADDR <<< "$tags" # Convert string to array using ',' as delimiter
|
IFS=',' read -ra ADDR <<< "$tags" # Convert string to array using ',' as delimiter
|
||||||
# tag=${ADDR[0]} # Get the first tag
|
tag=${ADDR[0]} # Get the first tag
|
||||||
|
|
||||||
# docker run --rm --network stack \
|
docker run --rm --network stack \
|
||||||
# -p 3000:3000 \
|
-p 3000:3000 \
|
||||||
# -e DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@database/${{ env.POSTGRES_DB }} \
|
-e DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@database/${{ env.POSTGRES_DB }} \
|
||||||
# -e DATABASE_DIRECT_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@database/${{ env.POSTGRES_DB }} \
|
-e DATABASE_DIRECT_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@database/${{ env.POSTGRES_DB }} \
|
||||||
# -e NEXTAUTH_SECRET=${{ env.NEXTAUTH_SECRET }} \
|
-e NEXTAUTH_SECRET=${{ env.NEXTAUTH_SECRET }} \
|
||||||
# -e CALENDSO_ENCRYPTION_KEY=${{ env.CALENDSO_ENCRYPTION_KEY }} \
|
-e CALENDSO_ENCRYPTION_KEY=${{ env.CALENDSO_ENCRYPTION_KEY }} \
|
||||||
# $tag &
|
$tag &
|
||||||
|
|
||||||
# server_pid=$!
|
server_pid=$!
|
||||||
|
|
||||||
|
|
||||||
# echo "Waiting for the server to start..."
|
echo "Waiting for the server to start..."
|
||||||
# sleep 120
|
sleep 120
|
||||||
|
|
||||||
# echo ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login
|
echo ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login
|
||||||
|
|
||||||
# apk add curl
|
for i in {1..60}; do
|
||||||
|
echo "Checking server health ($i/60)..."
|
||||||
|
response=$(curl -o /dev/null -s -w "%{http_code}" ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login)
|
||||||
|
echo "HTTP Status Code: $response"
|
||||||
|
if [[ "$response" == "200" ]] || [[ "$response" == "307" ]]; then
|
||||||
|
echo "Server is healthy"
|
||||||
|
# Now, shutdown the server
|
||||||
|
kill $server_pid
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
# for i in {1..60}; do
|
echo "Server health check failed"
|
||||||
# echo "Checking server health ($i/60)..."
|
kill $server_pid
|
||||||
# response=$(curl -o /dev/null -s -w "%{http_code}" ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login)
|
exit 1
|
||||||
# echo "HTTP Status Code: $response"
|
env:
|
||||||
# if [[ "$response" == "200" ]] || [[ "$response" == "307" ]]; then
|
NEXTAUTH_SECRET: 'EI4qqDpcfdvf4A+0aQEEx8JjHxHSy4uWiZw/F32K+pA='
|
||||||
# echo "Server is healthy"
|
CALENDSO_ENCRYPTION_KEY: '0zfLtY99wjeLnsM7qsa8xsT+Q0oSgnOL'
|
||||||
# # Now, shutdown the server
|
|
||||||
# kill $server_pid
|
|
||||||
# exit 0
|
|
||||||
# fi
|
|
||||||
# sleep 1
|
|
||||||
# done
|
|
||||||
|
|
||||||
# echo "Server health check failed"
|
|
||||||
# kill $server_pid
|
|
||||||
# exit 1
|
|
||||||
# env:
|
|
||||||
# NEXTAUTH_SECRET: 'EI4qqDpcfdvf4A+0aQEEx8JjHxHSy4uWiZw/F32K+pA='
|
|
||||||
# CALENDSO_ENCRYPTION_KEY: '0zfLtY99wjeLnsM7qsa8xsT+Q0oSgnOL'
|
|
||||||
|
|
||||||
- name: Push image
|
- name: Push image
|
||||||
id: docker_push
|
id: docker_push
|
||||||
@@ -178,7 +179,7 @@ jobs:
|
|||||||
context: ./
|
context: ./
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/arm64 # Changed from linux/amd64
|
platforms: linux/amd64
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
build-args: |
|
build-args: |
|
||||||
|
|||||||
14
.github/workflows/scarf-data-export.yml
vendored
Normal file
14
.github/workflows/scarf-data-export.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
name: Export Scarf data
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
export-scarf-data:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: docker://scarf.docker.scarf.sh/scarf-sh/scarf-postgres-exporter:latest
|
||||||
|
env:
|
||||||
|
SCARF_API_TOKEN: ${{ secrets.SCARF_API_TOKEN }}
|
||||||
|
SCARF_ENTITY_NAME: Calcom
|
||||||
|
PSQL_CONN_STRING: ${{ secrets.PSQL_CONN_STRING }}
|
||||||
19
Dockerfile
19
Dockerfile
@@ -1,10 +1,8 @@
|
|||||||
FROM node:18 AS builder
|
FROM node:18 as builder
|
||||||
|
|
||||||
WORKDIR /calcom
|
WORKDIR /calcom
|
||||||
|
|
||||||
ARG NEXT_PUBLIC_LICENSE_CONSENT
|
ARG NEXT_PUBLIC_LICENSE_CONSENT
|
||||||
ARG NEXT_PUBLIC_WEBSITE_TERMS_URL
|
|
||||||
ARG NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL
|
|
||||||
ARG CALCOM_TELEMETRY_DISABLED
|
ARG CALCOM_TELEMETRY_DISABLED
|
||||||
ARG DATABASE_URL
|
ARG DATABASE_URL
|
||||||
ARG NEXTAUTH_SECRET=secret
|
ARG NEXTAUTH_SECRET=secret
|
||||||
@@ -15,8 +13,6 @@ ARG NEXT_PUBLIC_API_V2_URL
|
|||||||
ENV NEXT_PUBLIC_WEBAPP_URL=http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER \
|
ENV NEXT_PUBLIC_WEBAPP_URL=http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER \
|
||||||
NEXT_PUBLIC_API_V2_URL=$NEXT_PUBLIC_API_V2_URL \
|
NEXT_PUBLIC_API_V2_URL=$NEXT_PUBLIC_API_V2_URL \
|
||||||
NEXT_PUBLIC_LICENSE_CONSENT=$NEXT_PUBLIC_LICENSE_CONSENT \
|
NEXT_PUBLIC_LICENSE_CONSENT=$NEXT_PUBLIC_LICENSE_CONSENT \
|
||||||
NEXT_PUBLIC_WEBSITE_TERMS_URL=$NEXT_PUBLIC_WEBSITE_TERMS_URL \
|
|
||||||
NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL=$NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL \
|
|
||||||
CALCOM_TELEMETRY_DISABLED=$CALCOM_TELEMETRY_DISABLED \
|
CALCOM_TELEMETRY_DISABLED=$CALCOM_TELEMETRY_DISABLED \
|
||||||
DATABASE_URL=$DATABASE_URL \
|
DATABASE_URL=$DATABASE_URL \
|
||||||
DATABASE_DIRECT_URL=$DATABASE_URL \
|
DATABASE_DIRECT_URL=$DATABASE_URL \
|
||||||
@@ -25,7 +21,7 @@ ENV NEXT_PUBLIC_WEBAPP_URL=http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER \
|
|||||||
NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE} \
|
NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE} \
|
||||||
BUILD_STANDALONE=true
|
BUILD_STANDALONE=true
|
||||||
|
|
||||||
COPY calcom/package.json calcom/yarn.lock calcom/.yarnrc.yml calcom/playwright.config.ts calcom/turbo.json calcom/i18n.json ./
|
COPY calcom/package.json calcom/yarn.lock calcom/.yarnrc.yml calcom/playwright.config.ts calcom/turbo.json calcom/git-init.sh calcom/git-setup.sh calcom/i18n.json ./
|
||||||
COPY calcom/.yarn ./.yarn
|
COPY calcom/.yarn ./.yarn
|
||||||
COPY calcom/apps/web ./apps/web
|
COPY calcom/apps/web ./apps/web
|
||||||
COPY calcom/apps/api/v2 ./apps/api/v2
|
COPY calcom/apps/api/v2 ./apps/api/v2
|
||||||
@@ -33,12 +29,11 @@ COPY calcom/packages ./packages
|
|||||||
COPY calcom/tests ./tests
|
COPY calcom/tests ./tests
|
||||||
|
|
||||||
RUN yarn config set httpTimeout 1200000
|
RUN yarn config set httpTimeout 1200000
|
||||||
RUN npx turbo prune --scope=@calcom/web --scope=@calcom/trpc --docker
|
RUN npx turbo prune --scope=@calcom/web --docker
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
RUN yarn db-deploy
|
RUN yarn db-deploy
|
||||||
RUN yarn --cwd packages/prisma seed-app-store
|
RUN yarn --cwd packages/prisma seed-app-store
|
||||||
# Build and make embed servable from web/public/embed folder
|
# Build and make embed servable from web/public/embed folder
|
||||||
RUN yarn workspace @calcom/trpc run build
|
|
||||||
RUN yarn --cwd packages/embeds/embed-core workspace @calcom/embed-core run build
|
RUN yarn --cwd packages/embeds/embed-core workspace @calcom/embed-core run build
|
||||||
RUN yarn --cwd apps/web workspace @calcom/web run build
|
RUN yarn --cwd apps/web workspace @calcom/web run build
|
||||||
|
|
||||||
@@ -46,12 +41,12 @@ RUN yarn --cwd apps/web workspace @calcom/web run build
|
|||||||
# yarn workspaces focus --all --production
|
# yarn workspaces focus --all --production
|
||||||
RUN rm -rf node_modules/.cache .yarn/cache apps/web/.next/cache
|
RUN rm -rf node_modules/.cache .yarn/cache apps/web/.next/cache
|
||||||
|
|
||||||
FROM node:18 AS builder-two
|
FROM node:18 as builder-two
|
||||||
|
|
||||||
WORKDIR /calcom
|
WORKDIR /calcom
|
||||||
ARG NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
|
ARG NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV production
|
||||||
|
|
||||||
COPY calcom/package.json calcom/.yarnrc.yml calcom/turbo.json calcom/i18n.json ./
|
COPY calcom/package.json calcom/.yarnrc.yml calcom/turbo.json calcom/i18n.json ./
|
||||||
COPY calcom/.yarn ./.yarn
|
COPY calcom/.yarn ./.yarn
|
||||||
@@ -69,7 +64,7 @@ ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
|
|||||||
|
|
||||||
RUN scripts/replace-placeholder.sh http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER ${NEXT_PUBLIC_WEBAPP_URL}
|
RUN scripts/replace-placeholder.sh http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER ${NEXT_PUBLIC_WEBAPP_URL}
|
||||||
|
|
||||||
FROM node:18 AS runner
|
FROM node:18 as runner
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /calcom
|
WORKDIR /calcom
|
||||||
@@ -78,7 +73,7 @@ ARG NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
|
|||||||
ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
|
ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
|
||||||
BUILT_NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL
|
BUILT_NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV production
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=30s --retries=5 \
|
HEALTHCHECK --interval=30s --timeout=30s --retries=5 \
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ If you are evaluating Cal.com or running with minimal to no modifications, this
|
|||||||
1. Clone calcom/docker
|
1. Clone calcom/docker
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone --recursive https://github.com/calcom/docker.git
|
git clone https://github.com/calcom/docker.git
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Change into the directory
|
2. Change into the directory
|
||||||
@@ -219,8 +219,6 @@ Updating these variables is not required for evaluation, but is required for run
|
|||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| NEXT_PUBLIC_WEBAPP_URL | Base URL injected into static files | optional | `http://localhost:3000` |
|
| NEXT_PUBLIC_WEBAPP_URL | Base URL injected into static files | optional | `http://localhost:3000` |
|
||||||
| NEXT_PUBLIC_LICENSE_CONSENT | license consent - true/false | | |
|
| NEXT_PUBLIC_LICENSE_CONSENT | license consent - true/false | | |
|
||||||
| NEXT_PUBLIC_WEBSITE_TERMS_URL | custom URL for terms and conditions website | optional | `https://cal.com/terms` |
|
|
||||||
| NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL | custom URL for privacy policy website | optional | `https://cal.com/privacy` |
|
|
||||||
| CALCOM_TELEMETRY_DISABLED | Allow cal.com to collect anonymous usage data (set to `1` to disable) | | |
|
| CALCOM_TELEMETRY_DISABLED | Allow cal.com to collect anonymous usage data (set to `1` to disable) | | |
|
||||||
| DATABASE_URL | database url with credentials - if using a connection pooler, this setting should point there | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
|
| DATABASE_URL | database url with credentials - if using a connection pooler, this setting should point there | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
|
||||||
| DATABASE_DIRECT_URL | direct database url with credentials if using a connection pooler (e.g. PgBouncer, Prisma Accelerate, etc.) | optional | |
|
| DATABASE_DIRECT_URL | direct database url with credentials if using a connection pooler (e.g. PgBouncer, Prisma Accelerate, etc.) | optional | |
|
||||||
|
|||||||
2
calcom
2
calcom
Submodule calcom updated: 68b93385eb...c262220f0f
@@ -1,4 +1,5 @@
|
|||||||
# Use postgres/example user/password credentials
|
# Use postgres/example user/password credentials
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
database-data:
|
database-data:
|
||||||
@@ -28,8 +29,6 @@ services:
|
|||||||
NEXT_PUBLIC_WEBAPP_URL: ${NEXT_PUBLIC_WEBAPP_URL}
|
NEXT_PUBLIC_WEBAPP_URL: ${NEXT_PUBLIC_WEBAPP_URL}
|
||||||
NEXT_PUBLIC_API_V2_URL: ${NEXT_PUBLIC_API_V2_URL}
|
NEXT_PUBLIC_API_V2_URL: ${NEXT_PUBLIC_API_V2_URL}
|
||||||
NEXT_PUBLIC_LICENSE_CONSENT: ${NEXT_PUBLIC_LICENSE_CONSENT}
|
NEXT_PUBLIC_LICENSE_CONSENT: ${NEXT_PUBLIC_LICENSE_CONSENT}
|
||||||
NEXT_PUBLIC_WEBSITE_TERMS_URL: ${EXT_PUBLIC_WEBSITE_TERMS_URL}
|
|
||||||
NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL: ${NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL}
|
|
||||||
CALCOM_TELEMETRY_DISABLED: ${CALCOM_TELEMETRY_DISABLED}
|
CALCOM_TELEMETRY_DISABLED: ${CALCOM_TELEMETRY_DISABLED}
|
||||||
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
|
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
|
||||||
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
|
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
|
||||||
|
|||||||
@@ -23,4 +23,4 @@ services:
|
|||||||
|
|
||||||
databases:
|
databases:
|
||||||
- name: cal-postgres
|
- name: cal-postgres
|
||||||
plan: basic-1gb
|
plan: starter
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ fi
|
|||||||
# Only peform action if $FROM and $TO are different.
|
# Only peform action if $FROM and $TO are different.
|
||||||
echo "Replacing all statically built instances of $FROM with $TO."
|
echo "Replacing all statically built instances of $FROM with $TO."
|
||||||
|
|
||||||
for file in $(egrep -r -l "${FROM}" apps/web/.next/ apps/web/public/); do
|
find apps/web/.next/ apps/web/public -type f |
|
||||||
sed -i -e "s|$FROM|$TO|g" "$file"
|
while read file; do
|
||||||
|
sed -i "s|$FROM|$TO|g" "$file"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user