This commit is contained in:
parent
77bdce53de
commit
4afa3a4c98
46
.drone.yml
46
.drone.yml
@ -7,22 +7,20 @@ steps:
|
||||
image: plugins/download
|
||||
settings:
|
||||
source: https://smcm.xyz/gh/calcom/cal.com/source.tar.gz
|
||||
- name: download docker repo
|
||||
image: plugins/download
|
||||
settings:
|
||||
source: https://github.com/calcom/docker/archive/refs/heads/main.tar.gz
|
||||
destination: docker.tar.gz
|
||||
# - name: download docker repo
|
||||
# image: plugins/download
|
||||
# settings:
|
||||
# source: https://github.com/calcom/docker/archive/refs/heads/main.tar.gz
|
||||
# destination: docker.tar.gz
|
||||
- name: extract source
|
||||
image: alpine
|
||||
commands:
|
||||
- mkdir calcom
|
||||
- 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
|
||||
image: plugins/docker
|
||||
image: node:16
|
||||
environment:
|
||||
DOCKER_BUILDKIT: 0
|
||||
DOCKER_HOST: tcp://172.16.42.1:2375
|
||||
NEXT_PUBLIC_WEBAPP_URL: https://cal.smcm.xyz
|
||||
NEXT_PUBLIC_LICENSE_CONSENT: agree
|
||||
CALCOM_TELEMETRY_DISABLED: 1
|
||||
@ -31,34 +29,18 @@ steps:
|
||||
CALENDSO_ENCRYPTION_KEY:
|
||||
from_secret: calendso_encryption_key
|
||||
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:
|
||||
repo: cr.smcm.xyz/calcom
|
||||
tags:
|
||||
- latest
|
||||
- ${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:
|
||||
- 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