-
Notifications
You must be signed in to change notification settings - Fork 2
/
profile.yml
85 lines (82 loc) · 2.01 KB
/
profile.yml
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
# Application profile
application:
slug: compiler # image: arxiv/filemanager
type: wsgi # exposes port 8000
subsystem: submission-moderation
service_group: backend
resources:
memory:
min: 128Mi
max: 256Mi
cpu:
min: 100m
max: 300m
dependencies:
- name: compiler-submission
type: s3
description: Contains compiler products.
- name: task-queue
type: redis
description: Task queue and result backend for Celery.
secrets:
- name: JWT_SECRET
type: generic
- name: write-compiler-submission
type: aws
resources:
- action:
- s3:GetObject
- s3:PutObject
- s3:ListBucket
- s3:DeleteObject
resource: s3
name: compiler-submission
application:
slug: compiler-worker # image: arxiv/filemanager
type: worker # exposes port 8000
subsystem: submission-moderation
service_group: backend
resources:
memory:
min: 128Mi
max: 256Mi
cpu:
min: 100m
max: 300m
dependencies:
- name: compiler-submission
type: s3
description: Contains compiler products.
- name: converter-image
type: image
var: CONVERTER_DOCKER_IMAGE
value: 626657773168.dkr.ecr.us-east-1.amazonaws.com/arxiv/converter:0.8
description: Image to be executed within DinD container.
- name: task-queue
type: redis
description: Task queue and result backend for Celery.
secrets:
- name: jwt-secret
type: generic
var: JWT_SECRET
- name: write-compiler-submission
type: aws
resources:
- action:
- s3:GetObject
- s3:PutObject
- s3:ListBucket
- s3:DeleteObject
resource: s3
name: compiler-submission
- action:
- "ecr:GetAuthorizationToken"
- "ecr:BatchCheckLayerAvailability"
- "ecr:GetDownloadUrlForLayer"
- "ecr:GetRepositoryPolicy"
- "ecr:DescribeRepositories"
- "ecr:ListImages"
- "ecr:DescribeImages"
- "ecr:BatchGetImage"
resource: ecr
name: converter-image