Compare commits

..

262 Commits

Author SHA1 Message Date
Colin Griffin
3a030784b6 remove armv6 2022-08-23 07:29:57 -04:00
Colin Griffin
32e3bd8de9 add armv7 and armv6, and switch build tag to canary 2022-08-23 07:26:07 -04:00
Peer Richelsen
27821a9299 Merge pull request #151 from calcom/PeerRich-patch-1
Update README.md
2022-08-19 12:43:54 +02:00
Peer Richelsen
6d7ce07be7 Merge pull request #154 from calcom/fix/canary-to-latest 2022-08-19 12:27:59 +02:00
Colin Griffin
306cf408c0 fix canary tag to latest 2022-08-18 17:48:38 -04:00
Peer Richelsen
a9726a7f07 Update README.md 2022-08-09 16:47:50 +02:00
Colin Griffin
2cfd6bc5d3 Merge pull request #144 from calcom/buildx
Update for buildx compatibility
2022-08-08 10:58:06 -04:00
Colin Griffin
566bf106ee re-add network stack to docker-compose build config 2022-08-04 16:14:19 -04:00
Colin Griffin
db1791a827 Merge pull request #146 from Leopere/patch-2
Delete .gitkeep
2022-07-29 16:50:35 -04:00
Leopere
b0c52392f9 Delete .gitkeep
This file only exists to force git to track an empty directory and needs to be cleaned up now that there are files in this directory.
2022-07-29 15:00:16 -04:00
Colin Griffin
8b23568c4b add yarn timeout config for arm64 emulator help 2022-07-26 10:10:11 -04:00
Colin Griffin
35cdfa1d5a enable image push 2022-07-25 18:53:36 -04:00
Colin Griffin
6134a66c2d add arm64 to platforms 2022-07-25 18:49:21 -04:00
Colin Griffin
6091f121f7 add qemu 2022-07-25 18:47:11 -04:00
Colin Griffin
049bdcb02b remove arm64 platform 2022-07-25 18:40:52 -04:00
Colin Griffin
db89df9e20 update for buildx compatibility 2022-07-25 18:37:02 -04:00
Peer Richelsen
0e50ceaaba Merge pull request #140 from calcom/fix/node-memory
Fix GHA node memory issue during image build
2022-07-21 17:41:08 +02:00
Colin Griffin
0109dbba14 Re-enable image push 2022-07-21 10:56:31 -04:00
Colin Griffin
1933beb5da cleanup node envs 2022-07-21 10:42:19 -04:00
Colin Griffin
294d8e31f7 temporarily disable image push during testing 2022-07-21 10:31:29 -04:00
Colin Griffin
25dbb33e92 add node memory options 2022-07-21 10:29:20 -04:00
Colin Griffin
2449ae5150 Update docker-build-push-dockerhub.yml 2022-07-21 10:11:04 -04:00
Colin Griffin
8da9ae1b1b Update docker-build-push-dockerhub.yml 2022-07-21 09:52:00 -04:00
Peer Richelsen
adc3884458 Merge pull request #139 from calcom/revert-c283a92614b54319a402207dd5de4e3e98751931
revert changes from c283a92614
2022-07-18 19:27:11 +02:00
Colin Griffin
40185b75b6 revert changes from c283a92614 2022-07-18 12:57:29 -04:00
Peer Richelsen
25f6e0e417 Merge pull request #138 from chasebolt/patch-1
bump to node version 16
2022-07-13 11:03:10 +02:00
Chase Bolt
fd0e00e1ac bump to node version 16 2022-07-12 17:28:11 -07:00
actions-user
653ca5fd21 Auto updated submodule references 2022-07-08 04:39:24 +00:00
actions-user
af336f8293 Auto updated submodule references 2022-07-07 04:46:23 +00:00
actions-user
ad98a1da40 Auto updated submodule references 2022-07-06 04:47:48 +00:00
actions-user
b56b94ed62 Auto updated submodule references 2022-07-05 04:35:54 +00:00
Kelvin F. Alfaro
c283a92614 Add files via upload 2022-07-03 11:57:51 -05:00
actions-user
9e6cc5d7f8 Auto updated submodule references 2022-07-03 04:27:14 +00:00
actions-user
1ac3e4870f Auto updated submodule references 2022-07-02 04:35:27 +00:00
actions-user
d87f0ef683 Auto updated submodule references 2022-07-01 04:55:45 +00:00
actions-user
50aed20cc3 Auto updated submodule references 2022-06-30 04:38:00 +00:00
actions-user
09ee6ff398 Auto updated submodule references 2022-06-29 04:46:14 +00:00
Peer Richelsen
a345e83d60 Merge pull request #135 from GlitchWitch/patch-1
Create SECURITY.md
2022-06-28 17:56:11 +02:00
GlitchWitch
c8c8a6b1be Create SECURITY.md
Creates a SECURITY.md file based on https://cal.com/security
Cloned from https://github.com/calcom/cal.com/blob/main/SECURITY.md
2022-06-28 15:51:57 +00:00
actions-user
a7937f8b9f Auto updated submodule references 2022-06-28 04:41:00 +00:00
actions-user
120b9cf3c9 Auto updated submodule references 2022-06-26 04:29:06 +00:00
actions-user
19e95414ec Auto updated submodule references 2022-06-25 04:27:10 +00:00
actions-user
5b4bd44810 Auto updated submodule references 2022-06-24 04:37:30 +00:00
actions-user
34e8bd6749 Auto updated submodule references 2022-06-23 04:35:07 +00:00
Colin Griffin
7ede5e02e0 Update readme with clarified build commend 2022-06-22 16:02:10 -04:00
actions-user
a31b9282ff Auto updated submodule references 2022-06-22 04:33:58 +00:00
actions-user
808cd2e5ea Auto updated submodule references 2022-06-21 04:36:19 +00:00
actions-user
1da04ab487 Auto updated submodule references 2022-06-20 04:26:22 +00:00
actions-user
319d2bd5c7 Auto updated submodule references 2022-06-19 04:29:44 +00:00
actions-user
bd197b4e33 Auto updated submodule references 2022-06-18 04:23:22 +00:00
actions-user
f74b638c98 Auto updated submodule references 2022-06-17 04:31:00 +00:00
actions-user
6ee82e4275 Auto updated submodule references 2022-06-16 04:32:07 +00:00
Colin Griffin
4726af439b increase javascript heap size for build 2022-06-15 17:37:43 -04:00
Colin Griffin
f6f6289578 Merge pull request #132 from calcom/fix/env-example
update defaults in env example
2022-06-15 17:20:54 -04:00
Colin Griffin
10c0247a15 updatee defaults in env example 2022-06-15 17:20:08 -04:00
Omar López
5a9b65e0d5 Merge pull request #131 from calcom/feature/default-variables
Update required build and runtime variables
2022-06-15 14:49:07 -06:00
Colin Griffin
0de4e2a0ca replace telemetry key variable with boolean 2022-06-15 16:36:29 -04:00
Colin Griffin
03c15c8c30 replace encryption key with CALCOM_TELEMETRY_DISABLED 2022-06-15 14:02:22 -04:00
Colin Griffin
66207073fd added missing word 2022-06-15 13:33:03 -04:00
Colin Griffin
2044d462a3 table-ify runtime variables 2022-06-15 13:32:30 -04:00
Colin Griffin
7d46413f2a update language and variable defaults 2022-06-15 13:27:28 -04:00
Colin Griffin
323bff9f28 update variable descriptions 2022-06-15 13:21:29 -04:00
Colin Griffin
9229e0dcec arrange variables to match instructions 2022-06-15 13:02:24 -04:00
Colin Griffin
deb3cafa38 add defaults for auth secrets 2022-06-15 12:49:35 -04:00
actions-user
757e41040e Auto updated submodule references 2022-06-15 04:33:26 +00:00
actions-user
20abf2d6dc Auto updated submodule references 2022-06-14 04:51:02 +00:00
Colin Griffin
a853f3570d Merge pull request #130 from m4tze/main
Reflect necessary changes of required environment variables during build
2022-06-13 09:18:27 -04:00
actions-user
f10b76835c Auto updated submodule references 2022-06-13 04:38:28 +00:00
actions-user
036ab05a93 Auto updated submodule references 2022-06-12 04:23:39 +00:00
actions-user
1206d39845 Auto updated submodule references 2022-06-11 04:21:21 +00:00
actions-user
351cee52fb Auto updated submodule references 2022-06-10 04:25:07 +00:00
m4tze
ec2ef498e7 Update docker-compose.yaml
Add NEXTAUTH_SECRET and CALENDSO_ENCRYPTION_KEY to build args
2022-06-10 02:07:54 +02:00
m4tze
002ec4f566 Update Dockerfile
Add missing env variables to build args and environment of build container
2022-06-10 02:06:28 +02:00
actions-user
93d8908606 Auto updated submodule references 2022-06-09 04:28:43 +00:00
actions-user
dedc1b9ab6 Auto updated submodule references 2022-06-08 04:30:04 +00:00
actions-user
4e66fd6de9 Auto updated submodule references 2022-06-07 04:26:04 +00:00
actions-user
91459e9301 Auto updated submodule references 2022-06-06 04:30:53 +00:00
actions-user
51106874d4 Auto updated submodule references 2022-06-05 04:19:16 +00:00
actions-user
76f812d897 Auto updated submodule references 2022-06-04 04:19:31 +00:00
actions-user
1a344b1e74 Auto updated submodule references 2022-06-03 04:20:59 +00:00
Colin Griffin
46185c869b Merge pull request #127 from calcom/feature/app-seed
Add app seed script to startup
2022-06-02 10:09:40 -04:00
actions-user
4c1e9f389f Auto updated submodule references 2022-06-02 04:46:14 +00:00
Colin Griffin
a08ccae05e add app seed script to startup 2022-06-01 16:18:49 -04:00
actions-user
2cd6d307d1 Auto updated submodule references 2022-06-01 05:11:49 +00:00
actions-user
9d17d76695 Auto updated submodule references 2022-05-31 04:32:58 +00:00
actions-user
ef164c371f Auto updated submodule references 2022-05-29 04:31:15 +00:00
actions-user
23db2b1ecc Auto updated submodule references 2022-05-28 04:22:53 +00:00
actions-user
4004acaee2 Auto updated submodule references 2022-05-27 04:32:31 +00:00
Colin Griffin
4ee8207f15 Merge pull request #124 from calcom/fix/missing-prisma-schema
Revert removal of prisma schema
2022-05-26 12:55:25 -04:00
Colin Griffin
5b6b7dbee0 revert removal of prisma schema 2022-05-26 12:53:13 -04:00
actions-user
b34cda8d70 Auto updated submodule references 2022-05-26 04:31:20 +00:00
Colin Griffin
4aa444241d remove temp build file 2022-05-25 20:54:01 -04:00
Colin Griffin
b6a59d30d1 update tag with latest 2022-05-25 20:53:04 -04:00
Colin Griffin
e41ff005c0 update automated docker build 2022-05-25 20:39:52 -04:00
Colin Griffin
ac52781a2e tag and push image to dockerhub 2022-05-25 17:16:28 -04:00
Colin Griffin
7ed164ff72 add build-arg for database_url substitution 2022-05-25 16:47:00 -04:00
Colin Griffin
77cc30ff6f test docker compose build 2022-05-25 14:12:07 -04:00
actions-user
f81c5c94ce Auto updated submodule references 2022-05-25 04:30:59 +00:00
actions-user
0825606ab0 Auto updated submodule references 2022-05-24 04:34:02 +00:00
actions-user
9c51263310 Auto updated submodule references 2022-05-23 04:33:17 +00:00
actions-user
0775b95d90 Auto updated submodule references 2022-05-21 04:21:58 +00:00
Colin Griffin
22c83c85fc update compound env var 2022-05-20 16:10:14 -04:00
Colin Griffin
1edb9195db strip comments from env 2022-05-20 16:02:06 -04:00
Colin Griffin
b5104c0c89 fix command 2022-05-20 15:56:54 -04:00
Colin Griffin
ceb6bc55d8 fix variable 2022-05-20 15:45:29 -04:00
Colin Griffin
ce1c466480 update .env docker config 2022-05-20 15:12:14 -04:00
Colin Griffin
58ad666150 remove platform spec 2022-05-20 14:55:18 -04:00
Colin Griffin
02df3c7449 test buildx config 2022-05-20 14:52:31 -04:00
Colin Griffin
a030c32b8b update buildkit flag 2022-05-20 14:10:53 -04:00
Colin Griffin
abe8664c56 Merge pull request #119 from calcom/feature/docker-compose-build-workflow
build using docker compose
2022-05-20 14:05:43 -04:00
Colin Griffin
14663be364 build using docker compose 2022-05-20 14:02:24 -04:00
Colin Griffin
f1881230ab Create test-docker-build.yml 2022-05-20 13:58:49 -04:00
Colin Griffin
56139e9908 Merge pull request #116 from calcom/bug/remove-workflow
Github did not detect this file, must remove
2022-05-20 13:49:05 -04:00
Colin Griffin
78daad84a0 github did not detect this file, must remove 2022-05-20 13:48:34 -04:00
Colin Griffin
0b84707351 Merge pull request #114 from calcom/feature/docker-compose-build
Update build and instructions to support updated database flow
2022-05-20 13:47:30 -04:00
Colin Griffin
6de505cc90 add branch triggers 2022-05-20 13:41:26 -04:00
Colin Griffin
f7ea2cfef4 rename file to workaround github bug 2022-05-20 13:39:24 -04:00
Colin Griffin
fd3f83bb00 rename temp test action 2022-05-20 13:36:56 -04:00
Colin Griffin
00f74b0bd7 add cleanup step 2022-05-20 13:35:42 -04:00
Colin Griffin
fc2feee502 add test workflow for docker build 2022-05-20 13:34:52 -04:00
Colin Griffin
b5236c3ffc Merge branch 'main' of https://www.github.com/calcom/docker into feature/docker-compose-build 2022-05-20 12:37:04 -04:00
Colin Griffin
a9bdde108b Merge pull request #112 from chasebolt/dockerfile-fix
overhaul dockerfile
2022-05-20 12:36:20 -04:00
Colin Griffin
c3eeb3cfdf update readme instructions for build and run 2022-05-20 12:32:04 -04:00
Colin Griffin
d7e2497bd8 specify network name and add database_url to args 2022-05-20 12:07:41 -04:00
actions-user
ea9bb0c0cf Auto updated submodule references 2022-05-20 04:27:13 +00:00
actions-user
20535e8b04 Auto updated submodule references 2022-05-19 04:32:57 +00:00
actions-user
5a813f8683 Auto updated submodule references 2022-05-18 04:30:47 +00:00
actions-user
9b3c781605 Auto updated submodule references 2022-05-17 04:32:33 +00:00
Chase Bolt
51f0c2c287 adding back required files 2022-05-16 13:56:56 -07:00
Chase Bolt
11fdd9ac86 Merge branch 'calcom:main' into dockerfile-fix 2022-05-16 13:56:00 -07:00
actions-user
b3923207e6 Auto updated submodule references 2022-05-15 04:26:09 +00:00
Chase Bolt
08a3caeb35 overhaul dockerfile to include missing files required to build successfully 2022-05-13 23:17:25 -07:00
actions-user
679a7ef89e Auto updated submodule references 2022-05-14 05:19:58 +00:00
Colin Griffin
2c955b8d16 Merge pull request #107 from calcom/clarify-resursive
clarify instructions to not use --recursive submodules
2022-05-13 15:07:51 -04:00
actions-user
f0672aa3f2 Auto updated submodule references 2022-05-13 04:54:58 +00:00
Colin Griffin
3bbe19427b Merge pull request #110 from anthonyneto/patch-1
fix: dockerfile copy packages from deps stage
2022-05-12 17:45:06 -04:00
Anthony Neto
2e85d98650 fix: dockerfile copy packages from deps stage 2022-05-12 14:37:35 -07:00
actions-user
869d729e02 Auto updated submodule references 2022-05-12 04:29:49 +00:00
actions-user
e05a9caa03 Auto updated submodule references 2022-05-11 04:36:24 +00:00
actions-user
f7955a6aad Auto updated submodule references 2022-05-10 04:22:00 +00:00
actions-user
2f66070106 Auto updated submodule references 2022-05-08 04:23:03 +00:00
actions-user
f843f997be Auto updated submodule references 2022-05-07 04:20:49 +00:00
actions-user
c5a4b03d66 Auto updated submodule references 2022-05-06 04:21:57 +00:00
Colin Griffin
89fa6b3d27 clarify instructions to not use --recursive submodules 2022-05-05 14:38:34 -04:00
Colin Griffin
0bbff68c65 Merge pull request #106 from calcom/fix/remove-recursive
Remove recursive flag on clone instructions
2022-05-05 14:06:01 -04:00
Colin Griffin
7fd09ede40 remove recursive flag on clone instructions 2022-05-05 14:05:18 -04:00
actions-user
89e7aafeac Auto updated submodule references 2022-05-05 04:33:34 +00:00
actions-user
c6ee520d85 Auto updated submodule references 2022-05-04 04:30:26 +00:00
actions-user
83387bea9f Auto updated submodule references 2022-05-03 04:31:26 +00:00
actions-user
05ebcc826e Auto updated submodule references 2022-05-02 04:51:48 +00:00
actions-user
e35c759b55 Auto updated submodule references 2022-05-01 04:35:38 +00:00
actions-user
eb7d4eafa4 Auto updated submodule references 2022-04-30 04:23:50 +00:00
actions-user
dc48f38dda Auto updated submodule references 2022-04-29 04:30:43 +00:00
actions-user
1d5268f756 Auto updated submodule references 2022-04-28 05:03:22 +00:00
actions-user
685aa6b11c Auto updated submodule references 2022-04-27 14:38:52 +00:00
Peer Richelsen
f78d40d2e7 Merge pull request #104 from calcom/rework 2022-04-27 08:49:52 +02:00
Colin Griffin
6f47b367a0 update workflow to avoid recursive checkout 2022-04-26 17:32:02 -04:00
Colin Griffin
94d5893c4e add deprecation for jwt_secret 2022-04-26 17:22:32 -04:00
Colin Griffin
73640fe382 remove test workflow 2022-04-26 17:18:59 -04:00
Colin Griffin
ec19812e77 update readme calcom references 2022-04-26 17:17:25 -04:00
Colin Griffin
da59afd476 add deprecation notice for baseurl 2022-04-26 17:07:32 -04:00
Colin Griffin
020f0cbdab rebase dockerfile and rename calendso 2022-04-26 17:05:06 -04:00
Colin Griffin
7ff182f0ed replace baseurl and app_url with new next_public_webapp_url variable 2022-04-26 16:58:50 -04:00
Colin Griffin
24730e2193 add important runtime variables 2022-04-26 16:57:44 -04:00
Colin Griffin
f85a68515e update dockerfile with updated env variables 2022-04-26 16:56:33 -04:00
Colin Griffin
a29e342492 remove repetitive install step and use node_modules from deps 2022-04-26 16:01:13 -04:00
Colin Griffin
139f8f4f0e remove deprecated url variables 2022-04-26 15:59:38 -04:00
Colin Griffin
8b14ee6ffd update required env variables 2022-04-26 15:58:52 -04:00
actions-user
2c38c97501 Auto updated submodule references 2022-04-26 18:55:04 +00:00
Colin Griffin
d2b65080ae Merge pull request #97 from philprime/fixed-docker-build
Fixed workspace install and missing prisma binary
2022-04-26 14:28:00 -04:00
Philip Niedertscheider
7d174536d4 Updated Dockerfile 2022-04-26 19:54:30 +02:00
Philip Niedertscheider
5959bc1fd3 Updated package.json copies 2022-04-26 19:08:48 +02:00
Philip Niedertscheider
994d5e1ba1 Fixed dockerfile 2022-04-26 19:08:48 +02:00
Colin Griffin
f64e6406c1 Merge pull request #105 from gabrielwhite/patch-2
Update README.md
2022-04-26 10:08:36 -04:00
Gabe
f72731aa62 Update README.md
Fixed URL for Docker Hub
2022-04-26 09:03:23 -04:00
actions-user
5c5ef9ba0b Auto updated submodule references 2022-04-26 04:29:32 +00:00
Colin Griffin
fb8d9248f7 add build-time variable list 2022-04-25 18:10:21 -04:00
Colin Griffin
5259bc3faf update readme 2022-04-25 18:04:59 -04:00
Colin Griffin
29f1c5704a remove env file copy 2022-04-25 17:54:12 -04:00
Colin Griffin
fb99616960 remove built-in submodule checkout to prevent recursive checkout 2022-04-25 17:26:37 -04:00
Colin Griffin
fbfa063d9e use local path instead of absolute root 2022-04-25 17:23:33 -04:00
Colin Griffin
c0a33233ae update dockerfile, use single stage for now 2022-04-25 17:21:12 -04:00
Colin Griffin
623ddeb74c update submodule 2022-04-25 11:01:57 -04:00
Colin Griffin
f65f82ab78 update gitmodules and add dockerignore 2022-04-25 10:45:11 -04:00
Colin Griffin
392afd77db update submodule path 2022-04-25 10:44:37 -04:00
actions-user
97f7b356cf Auto updated submodule references 2022-04-25 04:25:01 +00:00
actions-user
0bd59bf2ac Auto updated submodule references 2022-04-24 04:20:57 +00:00
actions-user
09220c2134 Auto updated submodule references 2022-04-23 04:20:20 +00:00
actions-user
e9b9ce423c Auto updated submodule references 2022-04-22 04:45:58 +00:00
actions-user
c944050d9c Auto updated submodule references 2022-04-21 04:43:10 +00:00
actions-user
5641dce2bd Auto updated submodule references 2022-04-20 04:46:52 +00:00
actions-user
99e92dc4b8 Auto updated submodule references 2022-04-19 04:33:25 +00:00
Peer Richelsen
e041b53b97 Update README.md 2022-04-18 22:24:32 +02:00
Peer Richelsen
0f939dcf85 Update README.md 2022-04-18 22:24:04 +02:00
actions-user
ceabd8f781 Auto updated submodule references 2022-04-18 04:24:27 +00:00
actions-user
d76176123b Auto updated submodule references 2022-04-17 04:20:24 +00:00
actions-user
0670f1e674 Auto updated submodule references 2022-04-16 04:20:50 +00:00
actions-user
d721066f9e Auto updated submodule references 2022-04-15 04:35:22 +00:00
actions-user
45da95bdb7 Auto updated submodule references 2022-04-14 04:20:06 +00:00
actions-user
079faf0ee3 Auto updated submodule references 2022-04-13 04:21:56 +00:00
actions-user
ff84aa98ad Auto updated submodule references 2022-04-12 04:20:23 +00:00
actions-user
42f995d430 Auto updated submodule references 2022-04-11 04:21:20 +00:00
actions-user
332735182e Auto updated submodule references 2022-04-10 04:20:05 +00:00
actions-user
f4fd5878e1 Auto updated submodule references 2022-04-09 04:20:39 +00:00
actions-user
6a453b2465 Auto updated submodule references 2022-04-08 04:20:27 +00:00
actions-user
abbcf8daac Auto updated submodule references 2022-04-07 04:20:38 +00:00
actions-user
b39fc8d1f9 Auto updated submodule references 2022-04-06 04:20:26 +00:00
actions-user
01a7d467e5 Auto updated submodule references 2022-04-05 04:20:11 +00:00
actions-user
b2a9072e42 Auto updated submodule references 2022-04-04 14:31:35 +00:00
Colin Griffin
56365d0982 remove recursive 2022-04-04 10:30:58 -04:00
Colin Griffin
433ee87c84 Merge pull request #95 from calcom/fix/submodule-repo-path
Update submodule git path
2022-04-04 10:05:23 -04:00
Colin Griffin
fdd6be12c7 Update submodule git path 2022-04-04 10:04:21 -04:00
Colin Griffin
b7c5f15d08 Merge pull request #86 from searsaw/fix-workspaces-build-issues
Update Dockerfile to use workspaces setup
2022-03-28 16:51:11 -04:00
actions-user
30722960fb Auto updated submodule references 2022-02-23 04:19:25 +00:00
actions-user
8139d21f47 Auto updated submodule references 2022-02-22 04:19:38 +00:00
actions-user
af714cfa43 Auto updated submodule references 2022-02-21 04:20:20 +00:00
actions-user
cdb45c8fe3 Auto updated submodule references 2022-02-20 04:19:28 +00:00
actions-user
86f8c4e9c9 Auto updated submodule references 2022-02-19 04:19:25 +00:00
Alex Sears
60557d31fd Update Dockerfile to install prisma globally
Prisma is a dev dependency in the main project. However, it is
needed in the image so we can run the migrations before starting
the server up. This installs it globally in the image since it
won't be installed using the project's `package.json`.

