File tree 6 files changed +39
-15
lines changed
6 files changed +39
-15
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ FROM node:lts-bullseye-slim
3
3
LABEL org.opencontainers.image.source https://github.com/project-codeflare/codeflare-cli
4
4
5
5
ENV DEBIAN_FRONTEND=noninteractive
6
+
7
+ RUN apt update && apt -y install sudo curl python3 python3-pip git \
8
+ && pip3 install --no-cache-dir -U pip && pip3 install --no-cache-dir -U setuptools \
9
+ && apt -y clean && rm -rf /var/lib/apt/lists/*
10
+
6
11
ENV KUI_HEADLESS=true
7
12
ENV KUI_HEADLESS_WEBPACK=true
8
13
ENV NO_KIND=true
@@ -13,10 +18,7 @@ ADD dist/headless /usr/local/CodeFlare
13
18
ADD bin/codeflare /usr/local/bin/codeflare
14
19
ADD node_modules/@guidebooks/store/dist/store /usr/local/CodeFlare/store
15
20
16
- RUN apt update && apt -y install sudo curl python3 python3-pip git \
17
- && pip3 install --no-cache-dir -U pip && pip3 install --no-cache-dir -U setuptools \
18
- && apt -y clean && rm -rf /var/lib/apt/lists/* \
19
- && codeflare -n util/jq \
21
+ RUN codeflare -n util/jq \
20
22
&& codeflare -n util/websocat \
21
23
&& codeflare -n ml/ray/install/cli \
22
24
&& codeflare -n openshift/oc \
Original file line number Diff line number Diff line change 47
47
template :
48
48
spec :
49
49
serviceAccountName : codeflare-self-test-serviceaccount
50
+ volumes :
51
+ - name : ssh-key
52
+ secret :
53
+ secretName : github
54
+ defaultMode : 0600
55
+ optional : true
50
56
containers :
51
57
- name : self-test
52
58
image : ghcr.io/project-codeflare/codeflare-self-test:0.11.3
59
+ volumeMounts :
60
+ - mountPath : " /tmp/github/"
61
+ name : ssh-key
62
+ readOnly : true
53
63
env :
54
64
# - name: GUIDEBOOK_RUN_ARGS
55
65
# value: "-V"
@@ -76,11 +86,13 @@ spec:
76
86
secretKeyRef :
77
87
name : github
78
88
key : GITHUB_USER
89
+ optional : true
79
90
- name : ML_CODEFLARE_ROBERTA_GITHUB_TOKEN
80
91
valueFrom :
81
92
secretKeyRef :
82
93
name : github
83
94
key : GITHUB_TOKEN
95
+ optional : true
84
96
- name : MODE
85
97
value : development # otherwise building codeflare-cli takes a huge amount of memory
86
98
- name : KUBE_CONTEXT_FOR_TEST
Original file line number Diff line number Diff line change 51
51
template :
52
52
spec :
53
53
serviceAccountName : codeflare-self-test-serviceaccount
54
+ volumes :
55
+ - name : ssh-key
56
+ secret :
57
+ secretName : github
58
+ defaultMode : 0600
59
+ optional : true
54
60
containers :
55
61
- name : self-test
56
62
image : ghcr.io/project-codeflare/codeflare-self-test:0.11.3
63
+ volumeMounts :
64
+ - mountPath : " /tmp/github/"
65
+ name : ssh-key
66
+ readOnly : true
57
67
env :
58
68
# - name: GUIDEBOOK_RUN_ARGS
59
69
# value: "-V"
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ function cleanup {
25
25
ICON=" :green_heart:"
26
26
TEXT=" $( date) \nSuccessful run\nVariants: $variants "
27
27
else
28
- ICON=" :red-siren :"
28
+ ICON=" :fail :"
29
29
TEXT=" $( date) \nFailed run\nVariants: $variants "
30
30
# TODO, add tee'd logs of failing run
31
31
fi
Original file line number Diff line number Diff line change 24
24
},
25
25
"dependencies" : {
26
26
"madwizard" : " ^0.21.5" ,
27
- "@guidebooks/store" : " ^0.8.3 "
27
+ "@guidebooks/store" : " ^0.9.0 "
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments