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