This commit is contained in:
parent
77bdce53de
commit
4afa3a4c98
46
.drone.yml
46
.drone.yml
@ -7,22 +7,20 @@ steps:
|
|||||||
image: plugins/download
|
image: plugins/download
|
||||||
settings:
|
settings:
|
||||||
source: https://smcm.xyz/gh/calcom/cal.com/source.tar.gz
|
source: https://smcm.xyz/gh/calcom/cal.com/source.tar.gz
|
||||||
- name: download docker repo
|
# - name: download docker repo
|
||||||
image: plugins/download
|
# image: plugins/download
|
||||||
settings:
|
# settings:
|
||||||
source: https://github.com/calcom/docker/archive/refs/heads/main.tar.gz
|
# source: https://github.com/calcom/docker/archive/refs/heads/main.tar.gz
|
||||||
destination: docker.tar.gz
|
# destination: docker.tar.gz
|
||||||
- name: extract source
|
- name: extract source
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- mkdir calcom
|
- mkdir calcom
|
||||||
- tar --strip-components 1 -C calcom -xzf source.tar.gz
|
- tar --strip-components 1 -C calcom -xzf source.tar.gz
|
||||||
- tar --strip-components 1 -xzf docker.tar.gz
|
# - tar --strip-components 1 -xzf docker.tar.gz
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: node:16
|
||||||
environment:
|
environment:
|
||||||
DOCKER_BUILDKIT: 0
|
|
||||||
DOCKER_HOST: tcp://172.16.42.1:2375
|
|
||||||
NEXT_PUBLIC_WEBAPP_URL: https://cal.smcm.xyz
|
NEXT_PUBLIC_WEBAPP_URL: https://cal.smcm.xyz
|
||||||
NEXT_PUBLIC_LICENSE_CONSENT: agree
|
NEXT_PUBLIC_LICENSE_CONSENT: agree
|
||||||
CALCOM_TELEMETRY_DISABLED: 1
|
CALCOM_TELEMETRY_DISABLED: 1
|
||||||
@ -31,34 +29,18 @@ steps:
|
|||||||
CALENDSO_ENCRYPTION_KEY:
|
CALENDSO_ENCRYPTION_KEY:
|
||||||
from_secret: calendso_encryption_key
|
from_secret: calendso_encryption_key
|
||||||
DATABASE_URL: postgresql://unicorn_user:magical_password@postgres/calendso
|
DATABASE_URL: postgresql://unicorn_user:magical_password@postgres/calendso
|
||||||
|
commands:
|
||||||
|
- cd calcom
|
||||||
|
- yarn config set network-timeout 1000000000 -g
|
||||||
|
- yarn install --frozen-lockfile
|
||||||
|
- yarn build
|
||||||
|
- name: build
|
||||||
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: cr.smcm.xyz/calcom
|
repo: cr.smcm.xyz/calcom
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_COMMIT_SHA}
|
- ${DRONE_COMMIT_SHA}
|
||||||
build_args_from_env:
|
|
||||||
- NEXT_PUBLIC_WEBAPP_URL
|
|
||||||
- NEXT_PUBLIC_LICENSE_CONSENT
|
|
||||||
- CALCOM_TELEMETRY_DISABLED
|
|
||||||
- NEXTAUTH_SECRET
|
|
||||||
- CALENDSO_ENCRYPTION_KEY
|
|
||||||
- DATABASE_URL
|
|
||||||
daemon_off: true
|
|
||||||
bip: 172.16.42.1/24
|
|
||||||
# - name: build
|
|
||||||
# image: docker:dind
|
|
||||||
# volumes:
|
|
||||||
# - name: dockersock
|
|
||||||
# path: /var/run
|
|
||||||
# commands:
|
|
||||||
# - sleep 8
|
|
||||||
# - DOCKER_BUILDKIT=0 docker compose build calcom
|
|
||||||
# - docker tag calcom cr.smcm.xyz/calcom:latest
|
|
||||||
# - docker push --all-tags cr.smcm.xyz/calcom
|
|
||||||
# - name: deploy
|
|
||||||
# image: plugins/webhook
|
|
||||||
# settings:
|
|
||||||
# urls: https://avdelning.mcmaster.io/api/stacks/webhooks/1c658cc6-8d9c-4249-bcf8-659f98f3b9bf
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
|
|||||||
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM node:16 as runner
|
||||||
|
|
||||||
|
WORKDIR /calcom
|
||||||
|
ENV NODE_ENV production
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get -y install netcat && \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
npm install --global prisma
|
||||||
|
|
||||||
|
COPY calcom/package.json calcom/yarn.lock calcom/turbo.json /calcom/
|
||||||
|
COPY node_modules /calcom/node_modules
|
||||||
|
COPY packages /calcom/packages
|
||||||
|
COPY apps/web /calcom/apps/web
|
||||||
|
COPY packages/prisma/schema.prisma /calcom/prisma/schema.prisma
|
||||||
|
COPY scripts /calcom/scripts
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD ["/calcom/scripts/start.sh"]
|
||||||
Loading…
Reference in New Issue
Block a user