Skip to content

Instantly share code, notes, and snippets.

@t1m0thyj
Created March 11, 2021 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t1m0thyj/5525015a05fb95c3b1cf4dc52f8e4d9e to your computer and use it in GitHub Desktop.
Save t1m0thyj/5525015a05fb95c3b1cf4dc52f8e4d9e to your computer and use it in GitHub Desktop.
Zowe Explorer in Theia
#!/bin/bash
set -e
if [ ! -d theia-plugins ]; then
GH_RELEASE_JSON=`curl -s https://api.github.com/repos/zowe/vscode-extension-for-zowe/releases/latest`
ZOWE_EXPLORER_VER=`node -e "console.log($GH_RELEASE_JSON.tag_name.slice(1))"`
mkdir -p theia-plugins && cd theia-plugins
curl -LOJ https://github.com/zowe/vscode-extension-for-zowe/releases/download/v$ZOWE_EXPLORER_VER/vscode-extension-for-zowe-v$ZOWE_EXPLORER_VER.vsix
cd ..
fi
stop() {
echo "Stopping Theia..."
docker stop theia
exit
}
trap stop SIGINT
echo "Starting Theia..."
docker run --rm --name theia -p 3000:3000 -e "THEIA_DEFAULT_PLUGINS=local-dir:///home/project/theia-plugins" -v "/$(pwd):/home/project:cached" theiaide/theia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment