-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathdevfile.yaml
More file actions
102 lines (97 loc) · 2.62 KB
/
devfile.yaml
File metadata and controls
102 lines (97 loc) · 2.62 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
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
91
92
93
94
95
96
97
98
99
100
101
102
schemaVersion: 2.3.0
metadata:
name: che-server
generateName: che-server-
components:
- container:
image: quay.io/devfile/universal-developer-image:ubi9-latest
memoryLimit: 12G
memoryRequest: 512Mi
cpuRequest: 1000m
cpuLimit: 5000m
mountSources: true
volumeMounts:
- name: m2
path: /home/user/.m2
name: tools
- name: m2
volume: {}
commands:
- id: build-sources
exec:
label: "1. Build sources"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: |
mvn clean install -V -e -Pfast -DskipTests -Dskip-validate-sources -Denforcer.skip=true
group:
kind: build
isDefault: true
- id: build-image
exec:
label: "2. Build image"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: |
./build/build.sh
group:
kind: build
isDefault: true
- id: install-chectl
exec:
label: "3. Install chectl"
component: tools
group:
kind: build
workingDir: ${HOME}
commandLine: |
get_arch() {
case "$(uname -m)" in
"x86_64")
echo "x64"
;;
"aarch64")
echo "arm64"
;;
"armv7l")
echo "arm"
;;
"ppc64le")
echo "ppc64le"
;;
"s390x")
echo "s390x"
;;
"arm64")
echo "arm64"
;;
*)
error "unsupported arch: $(uname -m)"
return 1
;;
esac
}
get_operating_system() {
SHORT_UNAME=$(uname -s)
if [ "$(uname)" == "Darwin" ]; then
echo "darwin"
elif [ "${SHORT_UNAME:0:5}" == "Linux" ]; then
echo "linux"
else
error "This installer is only supported on Linux and macOS. Found $(uname)"
return 1
fi
}
curl -LJO $(curl -fsSL https://che-incubator.github.io/chectl/download-link/stable-$(get_operating_system)-$(get_arch))
tar -xf chectl-linux-x64.tar.gz -C $HOME/
echo 'export PATH=$HOME/chectl/bin/:$PATH' >> $HOME/.bashrc
- id: install-claude
exec:
label: "4. Install Claude CLI"
commandLine: curl -fsSL https://claude.ai/install.sh -o claude-install.sh && chmod +x claude-install.sh && ./claude-install.sh
component: tools
- id: run-claude-yolo
exec:
label: "5. Run Claude YOLO"
commandLine: claude --dangerously-skip-permissions
component: tools