forked from simonhanmer/hands-on-with-codecatalyst
-
Notifications
You must be signed in to change notification settings - Fork 5
/
devfile.yaml
35 lines (34 loc) · 893 Bytes
/
devfile.yaml
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
schemaVersion: 2.0.0
metadata:
name: aws-universal
version: 1.0.1
displayName: AWS Universal
description: Stack with AWS Universal Tooling
tags: ["aws", "al2"]
projectType: "aws"
components:
- name: aws-runtime
container:
image: public.ecr.aws/aws-mde/universal-image:latest
mountSources: true
volumeMounts:
- name: docker-store
path: /var/lib/docker
- name: docker-store
volume:
size: 16Gi
commands:
- id: install_env
exec:
commandLine: python3 -m pip install --user -r env_requirements.txt
workingDir: /projects/lambda_function
component: aws-runtime
- id: install_code_libs
exec:
commandLine: python3 -m pip install --user -r requirements.txt
workingDir: /projects/lambda_function/src
component: aws-runtime
events:
postStart:
- install_env
- install_code_libs