Signed-off-by: Alex Sears <me@alexsears.com>
2022-02-18 15:12:09 -05:00
actions-user
a13e5d22df Auto updated submodule references 2022-02-18 04:19:54 +00:00
Alex Sears
05560ff1a3 Update Dockerfile to use workspaces setup
The main Cal.com project has started using Yarn workspaces to
break the project up into separate packages and treat the project
as a monorepo. This required quite a few changes to the Dockerfile
that assumed the previous project setup.

Signed-off-by: Alex Sears <me@alexsears.com>
2022-02-17 16:07:11 -05:00
actions-user
8e9aad3ea2 Auto updated submodule references 2022-02-17 04:19:37 +00:00
actions-user
f3942ca6f5 Auto updated submodule references 2022-02-16 04:19:31 +00:00
actions-user
0e4f565b27 Auto updated submodule references 2022-02-15 04:19:10 +00:00
actions-user
1158d0905c Auto updated submodule references 2022-02-14 04:18:52 +00:00
actions-user
12b1e8509f Auto updated submodule references 2022-02-12 04:19:16 +00:00
Peer Richelsen
ca0370b497 Merge pull request #83 from calcom/fix/docker-path-update 2022-02-12 01:32:06 +00:00
Colin Griffin
9f0800d5ce rework directories 2022-02-11 19:08:41 -05:00
Colin Griffin
4bccd8ae31 update app path 2022-02-11 17:12:05 -05:00
actions-user
effb54c40c Auto updated submodule references 2022-02-11 04:19:00 +00:00
actions-user
fbe1c51d35 Auto updated submodule references 2022-02-10 04:18:48 +00:00
actions-user
2c515f242c Auto updated submodule references 2022-02-09 04:18:53 +00:00
actions-user
053a7be054 Auto updated submodule references 2022-02-08 04:18:33 +00:00
actions-user
1c8d5c5262 Auto updated submodule references 2022-02-07 04:19:14 +00:00
actions-user
2ec81b77b9 Auto updated submodule references 2022-02-05 04:17:10 +00:00
actions-user
c1109ddb7e Auto updated submodule references 2022-02-04 04:15:38 +00:00
actions-user
d05bda8d6a Auto updated submodule references 2022-02-03 04:18:51 +00:00
actions-user
95c24cbfea Auto updated submodule references 2022-02-02 04:18:34 +00:00
actions-user
2ade716849 Auto updated submodule references 2022-02-01 04:18:52 +00:00
actions-user
c7f648374e Auto updated submodule references 2022-01-30 04:18:39 +00:00
actions-user
f20ec45ad3 Auto updated submodule references 2022-01-29 04:18:51 +00:00
actions-user
2616fd41fe Auto updated submodule references 2022-01-28 04:19:21 +00:00
actions-user
cc54572d3c Auto updated submodule references 2022-01-27 04:18:51 +00:00
actions-user
74017a7bdf Auto updated submodule references 2022-01-26 04:18:47 +00:00
actions-user
df747440d7 Auto updated submodule references 2022-01-25 04:19:16 +00:00
actions-user
e902854330 Auto updated submodule references 2022-01-22 04:18:47 +00:00
actions-user
3bf2494a17 Auto updated submodule references 2022-01-21 04:21:24 +00:00
actions-user
4fc097778c Auto updated submodule references 2022-01-20 04:18:58 +00:00
actions-user
48bc17d743 Auto updated submodule references 2022-01-19 04:19:01 +00:00
actions-user
b168630314 Auto updated submodule references 2022-01-18 04:21:35 +00:00
actions-user
584a77082c Auto updated submodule references 2022-01-17 15:05:57 +00:00
actions-user
4864052c68 Auto updated submodule references 2022-01-16 04:20:51 +00:00
actions-user
c50be8725c Auto updated submodule references 2022-01-15 04:21:04 +00:00
actions-user
048fd21982 Auto updated submodule references 2022-01-14 21:24:27 +00:00
Colin Griffin
666b6d433d Merge pull request #64 from calendso/fix/readme-getting-started
Update README.md
2022-01-14 16:13:32 -05:00
Colin Griffin
9789112fda Update README.md 2022-01-14 16:13:19 -05:00
actions-user
247dbb4fb6 Auto updated submodule references 2022-01-14 04:21:20 +00:00
Mohammad Reza Ostadi
178dfc90ec Update README.md 2022-01-13 19:45:22 +03:30
actions-user
3eed25e732 Auto updated submodule references 2022-01-13 04:21:19 +00:00
actions-user
256c3fc3cf Auto updated submodule references 2022-01-12 04:21:19 +00:00
actions-user
0e8f152200 Auto updated submodule references 2022-01-11 04:20:55 +00:00
Mohammad Reza Ostadi
66ca622a92 Update README.md
prisma not saving user if metadata is null
2022-01-03 12:10:23 +03:30
15 changed files with 396 additions and 250 deletions

