-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspotty.yaml
More file actions
40 lines (37 loc) · 903 Bytes
/
spotty.yaml
File metadata and controls
40 lines (37 loc) · 903 Bytes
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
project:
name: traffik-spot
syncFilters:
- exclude:
- .git/*
- .idea/*
- '*/__pycache__/*'
- venv/*
containers:
- projectDir: /workspace/traffik
image: ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com/traffik:latest
ports:
- containerPort: 8888
hostPort: 8888
volumeMounts:
- name: data
mountPath: /data
instances:
- name: aws-1
provider: aws
parameters:
region: us-east-1
instanceType: p2.xlarge
spotInstance: true
ports: [8888]
managedPolicyArns: [arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryFullAccess]
volumes:
- name: workspace
parameters:
size: 50
commands: |
$(aws ecr get-login --no-include-email --region us-east-1)
scripts:
download:
aws s3 sync s3://trafik/berlin /workspace/data/berlin
train: |
make hello