From 72409d3394bcdd4d471af95b0a566a15615237d4 Mon Sep 17 00:00:00 2001 From: Mykhailo Kuznietsov Date: Wed, 3 Jan 2024 09:26:35 +0200 Subject: [PATCH] fixup! Update devfile.yaml --- devspaces-operator/devfile.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/devspaces-operator/devfile.yaml b/devspaces-operator/devfile.yaml index 5759adf3a1..095636a8ed 100644 --- a/devspaces-operator/devfile.yaml +++ b/devspaces-operator/devfile.yaml @@ -34,6 +34,22 @@ components: - name: KUBECONFIG value: /home/user/.kube/config commands: + - id: install-chectl + exec: + label: POST START EVENT - Install chectl + component: tooling-container + commandLine: | + tag=$(curl https://api.github.com/repos/che-incubator/chectl/tags | jq -r '.[0].name') && \ + cd /tmp && wget https://github.com/che-incubator/chectl/releases/download/${tag}/chectl-linux-x64.tar.gz && \ + mkdir $HOME/chectl && \ + tar -xvzf chectl-linux-x64.tar.gz -C $HOME/chectl --strip-components 1 && \ + if ! grep -q "export PATH=\$HOME/chectl/bin:\$PATH" $HOME/.bashrc; then echo "export PATH=\$HOME/chectl/bin:\$PATH" >> $HOME/.bashrc; fi + - id: install-goimports + exec: + label: POST START EVENT - Install goimports + component: tooling-container + commandLine: | + $HOME/go1.18/bin/go install golang.org/x/tools/cmd/goimports@latest - id: go-build exec: label: Build Eclipse Che Operator binary