3
.dockerignore Normal file
View File

@@ -0,0 +1,3 @@
.git
.github
.env.example

View File

@@ -8,8 +8,21 @@
NEXT_PUBLIC_LICENSE_CONSENT=
LICENSE=
BASE_URL=http://localhost:3000
NEXT_PUBLIC_APP_URL=http://localhost:3000
# BASE_URL and NEXT_PUBLIC_APP_URL are both deprecated. Both are replaced with one variable, NEXT_PUBLIC_WEBAPP_URL
# BASE_URL=http://localhost:3000
# NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
# It is highly recommended that the NEXTAUTH_SECRET must be overridden and very unique
# Use `openssl rand -base64 32` to generate a key
NEXTAUTH_SECRET=secret
# Encryption key that will be used to encrypt CalDAV credentials, choose a random string, for example with `dd if=/dev/urandom bs=1K count=1 | md5sum`
CALENDSO_ENCRYPTION_KEY=secret
# Deprecation note: JWT_SECRET is no longer used
# JWT_SECRET=secret
POSTGRES_USER=unicorn_user
POSTGRES_PASSWORD=magical_password
@@ -18,8 +31,8 @@ DATABASE_HOST=database:5432
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
GOOGLE_API_CREDENTIALS={}
# Remove this var if you don't want Calendso to collect anonymous usage
NEXT_PUBLIC_TELEMETRY_KEY=js.2pvs2bbpqq1zxna97wcml.oi2jzirnbj1ev4tc57c5r
# Set this to '1' if you don't want Cal to collect anonymous usage
CALCOM_TELEMETRY_DISABLED=
# Used for the Office 365 / Outlook.com Calendar integration
MS_GRAPH_CLIENT_ID=
@@ -39,10 +52,4 @@ EMAIL_SERVER_PORT=587
EMAIL_SERVER_USER=email_user
EMAIL_SERVER_PASSWORD=email_password
# Encryption key that will be used to encrypt CalDAV credentials, choose a random string, for example with `dd if=/dev/urandom bs=1K count=1 | md5sum`
CALENDSO_ENCRYPTION_KEY=
# It is highly recommended that the JWT secret must be overridden and very unique
JWT_SECRET=secret
NODE_ENV=production

View File

@@ -33,9 +33,12 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
submodules: true
- name: checkout
uses: actions/checkout@v2
- name: Git submodule update
run: |
git submodule update --init
- name: Docker Login
# You may pin to the exact commit or the version.
@@ -53,18 +56,50 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v1.6.0
- name: Copy env
run: |
grep -o '^[^#]*' .env.example > .env
cat .env >> $GITHUB_ENV
echo "DATABASE_HOST=localhost:5432" >> $GITHUB_ENV
eval $(sed -e '/^#/d' -e 's/^/export /' -e 's/$/;/' .env) ;
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Start database
run: |
docker compose up -d database
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: |
network=container:database
buildkitd-flags: |
--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
- name: Build and push image
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: ./
file: ./Dockerfile
push: true
# The test image is /docker and is private. final image will be /calendso and public
tags: docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/calendso:latest
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/calendso:canary
build-args: |
BASE_URL=http://localhost:3000
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_WEBAPP_URL=${{ env.NEXT_PUBLIC_WEBAPP_URL }}
NEXT_PUBLIC_LICENSE_CONSENT=${{ env.NEXT_PUBLIC_LICENSE_CONSENT }}
NEXT_PUBLIC_TELEMETRY_KEY=${{ env.NEXT_PUBLIC_TELEMETRY_KEY }}
DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }}
# - name: Build with docker compose
# run: |
# DOCKER_BUILDKIT=0 docker compose build --build-arg DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }} calcom
- name: Cleanup
run: |
docker compose down
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

