An improved file viewer / editor for OSC OnDemand that launches a Code Server within a batch job. Code Server leverages VSCode as its editor.
This Batch Connect app requires the following software be available on the compute nodes that the batch job is intended to run on (NOT the OnDemand node):
- Spack must be installed to a location available to compute nodes, such as a shared storage drive.
- The spack installation must also have a spack environment called
codeserver
with acode-server
executable installed. This setup has been used with[email protected]
succesfully. - This repo includes a spack environment definition file that can be used to set up a working spack environment,
spack-environment/codeserver/spack.yml
. - It may be necessary to change the
. /shared/spack/share/spack/setup-env.sh
line in thetemplate/script.sh.erb
if your spack installation is located somewhere other than/shared/spack
- The spack installation must also have a spack environment called
- In-app installation of extensions does not work
- The authentication provided by code-server is unencrypted
- Fork it ( https://github.com/OSC/bc_osc_codeserver/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request