-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yaml
More file actions
55 lines (54 loc) · 2 KB
/
devfile.yaml
File metadata and controls
55 lines (54 loc) · 2 KB
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
schemaVersion: 2.0.0
metadata:
name: halls
components:
- name: source
container:
image: public.ecr.aws/aws-mde/universal-image:4.0
mountSources: true
command:
- sleep
- infinity
commands:
- id: make
exec:
component: source
commandLine: sudo yum install -y g++ make cmake zip unzip libcurl-devel automake autoconf libtool zlib zlib-devel zlib-static protobuf protobuf-devel protobuf-compiler sqlite sqlite-devel sqlite-libs sqlite-tools || true;
- id: pyenv
exec:
component: source
commandLine: 'export PYENV_URL="https://pyenv.run" && echo "Downloading pyenv. URL: $PYENV_URL" && $(curl -fsSL $PYENV_URL | bash) || true && export PYENV_ROOT="$HOME/.pyenv" && [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" && eval "$(pyenv init - bash)" && echo "pyenv configured. Root: $PYENV_ROOT";'
- id: corepack
exec:
component: source
commandLine: sudo corepack enable pnpm || true; corepack enable pnpm || true;
- id: pnpm
exec:
component: source
commandLine: sudo corepack install -g pnpm@9.15.4 || true; corepack install -g pnpm@9.15.4 || true;
- id: node
exec:
component: source
commandLine: sudo pnpx n 22.12.0 -y; pnpx n 22.12.0 -y;
- id: codecatalyst-workflow-cli
exec:
component: source
commandLine: sudo curl -sL https://github.com/aws/codecatalyst-runner-cli/releases/latest/download/ccr_Linux_arm64.tar.gz -o - | sudo tar -zx ccr && sudo mv ccr /usr/local/bin/ccr;
- id: docker
exec:
component: source
commandLine: "sudo sh -c 'echo {\"dns\": [\"8.8.8.8\"]} > /etc/docker/daemon.json' && sudo sh -c 'dockerd --storage-opt dm.basesize=60G > /var/log/docker-daemon.log 2>&1 &';"
- id: finch
exec:
component: source
commandLine: sudo dnf install runfinch-finch; sudo dnf install amazon-ecr-credential-helper;
events:
postStart:
- make
- pyenv
- corepack
- pnpm
- node
- codecatalyst-workflow-cli
- docker
- finch