View File

@@ -17,7 +17,7 @@ jobs:
- name: Git submodule update
run: |
git submodule update --recursive --remote --init
git submodule update --remote --init
- name: Commit
run: |

6
.gitmodules vendored
View File

@@ -1,4 +1,4 @@
[submodule "calendso"]
path = calendso
url = https://github.com/calendso/calendso.git
[submodule "calcom"]
path = calcom
url = https://github.com/calcom/cal.com.git
branch = main

View File

@@ -1,40 +1,49 @@
FROM node:14 as deps
FROM node:16 as builder
WORKDIR /app
COPY calendso/package.json calendso/yarn.lock ./
COPY calendso/prisma prisma
RUN yarn install --frozen-lockfile
FROM node:14 as builder
WORKDIR /app
ARG BASE_URL
WORKDIR /calcom
ARG NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
ARG NEXT_PUBLIC_APP_URL
ARG NEXT_PUBLIC_LICENSE_CONSENT
ARG NEXT_PUBLIC_TELEMETRY_KEY
ENV BASE_URL=$BASE_URL \
ARG CALCOM_TELEMETRY_DISABLED
ARG DATABASE_URL
ARG NEXTAUTH_SECRET=secret
ARG CALENDSO_ENCRYPTION_KEY=secret
ARG MAX_OLD_SPACE_SIZE=4096
ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
NEXT_PUBLIC_APP_URL=$NEXT_PUBLIC_APP_URL \
NEXT_PUBLIC_LICENSE_CONSENT=$NEXT_PUBLIC_LICENSE_CONSENT \
NEXT_PUBLIC_TELEMETRY_KEY=$NEXT_PUBLIC_TELEMETRY_KEY
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}
COPY calendso .
COPY calcom/package.json calcom/yarn.lock calcom/turbo.json ./
COPY calcom/apps/web ./apps/web
COPY calcom/packages ./packages
COPY --from=deps /app/node_modules ./node_modules
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline
RUN yarn config set network-timeout 1000000000 -g && \
yarn install --frozen-lockfile
FROM node:14 as runner
WORKDIR /app
RUN yarn build
FROM node:16 as runner
WORKDIR /calcom
ENV NODE_ENV production
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/prisma ./prisma
COPY --from=builder /app/scripts ./scripts
COPY --from=builder /app/next.config.js ./
COPY --from=builder /app/next-i18next.config.js ./
COPY --from=builder /app/public ./public
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/package.json ./package.json
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 ./
COPY --from=builder /calcom/node_modules ./node_modules
COPY --from=builder /calcom/packages ./packages
COPY --from=builder /calcom/apps/web ./apps/web
COPY --from=builder /calcom/packages/prisma/schema.prisma ./prisma/schema.prisma
COPY scripts scripts
EXPOSE 3000
CMD ["/app/scripts/start.sh"]
CMD ["/calcom/scripts/start.sh"]

119
README.md
View File

@@ -1,22 +1,24 @@
<!-- PROJECT LOGO -->
<div align="right">
<a href="https://github.com/calendso/calendso">
<a href="https://github.com/calcom/cal.com">
<img src="https://cal.com/logo.svg" alt="Logo" width="160" height="65">
</a><br/>
<a href="https://cal.com">Website</a>
·
<a href="https://github.com/calendso/calendso-docker/issues">Community Support</a>
<a href="https://github.com/calcom/docker/issues">Community Support</a>
</div>
# Docker
This image can be found on DockerHub at [https://hub.docker.com/repository/docker/calendso/calendso](https://hub.docker.com/repository/docker/calendso/calendso)
NOTE: DockerHub organization has not yet been renamed.
The Docker configuration for Calendso is an effort powered by people within the community. Calendso does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
This image can be found on DockerHub at [https://hub.docker.com/r/calendso/calendso](https://hub.docker.com/r/calendso/calendso)
The Docker configuration for Cal.com is an effort powered by people within the community. Cal.com, Inc. does not yet provide official support for Docker, but we will accept fixes and documentation at this time. Use at your own risk.
## Important Notes
This Docker Image is managed by the Calendso Community. Support for this image can be found via the repository, located at [https://github.com/calendso/docker](https://github.com/calendso/docker)
This Docker Image is managed by the Cal.com Community. Join the team [here](https://github.com/calcom/docker/discussions/32). Support for this image can be found via the repository, located at [https://github.com/calcom/docker](https://github.com/calcom/docker)
Currently, this image is intended for local development/evaluation use only, as there are specific requirements for providing environmental variables at build-time in order to specify a non-localhost BASE_URL. (this is due to the nature of the static site compilation, which embeds the variable values). The ability to update these variables at runtime is in-progress and will be available in the future.
@@ -24,60 +26,118 @@ For Production, for the time being, please checkout the repository and build/pus
## Requirements
Make sure you have `docker` & `docker-compose` installed on the server / system.
Make sure you have `docker` & `docker compose` installed on the server / system. Both are installed by most docker utilities, including Docker Desktop and Rancher Desktop.
Note: `docker compose` without the hyphen is now the primary method of using docker-compose, per the Docker documentation.
## Getting Started
1. Clone calendso-docker
1. Clone calcom-docker
```bash
git clone --recursive https://github.com/calendso/docker.git calendso-docker
git clone https://github.com/calcom/docker.git calcom-docker
```
2. Change into the directory
```bash
cd calendso-docker
cd calcom-docker
```
3. Rename `.env.example` to `.env` and update `.env` if needed.
4. Build and start calendso
3. Update the calcom submodule.
```bash
docker-compose up --build
git submodule update --remote --init
```
5. Start prisma studio
Note: DO NOT use recursive submodule update, otherwise you will receive a git authentication error.
4. Rename `.env.example` to `.env` and then update `.env`
5. Build the Cal.com docker image:
Note: Due to application configuration requirements, an available database is currently required during the build process.
a) If hosting elsewhere, configure the `DATABASE_URL` in the .env file, and skip the next step
b) If a local or temporary database is required, start a local database via docker compose.
```bash
docker-compose exec calendso npx prisma studio
docker compose up -d database
```
6. Open a browser to [http://localhost:5555](http://localhost:5555) to look at or modify the database content.
6. Build Cal.com via docker compose (DOCKER_BUILDKIT=0 must be provided to allow a network bridge to be used at build time. This requirement will be removed in the future)
7. Click on the `User` model to add a new user record.
```bash
DOCKER_BUILDKIT=0 docker compose build calcom
```
8. Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
7. Start Cal.com via docker compose
9. Open a browser to [http://localhost:3000](http://localhost:3000) and login with your just created, first user.
(Most basic users, and for First Run) To run the complete stack, which includes a local Postgres database, Cal.com web app, and Prisma Studio:
```bash
docker compose up -d
```
To run Cal.com web app and Prisma Studio against a remote database, ensure that DATABASE_URL is configured for an available database and run:
```bash
docker compose up -d calcom studio
```
To run only the Cal.com web app, ensure that DATABASE_URL is configured for an available database and run:
```bash
docker compose up -d calcom
```
**Note: to run in attached mode for debugging, remove `-d` from your desired run command.**
8. (First Run) Open a browser to [http://localhost:5555](http://localhost:5555) to look at or modify the database content.
a. Click on the `User` model to add a new user record.
b. Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
9. Open a browser to [http://localhost:3000](http://localhost:3000) (or your appropriately configured NEXT_PUBLIC_WEBAPP_URL) and login with your just created, first user.
## Configuration
### Build-time variables
These variables must be provided at the time of the docker build, and can be provided by updating the .env file. Currently, if you require changes to these variables, you must follow the instructions to build and publish your own image.
Updating these variables is not required for evaluation, but is required for running in production. Instructions for generating variables can be found in the [cal.com instructions](https://github.com/calcom/cal.com)
| Variable | Description | Required | Default |
| --- | --- | --- | --- |
| NEXT_PUBLIC_WEBAPP_URL | Base URL injected into static files | required | `http://localhost:3000` |
| NEXT_PUBLIC_LICENSE_CONSENT | license consent - true/false | | |
| CALCOM_TELEMETRY_DISABLED | Allow cal.com to collect anonymous usage data (set to `1` to disable) | | |
| DATABASE_URL | database url with credentials | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
| NEXTAUTH_SECRET | Cookie encryption key | required | `secret` |
| CALENDSO_ENCRYPTION_KEY | Authentication encryption key | required | `secret` |
### Important Run-time variables
These variables must also be provided at runtime
| Variable | Description | Required | Default |
| --- | --- | --- | --- |
| CALCOM_LICENSE_KEY | Enterprise License Key | | |
| NEXTAUTH_SECRET | must match build variable | required | `secret` |
| CALENDSO_ENCRYPTION_KEY | must match build variable | required | `secret` |
| DATABASE_URL | database url with credentials | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
## Git Submodules
This repository uses a git submodule.
If you cloned the repository without using `--recursive`, then you can initialize and clone the submodule with the following steps.
1. Init the submodule
To update the calcom submodule, use the following command:
```bash
git submodule init
```
2. Update the submodule
```bash
git submodule update --remote
git submodule update --remote --init
```
For more advanced usage, please refer to the git documentation: [https://git-scm.com/book/en/v2/Git-Tools-Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)
@@ -85,3 +145,4 @@ For more advanced usage, please refer to the git documentation: [https://git-scm
## Troubleshooting
* SSL edge termination: If running behind a load balancer which handles SSL certificates, you will need to add the environmental variable `NODE_TLS_REJECT_UNAUTHORIZED=0` to prevent requests from being rejected. Only do this if you know what you are doing and trust the services/load-balancers directing traffic to your service.
* Failed to commit changes: Invalid 'prisma.user.create()': Certain versions may have trouble creating a user if the field `metadata` is empty. Using an empty json object `{}` as the field value should resolve this issue. Also, the `id` field will autoincrement, so you may also try leaving the value of `id` as empty.

38
SECURITY.md Normal file
View File

@@ -0,0 +1,38 @@
# Security
Contact: security@cal.com
Based on [https://supabase.com/.well-known/security.txt](https://supabase.com/.well-known/security.txt)
At Cal.com, we consider the security of our systems a top priority. But no matter how much effort we put into system security, there can still be vulnerabilities present.
If you discover a vulnerability, we would like to know about it so we can take steps to address it as quickly as possible. We would like to ask you to help us better protect our clients and our systems.
## Out of scope vulnerabilities:
* Clickjacking on pages with no sensitive actions.
* Unauthenticated/logout/login CSRF.
* Attacks requiring MITM or physical access to a user's device.
* Any activity that could lead to the disruption of our service (DoS).
* Content spoofing and text injection issues without showing an attack vector/without being able to modify HTML/CSS.
* Email spoofing
* Missing DNSSEC, CAA, CSP headers
* Lack of Secure or HTTP only flag on non-sensitive cookies
* Deadlinks
## Please do the following:
* E-mail your findings to [security@cal.com](mailto:security@cal.com).
* Do not run automated scanners on our infrastructure or dashboard. If you wish to do this, contact us and we will set up a sandbox for you.
* Do not take advantage of the vulnerability or problem you have discovered, for example by downloading more data than necessary to demonstrate the vulnerability or deleting or modifying other people's data,
* Do not reveal the problem to others until it has been resolved,
* Do not use attacks on physical security, social engineering, distributed denial of service, spam or applications of third parties,
* Do provide sufficient information to reproduce the problem, so we will be able to resolve it as quickly as possible. Usually, the IP address or the URL of the affected system and a description of the vulnerability will be sufficient, but complex vulnerabilities may require further explanation.
## What we promise:
* We will respond to your report within 3 business days with our evaluation of the report and an expected resolution date,
* If you have followed the instructions above, we will not take any legal action against you in regard to the report,
* We will handle your report with strict confidentiality, and not pass on your personal details to third parties without your permission,
* We will keep you informed of the progress towards resolving the problem,
* In the public information concerning the problem reported, we will give your name as the discoverer of the problem (unless you desire otherwise), and
* We strive to resolve all problems as quickly as possible, and we would like to play an active role in the ultimate publication on the problem after it is resolved.

1
calcom Submodule

Submodule calcom added at 6b0ac96b38

Submodule calendso deleted from 09c4040ce5

View File

@@ -1,15 +1,17 @@
# Use postgres/example user/password credentials
version: '3.1'
version: '3.8'
volumes:
database-data:
networks:
stack:
name: stack
external: false
services:
database:
container_name: database
image: postgres
restart: always
volumes:
@@ -18,16 +20,18 @@ services:
networks:
- stack
calendso:
calcom:
build:
context: .
dockerfile: Dockerfile
args:
- BASE_URL=${BASE_URL}
- NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL}
- NEXT_PUBLIC_LICENSE_CONSENT=${NEXT_PUBLIC_LICENSE_CONSENT}
- NEXT_PUBLIC_TELEMETRY_KEY=${NEXT_PUBLIC_TELEMETRY_KEY}
image: calendso/calendso:latest
NEXT_PUBLIC_WEBAPP_URL: ${NEXT_PUBLIC_WEBAPP_URL}
NEXT_PUBLIC_LICENSE_CONSENT: ${NEXT_PUBLIC_LICENSE_CONSENT}
CALCOM_TELEMETRY_DISABLE: ${CALCOM_TELEMETRY_DISABLED}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
DATABASE_URL: ${DATABASE_URL}
network: stack
restart: always
networks:
- stack
@@ -36,12 +40,8 @@ services:
env_file: .env
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
- NODE_ENV=development
depends_on:
- database
volumes:
- "./calendso:/app/"
- "./scripts:/app/scripts"
# Optional use of Prisma Studio. In production, comment out or remove the section below to prevent unwanted access to your database.
studio:

View File

View File

@@ -1,14 +1,7 @@
#!/bin/bash
#!/bin/sh
set -x
# # Set environment variables
# echo NEXT_PUBLIC_APP_URL $NEXT_PUBLIC_APP_URL
# find \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#$NEXT_PUBLIC_APP_URL#$NEXT_PUBLIC_APP_URL_SUBSTITUTE#g"
/app/scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
npx prisma migrate deploy
if [[ $NODE_ENV == "development" ]]; then
yarn dev
else
scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
npx prisma migrate deploy --schema /calcom/packages/prisma/schema.prisma
npx ts-node --transpile-only /calcom/packages/prisma/seed-app-store.ts
yarn start
fi

View File

@@ -54,7 +54,7 @@ wait_for() {
;;
wget)
if ! command -v wget >/dev/null; then
echoerr 'nc command is missing!'
echoerr 'wget command is missing!'
exit 1
fi
;;