-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
90 lines (90 loc) · 9.22 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"name": "turingq-migration",
"private": true,
"scripts": {
"bootstrap:dev": "lerna bootstrap --hoist",
"docker:build:authorizer-config": "DOCKER_BUILDKIT=1 docker build -t turingq/authorizer-config:latest -f packages/authorizer/Dockerfile.prod .",
"docker:build:core": "docker build -t turingq/core:latest -f packages/core/Dockerfile.prod .",
"docker:build:frontend": "DOCKER_BUILDKIT=1 docker build -t turingq/frontend:latest -f packages/frontend/Dockerfile.prod .",
"docker:build:questions": "docker build -t turingq/questions:latest -f packages/questions/Dockerfile.prod .",
"docker:build:subscriptions": "docker build -t turingq/subscriptions:latest -f packages/subscriptions/Dockerfile.prod .",
"docker:build:ranking": "docker build -t turingq/ranking:latest -f packages/ranking/Dockerfile.prod .",
"docker:local:tag:authorizer-config": "docker tag turingq/authorizer-config localhost:5000/turingq-authorizer-config",
"docker:local:tag:core": "docker tag turingq/core localhost:5000/turingq-core",
"docker:local:tag:frontend": "docker tag turingq/frontend localhost:5000/turingq-frontend",
"docker:local:tag:questions": "docker tag turingq/questions localhost:5000/turingq-questions",
"docker:local:tag:subscriptions": "docker tag turingq/subscriptions localhost:5000/turingq-subscriptions",
"docker:local:tag:ranking": "docker tag turingq/ranking localhost:5000/turingq-ranking",
"docker:local:push:authorizer-config": "docker push localhost:5000/turingq-authorizer-config",
"docker:local:push:core": "docker push localhost:5000/turingq-core",
"docker:local:push:frontend": "docker push localhost:5000/turingq-frontend",
"docker:local:push:questions": "docker push localhost:5000/turingq-questions",
"docker:local:push:subscriptions": "docker push localhost:5000/turingq-subscriptions",
"docker:local:push:ranking": "docker push localhost:5000/turingq-ranking",
"docker:prepare-local-image:authorizer-config": "run-s docker:build:authorizer-config docker:local:tag:authorizer-config docker:local:push:authorizer-config",
"docker:prepare-local-image:core": "run-s docker:build:core docker:local:tag:core docker:local:push:core",
"docker:prepare-local-image:frontend": "run-s docker:build:frontend docker:local:tag:frontend docker:local:push:frontend",
"docker:prepare-local-image:questions": "run-s docker:build:questions docker:local:tag:questions docker:local:push:questions",
"docker:prepare-local-image:subscriptions": "run-s docker:build:subscriptions docker:local:tag:subscriptions docker:local:push:subscriptions",
"docker:prepare-local-image:ranking": "run-s docker:build:ranking docker:local:tag:ranking docker:local:push:ranking",
"docker:all:prepare-local-image": "run-p docker:prepare-local-image:*",
"docker:all:build": "run-p docker:build:*",
"docker:all:local:tag": "run-p docker:local:tag:*",
"docker:all:local:push": "run-p docker:local:push:*",
"kubernetes:setup:authorizer:app": "kubectl apply -f packages/authorizer/k8s/authorizer",
"kubernetes:setup:authorizer:config": "cat packages/authorizer/k8s/authorizer-config/job.yml | envsubst | kubectl apply -f - && kubectl apply -f packages/authorizer/k8s/authorizer-config/config-map.yml -f packages/authorizer/k8s/authorizer-config/secret.yml",
"kubernetes:setup:authorizer": "run-s kubernetes:setup:authorizer:app kubernetes:setup:authorizer:config",
"kubernetes:setup:message-broker": "kubectl apply -f packages/message-broker/k8s",
"kubernetes:setup:core:database": "kubectl apply -f packages/core/k8s/database",
"kubernetes:setup:core:app": "cat packages/core/k8s/core/deployment.yml | envsubst | kubectl apply -f - && kubectl apply -f packages/core/k8s/core/config-map.yml -f packages/core/k8s/core/secret.yml -f packages/core/k8s/core/service.yml",
"kubernetes:setup:core": "run-s kubernetes:setup:core:database kubernetes:setup:core:app",
"kubernetes:setup:frontend": "cat packages/frontend/k8s/deployment.yml | envsubst | kubectl apply -f - && kubectl apply -f packages/frontend/k8s/service.yml",
"kubernetes:setup:questions:database": "kubectl apply -f packages/questions/k8s/database",
"kubernetes:setup:questions:app": "cat packages/questions/k8s/questions/deployment.yml | envsubst | kubectl apply -f - && kubectl apply -f packages/questions/k8s/questions/config-map.yml -f packages/questions/k8s/questions/secret.yml -f packages/questions/k8s/questions/service.yml",
"kubernetes:setup:questions": "run-s kubernetes:setup:questions:database kubernetes:setup:questions:app",
"kubernetes:setup:subscriptions:database": "kubectl apply -f packages/subscriptions/k8s/database",
"kubernetes:setup:subscriptions:app": "cat packages/subscriptions/k8s/subscriptions/deployment.yml | envsubst | kubectl apply -f - && kubectl apply -f packages/subscriptions/k8s/subscriptions/config-map.yml -f packages/subscriptions/k8s/subscriptions/secret.yml -f packages/subscriptions/k8s/subscriptions/service.yml",
"kubernetes:setup:subscriptions": "run-s kubernetes:setup:subscriptions:database kubernetes:setup:subscriptions:app",
"kubernetes:setup:ranking:database": "kubectl apply -f packages/ranking/k8s/database",
"kubernetes:setup:ranking:app": "cat packages/ranking/k8s/ranking/deployment.yml | envsubst | kubectl apply -f - && kubectl apply -f packages/ranking/k8s/ranking/config-map.yml -f packages/ranking/k8s/ranking/secret.yml -f packages/ranking/k8s/ranking/service.yml",
"kubernetes:setup:ranking": "run-s kubernetes:setup:ranking:database kubernetes:setup:ranking:app",
"deploy:local:authorizer": "run-s docker:prepare-local-image:authorizer-config kubernetes:setup:authorizer",
"deploy:local:core": "run-s docker:prepare-local-image:core kubernetes:setup:core",
"deploy:local:frontend": "run-s docker:prepare-local-image:frontend kubernetes:setup:frontend",
"deploy:local:questions": "run-s docker:prepare-local-image:questions kubernetes:setup:message-broker kubernetes:setup:questions",
"deploy:local:subscriptions": "run-s docker:prepare-local-image:subscriptions kubernetes:setup:message-broker kubernetes:setup:subscriptions",
"deploy:local:ranking": "run-s docker:prepare-local-image:ranking kubernetes:setup:message-broker kubernetes:setup:ranking",
"docker:prod:login": "dotenv cross-var 'aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com'",
"docker:prod:tag:authorizer-config": "dotenv cross-var 'docker tag turingq/authorizer-config $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/turingq-authorizer-config'",
"docker:prod:tag:core": "dotenv cross-var 'docker tag turingq/core $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/turingq-core'",
"docker:prod:tag:frontend": "dotenv cross-var 'docker tag turingq/frontend $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/turingq-frontend'",
"docker:prod:tag:questions": "dotenv cross-var 'docker tag turingq/questions $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/turingq-questions'",
"docker:prod:tag:subscriptions": "dotenv cross-var 'docker tag turingq/subscriptions $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/turingq-subscriptions'",
"docker:prod:tag:ranking": "dotenv cross-var 'docker tag turingq/ranking $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/turingq-ranking'",
"docker:prod:push:authorizer-config": "dotenv cross-var 'docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/turingq-authorizer-config'",
"docker:prod:push:core": "dotenv cross-var 'docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/turingq-core'",
"docker:prod:push:frontend": "dotenv cross-var 'docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/turingq-frontend'",
"docker:prod:push:questions": "dotenv cross-var 'docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/turingq-questions'",
"docker:prod:push:subscriptions": "dotenv cross-var 'docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/turingq-subscriptions'",
"docker:prod:push:ranking": "dotenv cross-var 'docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/turingq-ranking'",
"docker:prepare-prod-image:authorizer-config": "run-s docker:build:authorizer-config docker:prod:tag:authorizer-config docker:prod:push:authorizer-config",
"docker:prepare-prod-image:core": "run-s docker:build:core docker:prod:tag:core docker:prod:push:core",
"docker:prepare-prod-image:frontend": "run-s docker:build:frontend docker:prod:tag:frontend docker:prod:push:frontend",
"docker:prepare-prod-image:questions": "run-s docker:build:questions docker:prod:tag:questions docker:prod:push:questions",
"docker:prepare-prod-image:subscriptions": "run-s docker:build:subscriptions docker:prod:tag:subscriptions docker:prod:push:subscriptions",
"docker:prepare-prod-image:ranking": "run-s docker:build:ranking docker:prod:tag:ranking docker:prod:push:ranking"
},
"devDependencies": {
"adonis-preset-ts": "^2.1.0",
"cross-var": "^1.1.0",
"dotenv-cli": "^5.1.0",
"eslint": "^7.29.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-adonis": "^1.3.2",
"eslint-plugin-prettier": "^3.4.0",
"lerna": "^4.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.1",
"typescript": "~4.2"
}
}