Skip to content

Commit 72409d3

Browse files
committed
fixup! Update devfile.yaml
1 parent 9d79b1f commit 72409d3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

devspaces-operator/devfile.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,22 @@ components:
3434
- name: KUBECONFIG
3535
value: /home/user/.kube/config
3636
commands:
37+
- id: install-chectl
38+
exec:
39+
label: POST START EVENT - Install chectl
40+
component: tooling-container
41+
commandLine: |
42+
tag=$(curl https://api.github.com/repos/che-incubator/chectl/tags | jq -r '.[0].name') && \
43+
cd /tmp && wget https://github.com/che-incubator/chectl/releases/download/${tag}/chectl-linux-x64.tar.gz && \
44+
mkdir $HOME/chectl && \
45+
tar -xvzf chectl-linux-x64.tar.gz -C $HOME/chectl --strip-components 1 && \
46+
if ! grep -q "export PATH=\$HOME/chectl/bin:\$PATH" $HOME/.bashrc; then echo "export PATH=\$HOME/chectl/bin:\$PATH" >> $HOME/.bashrc; fi
47+
- id: install-goimports
48+
exec:
49+
label: POST START EVENT - Install goimports
50+
component: tooling-container
51+
commandLine: |
52+
$HOME/go1.18/bin/go install golang.org/x/tools/cmd/goimports@latest
3753
- id: go-build
3854
exec:
3955
label: Build Eclipse Che Operator binary

0 commit comments

Comments
 (0)